From 48937bb7a3908bcb6c845871c69f6b96488546e0 Mon Sep 17 00:00:00 2001 From: Jacques ROUSSEL Date: Fri, 14 Feb 2025 11:51:31 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(helm)=20fix=20helm=20chart?= =?UTF-8?q?=20for=20keycloak=20stack?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ingress stop working, so this commit fix it --- src/helm/extra/templates/clustersecretstore.yaml | 2 ++ src/helm/extra/templates/external_secret.yaml | 2 ++ src/helm/extra/templates/external_secret_deployment.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/helm/extra/templates/clustersecretstore.yaml b/src/helm/extra/templates/clustersecretstore.yaml index 09c41ef4..82043e81 100644 --- a/src/helm/extra/templates/clustersecretstore.yaml +++ b/src/helm/extra/templates/clustersecretstore.yaml @@ -1,3 +1,4 @@ +{{ if .Values.secrets }} apiVersion: external-secrets.io/v1beta1 kind: ClusterSecretStore metadata: @@ -31,3 +32,4 @@ spec: webhook: url: "http://bitwarden-cli-{{ $.Release.Namespace }}.{{ $.Release.Namespace }}.svc.cluster.local:8087/object/attachment/{{`{{ .remoteRef.property }}`}}?itemid={{`{{ .remoteRef.key }}`}}" result: {} +{{ end }} diff --git a/src/helm/extra/templates/external_secret.yaml b/src/helm/extra/templates/external_secret.yaml index cdf7ee27..8bfa93d2 100644 --- a/src/helm/extra/templates/external_secret.yaml +++ b/src/helm/extra/templates/external_secret.yaml @@ -1,3 +1,4 @@ +{{ if .Values.secrets }} apiVersion: external-secrets.io/v1beta1 kind: ExternalSecret metadata: @@ -26,3 +27,4 @@ spec: key: {{ .itemId }} property: {{ .field }} {{- end }} +{{ end }} diff --git a/src/helm/extra/templates/external_secret_deployment.yaml b/src/helm/extra/templates/external_secret_deployment.yaml index bd5dc23a..828cb6ae 100644 --- a/src/helm/extra/templates/external_secret_deployment.yaml +++ b/src/helm/extra/templates/external_secret_deployment.yaml @@ -1,3 +1,4 @@ +{{ if .Values.secrets }} --- apiVersion: apps/v1 kind: Deployment @@ -90,3 +91,4 @@ spec: selector: app.kubernetes.io/name: bitwarden-cli app.kubernetes.io/instance: bitwarden-cli +{{ end }}