From f43ceb6ba5c5338fbd088e800f321f48d9eeec7e Mon Sep 17 00:00:00 2001 From: Ivan Akulov Date: Tue, 30 Mar 2021 20:46:57 +0400 Subject: [PATCH] [aws-for-fluent-bit] Allow to add annotations to the pod (#338) --- stable/aws-for-fluent-bit/README.md | 1 + stable/aws-for-fluent-bit/templates/daemonset.yaml | 4 ++++ stable/aws-for-fluent-bit/values.yaml | 3 +++ 3 files changed, 8 insertions(+) diff --git a/stable/aws-for-fluent-bit/README.md b/stable/aws-for-fluent-bit/README.md index 5f3ecdf9d..d32d25b02 100755 --- a/stable/aws-for-fluent-bit/README.md +++ b/stable/aws-for-fluent-bit/README.md @@ -92,3 +92,4 @@ helm delete aws-for-fluent-bit --namespace kube-system | `affinity` | Map of node/pod affinities | `{}` | | `tolerations` | Optional deployment tolerations | `[]` | | `nodeSelector` | Node labels for pod assignment | `{}` | +| `annotations` | Optional pod annotations | `{}` | diff --git a/stable/aws-for-fluent-bit/templates/daemonset.yaml b/stable/aws-for-fluent-bit/templates/daemonset.yaml index a0ff789a5..80c006250 100755 --- a/stable/aws-for-fluent-bit/templates/daemonset.yaml +++ b/stable/aws-for-fluent-bit/templates/daemonset.yaml @@ -13,6 +13,10 @@ spec: {{- include "aws-for-fluent-bit.selectorLabels" . | nindent 6 }} template: metadata: + {{- if .Values.annotations }} + annotations: + {{- toYaml .Values.annotations | nindent 8 }} + {{- end }} labels: {{- include "aws-for-fluent-bit.selectorLabels" . | nindent 8 }} spec: diff --git a/stable/aws-for-fluent-bit/values.yaml b/stable/aws-for-fluent-bit/values.yaml index ee576e1ba..bbfb95b71 100644 --- a/stable/aws-for-fluent-bit/values.yaml +++ b/stable/aws-for-fluent-bit/values.yaml @@ -134,3 +134,6 @@ nodeSelector: {} tolerations: [] affinity: {} + +annotations: {} + # iam.amazonaws.com/role: arn:aws:iam::123456789012:role/role-for-fluent-bit