update 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{{- if .Values.externalSecret.enabled }}
|
||||
{{- if and .Values.externalSecret.vault.server .Values.externalSecret.remoteRef.applicationKey .Values.externalSecret.remoteRef.applicationSecret .Values.externalSecret.remoteRef.consumerKey }}
|
||||
{{- if and .Values.externalSecret.vault.server .Values.externalSecret.secretPath .Values.externalSecret.remoteRef.applicationKey .Values.externalSecret.remoteRef.applicationSecret .Values.externalSecret.remoteRef.consumerKey }}
|
||||
---
|
||||
# ExternalSecret pour cert-manager-webhook-ovh-ops
|
||||
apiVersion: external-secrets.io/v1
|
||||
@@ -22,13 +22,16 @@ spec:
|
||||
data:
|
||||
- secretKey: application-key
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.applicationKey }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.applicationKey }}
|
||||
- secretKey: application-secret
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.applicationSecret }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.applicationSecret }}
|
||||
- secretKey: consumer-key
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.consumerKey }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.consumerKey }}
|
||||
---
|
||||
# ExternalSecret pour cert-manager-ops (partage du même secret)
|
||||
apiVersion: external-secrets.io/v1
|
||||
@@ -51,14 +54,17 @@ spec:
|
||||
data:
|
||||
- secretKey: application-key
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.applicationKey }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.applicationKey }}
|
||||
- secretKey: application-secret
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.applicationSecret }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.applicationSecret }}
|
||||
- secretKey: consumer-key
|
||||
remoteRef:
|
||||
key: {{ .Values.externalSecret.remoteRef.consumerKey }}
|
||||
key: {{ .Values.externalSecret.secretPath | default "cert-manager-webhook-ovh" }}
|
||||
property: {{ .Values.externalSecret.remoteRef.consumerKey }}
|
||||
{{- else }}
|
||||
{{- fail "External Secrets est activé mais la configuration est incomplète. Veuillez définir externalSecret.vault.server et tous les remoteRef (applicationKey, applicationSecret, consumerKey)" }}
|
||||
{{- fail "External Secrets est activé mais la configuration est incomplète. Veuillez définir externalSecret.vault.server, externalSecret.secretPath et tous les remoteRef (applicationKey, applicationSecret, consumerKey)" }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user