Browse Source

feat: enable annotations for webhook secret

Eric Maydeck 4 years ago
parent
commit
730eab548a

+ 5 - 1
deploy/charts/external-secrets/templates/webhook-secret.yaml

@@ -7,4 +7,8 @@ metadata:
   labels:
     {{- include "external-secrets-webhook.labels" . | nindent 4 }}
     external-secrets.io/component : webhook
-{{- end }}
+  {{- with .Values.webhook.secretAnnotations }}
+  annotations:
+    {{- toYaml . | nindent 4 }}
+  {{- end }}
+{{- end }}

+ 3 - 0
deploy/charts/external-secrets/values.yaml

@@ -156,6 +156,9 @@ webhook:
     ## -- Map of extra arguments to pass to container.
   extraArgs: {}
 
+    # -- Annotations to add to Secret
+  secretAnnotations: {}
+
     # -- Annotations to add to Deployment
   deploymentAnnotations: {}