From 04262e2b8862e905f938ca2175f80dc22975a7ac Mon Sep 17 00:00:00 2001 From: Etienne Tremel Date: Fri, 9 Mar 2018 14:12:48 +0000 Subject: [PATCH] Add podAnnotations --- contrib/charts/cert-manager/README.md | 1 + contrib/charts/cert-manager/templates/deployment.yaml | 4 ++++ contrib/charts/cert-manager/values.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/contrib/charts/cert-manager/README.md b/contrib/charts/cert-manager/README.md index c6f8361e3..f1db96463 100644 --- a/contrib/charts/cert-manager/README.md +++ b/contrib/charts/cert-manager/README.md @@ -73,6 +73,7 @@ The following tables lists the configurable parameters of the cert-manager chart | `ingressShim.image.repository` | Image repository for ingress-shim | `quay.io/jetstack/cert-manager-ingress-shim` | | `ingressShim.image.tag` | Image tag for ingress-shim. Defaults to `image.tag` if empty | `` | | `ingressShim.image.pullPolicy` | Image pull policy for ingress-shim | `IfNotPresent` | +| `podAnnotations` | Annotations to add to each pod | `{}` | Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. diff --git a/contrib/charts/cert-manager/templates/deployment.yaml b/contrib/charts/cert-manager/templates/deployment.yaml index 107c6583f..fa090e4f2 100644 --- a/contrib/charts/cert-manager/templates/deployment.yaml +++ b/contrib/charts/cert-manager/templates/deployment.yaml @@ -15,6 +15,10 @@ spec: labels: app: {{ template "cert-manager.name" . }} release: {{ .Release.Name }} + annotations: + {{- if .Values.podAnnotations }} +{{ toYaml .Values.podAnnotations | indent 8 }} + {{- end }} spec: serviceAccountName: {{ template "cert-manager.serviceAccountName" . }} containers: diff --git a/contrib/charts/cert-manager/values.yaml b/contrib/charts/cert-manager/values.yaml index 6bdd1da10..c1cdb9ad3 100644 --- a/contrib/charts/cert-manager/values.yaml +++ b/contrib/charts/cert-manager/values.yaml @@ -34,6 +34,8 @@ resources: {} # cpu: 10m # memory: 32Mi +podAnnotations: {} + nodeSelector: {} ingressShim: