From fc5f1a223e383459a01e25364dbd6fe230c6b6b0 Mon Sep 17 00:00:00 2001 From: Tim Collins Date: Tue, 2 Feb 2021 14:08:43 +0000 Subject: [PATCH 1/2] Add alternative values files for CI testing --- charts/sorry-cypress/Chart.yaml | 2 +- charts/sorry-cypress/ci/mongo-values.yml | 220 +++++++++++++++++++++++ charts/sorry-cypress/ci/values.yml | 0 charts/sorry-cypress/values.yaml | 2 +- 4 files changed, 222 insertions(+), 2 deletions(-) create mode 100644 charts/sorry-cypress/ci/mongo-values.yml create mode 100644 charts/sorry-cypress/ci/values.yml diff --git a/charts/sorry-cypress/Chart.yaml b/charts/sorry-cypress/Chart.yaml index 54837b0..091a315 100644 --- a/charts/sorry-cypress/Chart.yaml +++ b/charts/sorry-cypress/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: sorry-cypress description: A Helm chart for Sorry Cypress type: application -version: 0.1.29 +version: 0.1.30 appVersion: 0.6.1 home: https://sorry-cypress.dev/ sources: diff --git a/charts/sorry-cypress/ci/mongo-values.yml b/charts/sorry-cypress/ci/mongo-values.yml new file mode 100644 index 0000000..a4cb5c2 --- /dev/null +++ b/charts/sorry-cypress/ci/mongo-values.yml @@ -0,0 +1,220 @@ +# Default values for sorry-cypress-helm. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +api: + image: + repository: agoldis/sorry-cypress-api + pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + # tag: "latest" + + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + + service: + port: 4000 + + # Set annotations for pods + podAnnotations: {} + + # Additional pod labels + podLabels: {} + + ingress: + labels: {} + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: api.chart-example.local + path: / + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +dashboard: + image: + repository: agoldis/sorry-cypress-dashboard + pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + # tag: "latest" + + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + + # https://sorry-cypress.dev/dashboard#configuration + environmentVariables: + graphQlClientCredentials: "" + graphQlSchemaUrl: "" + ciUrl: "" + + service: + port: 8080 + + # Set annotations for pods + podAnnotations: {} + + # Additional pod labels + podLabels: {} + + ingress: + enabled: true + labels: {} + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: dashboard.chart-example.local + path: / + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +director: + image: + repository: agoldis/sorry-cypress-director + pullPolicy: Always + # Overrides the image tag whose default is the chart appVersion. + # tag: "latest" + + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + + environmentVariables: + # The "Run URL" in the Cypress client + dashboardUrl: "" + + # In memory, or Mongo. + # Valid options are: + # "../execution/in-memory" + # "../execution/mongo/driver" + executionDriver: "../execution/mongo/driver" + + # Dummy or S3 + # Valid options are: + # "../screenshots/dummy.driver" + # "../screenshots/s3.driver" + screenshotsDriver: "../screenshots/dummy.driver" + + # https://sorry-cypress.dev/director/configuration + allowedKeys: "" + + # Set annotations for pods + podAnnotations: {} + + # Additional pod labels + podLabels: {} + + service: + port: 1234 + + ingress: + enabled: true + labels: {} + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: director.chart-example.local + path: / + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +mongo: + # You need to ensure that director.environmentVariables.executionDriver is set to "../execution/mongo/driver" if you want mongo.enabled to be true. + enabled: true + + mongoDatabase: "sorry-cypress" + + # Ignored if mongo.enabled is set to true + mongoServer: "" + + image: + repository: mongo + pullPolicy: Always + tag: "4.0" + + persistence: + enabled: false + accessMode: "ReadWriteOnce" + size: "1Gi" + + resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + + # Set annotations for pods + podAnnotations: {} + + # Additional pod labels + podLabels: {} + + service: + port: 27017 + +s3: + bucketName: example-bucket + region: us-east-1 + accessKeyId: "" + secretAccessKey: "" + acl: "public-read" + readUrlPrefix: "" + + ingress: + # When enabling ingress, an ExternalName service will be also created to expose the bucket. + enabled: false + labels: {} + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + # nginx.ingress.kubernetes.io/upstream-vhost: .s3-website-.amazonaws.com + # nginx.ingress.kubernetes.io/enable-cors: "true" + # nginx.ingress.kubernetes.io/cors-allow-origin: "*" + # nginx.ingress.kubernetes.io/cors-allow-methods: "POST, GET, PUT, DELETE, HEAD" + hosts: + - host: static.chart-example.local + path: / + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local diff --git a/charts/sorry-cypress/ci/values.yml b/charts/sorry-cypress/ci/values.yml new file mode 100644 index 0000000..e69de29 diff --git a/charts/sorry-cypress/values.yaml b/charts/sorry-cypress/values.yaml index 38292e8..84a84a2 100644 --- a/charts/sorry-cypress/values.yaml +++ b/charts/sorry-cypress/values.yaml @@ -153,7 +153,7 @@ director: # - chart-example.local mongo: - # You need to ensure that mongo.environmentVariables.executionDriver is set to "../execution/mongo/driver" if you want mongo.enabled to be true. + # You need to ensure that director.environmentVariables.executionDriver is set to "../execution/mongo/driver" if you want mongo.enabled to be true. enabled: false mongoDatabase: "sorry-cypress" From 35c9c98a6b7802fc46d6362fb8fcdba18ea4662a Mon Sep 17 00:00:00 2001 From: Tim Collins Date: Tue, 2 Feb 2021 14:18:50 +0000 Subject: [PATCH 2/2] yaml, not yml --- charts/sorry-cypress/ci/{mongo-values.yml => mongo-values.yaml} | 0 charts/sorry-cypress/ci/{values.yml => values.yaml} | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename charts/sorry-cypress/ci/{mongo-values.yml => mongo-values.yaml} (100%) rename charts/sorry-cypress/ci/{values.yml => values.yaml} (100%) diff --git a/charts/sorry-cypress/ci/mongo-values.yml b/charts/sorry-cypress/ci/mongo-values.yaml similarity index 100% rename from charts/sorry-cypress/ci/mongo-values.yml rename to charts/sorry-cypress/ci/mongo-values.yaml diff --git a/charts/sorry-cypress/ci/values.yml b/charts/sorry-cypress/ci/values.yaml similarity index 100% rename from charts/sorry-cypress/ci/values.yml rename to charts/sorry-cypress/ci/values.yaml