diff --git a/charts/base/templates/external-secrets.yaml b/charts/base/templates/external-secrets.yaml index baeafc4..7b2c20b 100644 --- a/charts/base/templates/external-secrets.yaml +++ b/charts/base/templates/external-secrets.yaml @@ -1,6 +1,6 @@ {{- if and (eq .Values.secretsDefaultEngine "ExternalSecrets") .Values.secrets -}} {{ $fullName := include "base.fullname" .}} -apiVersion: external-secrets.io/v1alpha1 +apiVersion: {{ .Values.externalSecretsApiVersion }} kind: ExternalSecret metadata: name: {{ $fullName }} diff --git a/charts/base/values.yaml b/charts/base/values.yaml index 8488509..66a94c3 100644 --- a/charts/base/values.yaml +++ b/charts/base/values.yaml @@ -124,6 +124,7 @@ ingress: secrets: [] secretsDefaultEngine: "ExternalSecrets" +externalSecretsApiVersion: external-secrets.io/v1alpha1 # TODO: the new version external-secrets.io/v1beta1 is available in external-secret operator, please update to new version as soon as you upgrade operator(the new dasmeta eks module already uses the new one) # secrets: # - external-secret-1 # - external-secret-2