diff --git a/charts/common/templates/_sealedFileSecret.yaml b/charts/common/templates/_sealedFileSecret.yaml index 7a3a356..b47ebe6 100644 --- a/charts/common/templates/_sealedFileSecret.yaml +++ b/charts/common/templates/_sealedFileSecret.yaml @@ -1,6 +1,6 @@ {{- define "common.sealedFileSecret.tpl" -}} {{- range .Values.sealedFileSecrets }} -{{- $robustName := include "robustName" $.Release.Name }} +{{- $robustName := include "common.robustName" $.Release.Name }} --- apiVersion: bitnami.com/v1alpha1 kind: SealedSecret diff --git a/charts/common/templates/_sealedSecret.yaml b/charts/common/templates/_sealedSecret.yaml index cea7611..7bec2ee 100644 --- a/charts/common/templates/_sealedSecret.yaml +++ b/charts/common/templates/_sealedSecret.yaml @@ -3,7 +3,7 @@ apiVersion: bitnami.com/v1alpha1 kind: SealedSecret metadata: - name: {{ template "robustName" .Release.Name }} + name: {{ template "common.robustName" .Release.Name }} namespace: {{ .Release.Namespace }} labels: {{- include "helm-chart.labels" . | nindent 4 }} @@ -16,7 +16,7 @@ spec: {{- end }} template: metadata: - name: {{ template "robustName" .Release.Name }} + name: {{ template "common.robustName" .Release.Name }} namespace: {{ .Release.Namespace }} {{- end }} {{- end -}} diff --git a/charts/cron-job/Chart.yaml b/charts/cron-job/Chart.yaml index 182eb88..d83e77b 100644 --- a/charts/cron-job/Chart.yaml +++ b/charts/cron-job/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.1 +version: 0.2.2 dependencies: - name: common diff --git a/charts/cron-job/charts/common-0.1.0.tgz b/charts/cron-job/charts/common-0.1.0.tgz index 7a1aa03..fefb316 100644 Binary files a/charts/cron-job/charts/common-0.1.0.tgz and b/charts/cron-job/charts/common-0.1.0.tgz differ diff --git a/charts/cron-job/tests/cronjob_sealed_file_secrets_test.yaml b/charts/cron-job/tests/cronjob_sealed_file_secrets_test.yaml new file mode 100644 index 0000000..84ea6f1 --- /dev/null +++ b/charts/cron-job/tests/cronjob_sealed_file_secrets_test.yaml @@ -0,0 +1,28 @@ +suite: test deployment +templates: + - cronJob.yaml +tests: + - it: Should mount volume + set: &values + sealedFileSecrets: + - name: google-account-key + path: /google-account-key + filesToMount: + - name: key.json + sourcePath: my-google-acoount-key.json + asserts: + - equal: + path: spec.jobTemplate.spec.template.spec.containers[0].volumeMounts + value: + - name: google-account-key + mountPath: /google-account-key + readOnly: true + - it: Should reference volume + set: *values + asserts: + - equal: + path: spec.jobTemplate.spec.template.spec.volumes + value: + - name: google-account-key + secret: + secretName: RELEASE-NAME-google-account-key diff --git a/charts/onechart/Chart.yaml b/charts/onechart/Chart.yaml index 3aaf4c1..085aa3f 100644 --- a/charts/onechart/Chart.yaml +++ b/charts/onechart/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.28.0 +version: 0.27.0-rc3 dependencies: - name: common diff --git a/charts/onechart/charts/common-0.1.0.tgz b/charts/onechart/charts/common-0.1.0.tgz index 0e239d5..ee38d95 100644 Binary files a/charts/onechart/charts/common-0.1.0.tgz and b/charts/onechart/charts/common-0.1.0.tgz differ