From 0364b9a733d20140d0f6f5e722f9ae67a9544620 Mon Sep 17 00:00:00 2001 From: beastob Date: Wed, 15 Dec 2021 21:31:26 +0800 Subject: [PATCH] Add annotations to Deployment --- charts/external-dns/README.md | 1 + charts/external-dns/templates/deployment.yaml | 4 ++++ charts/external-dns/values.yaml | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/charts/external-dns/README.md b/charts/external-dns/README.md index 5bdb5c6712..f9d8288d5f 100644 --- a/charts/external-dns/README.md +++ b/charts/external-dns/README.md @@ -33,6 +33,7 @@ The following table lists the configurable parameters of the _ExternalDNS_ chart | `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the full name template. | `""` | | `rbac.create` | If `true`, create the RBAC resources. | `true` | | `rbac.additionalPermissions` | Additional permissions to be added to the cluster role. | `{}` | +| `annotations` | Annotations to add to the Deployment. | `{}` | | `podLabels` | Labels to add to the pod. | `{}` | | `podAnnotations` | Annotations to add to the pod. | `{}` | | `podSecurityContext` | Security context for the pod, this supports the full [PodSecurityContext](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#podsecuritycontext-v1-core) API. | _see values.yaml_ | diff --git a/charts/external-dns/templates/deployment.yaml b/charts/external-dns/templates/deployment.yaml index 4d7eda2f53..8af9210262 100644 --- a/charts/external-dns/templates/deployment.yaml +++ b/charts/external-dns/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "external-dns.fullname" . }} labels: {{- include "external-dns.labels" . | nindent 4 }} +{{- with .Values.annotations }} + annotations: +{{ toYaml . | indent 4 }} +{{- end }} spec: replicas: 1 selector: diff --git a/charts/external-dns/values.yaml b/charts/external-dns/values.yaml index c8730e3650..30552fcefa 100644 --- a/charts/external-dns/values.yaml +++ b/charts/external-dns/values.yaml @@ -26,8 +26,12 @@ rbac: create: true additionalPermissions: {} +# Annotations to add to the Deployment +annotations: {} + podLabels: {} +# Annotations to add to the Pod podAnnotations: {} podSecurityContext: