Skip to content

Instantly share code, notes, and snippets.

@chaporgin
Created April 20, 2022 09:03
Show Gist options
  • Select an option

  • Save chaporgin/eaabf8a209790cffdf5220b8fba68e37 to your computer and use it in GitHub Desktop.

Select an option

Save chaporgin/eaabf8a209790cffdf5220b8fba68e37 to your computer and use it in GitHub Desktop.
chapson quick paste
default, release-test, Job (batch) has been added:
-
+ # Source: zenith-console/templates/release-e2e-job.yaml
+ apiVersion: batch/v1
+ kind: Job
+ metadata:
+ name: release-test
+ labels:
+ helm.sh/chart: zenith-console-0.1.1
+ app.kubernetes.io/name: zenith-console
+ app.kubernetes.io/instance: zenith-console
+ app.kubernetes.io/version: "latest"
+ app.kubernetes.io/managed-by: Helm
+ annotations:
+ "helm.sh/hook": pre-install,pre-upgrade
+ "helm.sh/hook-weight": "-1000"
+ "helm.sh/hook-delete-policy": before-hook-creation
+ spec:
+ ttlSecondsAfterFinished: 6000 # to leave logs
+ template:
+ metadata:
+ annotations:
+ checksum/config: 4d6fc57abc42ba58e13eceb38b38a5d9e677e1bc6d36fb584381104ac5e87f76
+ spec:
+ containers:
+ - name: release-test
+ resources:
+ requests:
+ memory: 200Mi
+ cpu: 400m
+ limits:
+ memory: 400Mi
+ cpu: 800m
+ image: "zenithdb/console@e2e-staging"
+ command:
+ - pytest
+ - "-m"
+ - "test_release"
+ env:
+ - name: NEON_API_KEY
+ valueFrom:
+ secretKeyRef:
+ key: NEON_API_KEY_E2E_RELEASE
+ name: zenith-console-secret
+ volumeMounts:
+ - name: release-test-e2e
+ mountPath: "/etc/e2e/"
+ readOnly: true
+ volumes:
+ - name: release-test-e2e
+ configMap:
+ name: release-test-e2e
+ restartPolicy: Never
+ backoffLimit: 0 # any failure will result in rollback.
+ completions: 1
+ parallelism: 1
default, release-test-e2e, ConfigMap (v1) has been added:
-
+ # Source: zenith-console/templates/release-e2e-configmap.yaml
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+ name: release-test-e2e
+ labels:
+ helm.sh/chart: zenith-console-0.1.1
+ app.kubernetes.io/name: zenith-console
+ app.kubernetes.io/instance: zenith-console
+ app.kubernetes.io/version: "latest"
+ app.kubernetes.io/managed-by: Helm
+ annotations:
+ "helm.sh/hook": pre-install,pre-upgrade
+ "helm.sh/hook-weight": "-1100"
+ "helm.sh/hook-delete-policy": before-hook-creation
+ data:
+ pytest.ini: |
+ [pytest]
+ addopts =
+ --showlocals
+ -W error
+ -W ignore::DeprecationWarning
+ -c /etc/e2e/pytest.ini
+ log_format = %(asctime)s %(levelname)s %(message)s
+ log_date_format = %Y-%m-%d %H:%M:%S
+ log_level = DEBUG
+ asyncio_mode = auto
+ markers =
+ large: marks tests as time consuming large. Run by default.
+ stress: possibly destructive tests. Select with "pytest --stress"
+ periodic: OK to run as periodic load on production stands.
+ test_release: Will run tests ensuring that release is stable.
+ config.yaml: |
+ user:
+ api_key: "will be loaded from env"
+ stand:
+ console_api_v1: https://console.stage.zenith.tech
+ manamagement_api_v2: http://console-staging.local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment