From aec8103945322714548b83f727d9da02f1bdf87e Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Tue, 16 Jul 2024 12:04:20 +0100 Subject: [PATCH] fix: correct secretName ref --- charts/snyk-broker/Chart.yaml | 2 +- charts/snyk-broker/templates/broker_deployment.yaml | 2 +- .../snyk-broker/tests/broker_deployment_ca_test.yaml | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/charts/snyk-broker/Chart.yaml b/charts/snyk-broker/Chart.yaml index 8f95968..f1683a8 100644 --- a/charts/snyk-broker/Chart.yaml +++ b/charts/snyk-broker/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 name: snyk-broker -version: 2.7.0 +version: 2.7.1 description: A Helm chart for Kubernetes type: application diff --git a/charts/snyk-broker/templates/broker_deployment.yaml b/charts/snyk-broker/templates/broker_deployment.yaml index ba86159..e38ad34 100644 --- a/charts/snyk-broker/templates/broker_deployment.yaml +++ b/charts/snyk-broker/templates/broker_deployment.yaml @@ -497,7 +497,7 @@ spec: {{- if or (.Values.caCert) (.Values.caCertFile) }} - name: {{ include "snyk-broker.fullname" . }}-cacert-volume secret: - name: {{ include "snyk-broker.caCertSecretName" . }} + secretName: {{ include "snyk-broker.caCertSecretName" . }} {{- end }} {{- if and (.Values.httpsCert) (.Values.httpsKey) }} - name: {{ include "snyk-broker.fullname" . }}-tls-secret-volume diff --git a/charts/snyk-broker/tests/broker_deployment_ca_test.yaml b/charts/snyk-broker/tests/broker_deployment_ca_test.yaml index 6df9315..2ab0b38 100644 --- a/charts/snyk-broker/tests/broker_deployment_ca_test.yaml +++ b/charts/snyk-broker/tests/broker_deployment_ca_test.yaml @@ -30,7 +30,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: RELEASE-NAME-snyk-broker-cacert-secret + secretName: RELEASE-NAME-snyk-broker-cacert-secret template: broker_deployment.yaml - contains: path: spec.template.spec.containers[0].volumeMounts @@ -68,7 +68,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: snyk-broker-cacert-secret + secretName: snyk-broker-cacert-secret template: broker_deployment.yaml - contains: path: spec.template.spec.containers[0].volumeMounts @@ -115,7 +115,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: RELEASE-NAME-snyk-broker-cacert-secret + secretName: RELEASE-NAME-snyk-broker-cacert-secret template: broker_deployment.yaml - equal: path: data.cacert @@ -153,7 +153,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: RELEASE-NAME-snyk-broker-cacert-secret + secretName: RELEASE-NAME-snyk-broker-cacert-secret template: broker_deployment.yaml - equal: path: data.cacert @@ -198,7 +198,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: RELEASE-NAME-snyk-broker-cacert-secret + secretName: RELEASE-NAME-snyk-broker-cacert-secret template: broker_deployment.yaml - equal: path: data.cacert @@ -244,7 +244,7 @@ tests: content: name: RELEASE-NAME-snyk-broker-cacert-volume secret: - name: RELEASE-NAME-snyk-broker-cacert-secret + secretName: RELEASE-NAME-snyk-broker-cacert-secret template: broker_deployment.yaml - equal: path: data.cacert