|
|
@@ -6,9 +6,14 @@ metadata:
|
|
|
labels:
|
|
|
{{- include "external-secrets-webhook.labels" . | nindent 4 }}
|
|
|
external-secrets.io/component: webhook
|
|
|
- {{- if and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations }}
|
|
|
+ {{- if or .Values.webhook.annotations (and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations) }}
|
|
|
annotations:
|
|
|
+ {{- if and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations }}
|
|
|
cert-manager.io/inject-ca-from: {{ template "external-secrets.namespace" . }}/{{ include "external-secrets.fullname" . }}-webhook
|
|
|
+ {{- end }}
|
|
|
+ {{- if .Values.webhook.annotations }}
|
|
|
+ {{- toYaml .Values.webhook.annotations | nindent 4 }}
|
|
|
+ {{- end }}
|
|
|
{{- end }}
|
|
|
webhooks:
|
|
|
- name: "validate.secretstore.external-secrets.io"
|
|
|
@@ -50,9 +55,14 @@ metadata:
|
|
|
labels:
|
|
|
{{- include "external-secrets-webhook.labels" . | nindent 4 }}
|
|
|
external-secrets.io/component: webhook
|
|
|
- {{- if and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations }}
|
|
|
+ {{- if or .Values.webhook.annotations (and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations) }}
|
|
|
annotations:
|
|
|
+ {{- if and .Values.webhook.certManager.enabled .Values.webhook.certManager.addInjectorAnnotations }}
|
|
|
cert-manager.io/inject-ca-from: {{ template "external-secrets.namespace" . }}/{{ include "external-secrets.fullname" . }}-webhook
|
|
|
+ {{- end }}
|
|
|
+ {{- if .Values.webhook.annotations }}
|
|
|
+ {{- toYaml .Values.webhook.annotations | nindent 4 }}
|
|
|
+ {{- end }}
|
|
|
{{- end }}
|
|
|
webhooks:
|
|
|
- name: "validate.externalsecret.external-secrets.io"
|