From fff155d73dbaf0677600bad60dc612e8ecf8a0ba Mon Sep 17 00:00:00 2001 From: pipo02mix Date: Thu, 6 Feb 2020 11:41:44 +0100 Subject: [PATCH] Add pod annotation to appmesh controller deployment Signed-off-by: pipo02mix --- stable/appmesh-controller/README.md | 1 + stable/appmesh-controller/templates/deployment.yaml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/stable/appmesh-controller/README.md b/stable/appmesh-controller/README.md index c031802b5..04f04a6e5 100644 --- a/stable/appmesh-controller/README.md +++ b/stable/appmesh-controller/README.md @@ -80,6 +80,7 @@ Parameter | Description | Default `resources.limits/memory` | pod memory limit | `1Gi` `affinity` | node/pod affinities | None `nodeSelector` | node labels for pod assignment | `{}` +`podAnnotations` | annotations to add to each pod | `{}` `tolerations` | list of node taints to tolerate | `[]` `rbac.create` | if `true`, create and use RBAC resources | `true` `rbac.pspEnabled` | If `true`, create and use a restricted pod security policy | `false` diff --git a/stable/appmesh-controller/templates/deployment.yaml b/stable/appmesh-controller/templates/deployment.yaml index 7ee83d7ee..7e5c7e922 100644 --- a/stable/appmesh-controller/templates/deployment.yaml +++ b/stable/appmesh-controller/templates/deployment.yaml @@ -18,6 +18,11 @@ spec: app.kubernetes.io/part-of: appmesh annotations: prometheus.io/scrape: "true" + {{- if .Values.podAnnotations }} + {{- range $key, $value := .Values.podAnnotations }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: serviceAccountName: {{ template "appmesh-controller.serviceAccountName" . }} containers: