You've already forked athens-proxy-charts
All checks were successful
Generate README / generate-parameters (push) Successful in 9s
Helm / helm-lint (push) Successful in 10s
Helm / helm-unittest (push) Successful in 8s
Markdown linter / markdown-lint (push) Successful in 10s
Markdown linter / markdown-link-checker (push) Successful in 30s
Release / publish-chart (push) Successful in 21s
Depending on the environment or tooling in which the chart is deployed, you may or may not want to have the checksum annotation. In the past, these were enforced. The default remains that the checksum annotation is added. It now only contains a switch that allows you to optionally disable it.
84 lines
2.6 KiB
YAML
84 lines
2.6 KiB
YAML
chart:
|
|
appVersion: 0.1.0
|
|
version: 0.1.0
|
|
suite: Deployment template
|
|
release:
|
|
name: athens-proxy-unittest
|
|
namespace: testing
|
|
templates:
|
|
- templates/deployment.yaml
|
|
- templates/secretEnv.yaml
|
|
tests:
|
|
- it: Rendering default without mounted env secret
|
|
asserts:
|
|
- notExists:
|
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
- notContains:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
content:
|
|
secretRef:
|
|
name: athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
|
|
- it: Rendering default with mounted env secret
|
|
set:
|
|
config.env.enabled: true
|
|
asserts:
|
|
- exists:
|
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
- contains:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
content:
|
|
secretRef:
|
|
name: athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
|
|
- it: Rendering default with mounted env secret, but without sha sum annotation
|
|
set:
|
|
config.env.enabled: true
|
|
config.env.addSHASumAnnotation: false
|
|
asserts:
|
|
- notExists:
|
|
path: spec.template.metadata.annotations.checksum/secret-athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
- contains:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
content:
|
|
secretRef:
|
|
name: athens-proxy-unittest-env
|
|
template: templates/deployment.yaml
|
|
|
|
- it: Rendering default with mounted existing env secret
|
|
set:
|
|
config.env.enabled: true
|
|
config.env.existingSecret.enabled: true
|
|
config.env.existingSecret.secretName: my-secret
|
|
asserts:
|
|
- exists:
|
|
path: spec.template.metadata.annotations.checksum/secret-my-secret
|
|
template: templates/deployment.yaml
|
|
- contains:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
content:
|
|
secretRef:
|
|
name: my-secret
|
|
template: templates/deployment.yaml
|
|
|
|
- it: Rendering default with mounted existing env secret, but without sha sum annotation
|
|
set:
|
|
config.env.enabled: true
|
|
config.env.addSHASumAnnotation: false
|
|
config.env.existingSecret.enabled: true
|
|
config.env.existingSecret.secretName: my-secret
|
|
asserts:
|
|
- notExists:
|
|
path: spec.template.metadata.annotations.checksum/secret-my-secret
|
|
template: templates/deployment.yaml
|
|
- contains:
|
|
path: spec.template.spec.containers[0].envFrom
|
|
content:
|
|
secretRef:
|
|
name: my-secret
|
|
template: templates/deployment.yaml |