Browse Source

Merge pull request #1003 from eric-maydeck/webhook-secret-annotations

feat: (helm chart) enable annotations for webhook secret
paul-the-alien[bot] 4 years ago
parent
commit
dc8c74d345

+ 1 - 0
deploy/charts/external-secrets/README.md

@@ -122,6 +122,7 @@ The command removes all the Kubernetes components associated with the chart and
 | webhook.rbac.create | bool | `true` | Specifies whether role and rolebinding resources should be created. |
 | webhook.replicaCount | int | `1` |  |
 | webhook.resources | object | `{}` |  |
+| webhook.secretAnnotations | object | `{}` | Annotations to add to Secret |
 | webhook.securityContext | object | `{}` |  |
 | webhook.serviceAccount.annotations | object | `{}` | Annotations to add to the service account. |
 | webhook.serviceAccount.create | bool | `true` | Specifies whether a service account should be created. |

+ 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: {}