update secret

This commit is contained in:
2026-01-22 21:28:15 +01:00
parent 5ebfcbf59e
commit 7c38f9355a
3 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{{- if not .Values.externalSecret.enabled }}
{{- if .Values.ovhCredentials.applicationKey }}
---
# Secret OVH credentials pour cert-manager-webhook-ovh-ops
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.externalSecret.secretName | default "cert-manager-webhook-ovh" }}
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: cert-manager-webhook-ovh
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
type: Opaque
stringData:
application-key: {{ .Values.ovhCredentials.applicationKey }}
application-secret: {{ .Values.ovhCredentials.applicationSecret }}
consumer-key: {{ .Values.ovhCredentials.consumerKey }}
---
# Secret OVH credentials pour cert-manager-ops (partage du même secret)
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.externalSecret.secretName | default "cert-manager-webhook-ovh" }}
namespace: {{ .Values.certManager.namespace }}
labels:
app.kubernetes.io/name: cert-manager-webhook-ovh
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
type: Opaque
stringData:
application-key: {{ .Values.ovhCredentials.applicationKey }}
application-secret: {{ .Values.ovhCredentials.applicationSecret }}
consumer-key: {{ .Values.ovhCredentials.consumerKey }}
{{- end }}
{{- end }}