From c7d3bc3b4223b5d0dfe8a79c9d51df29d58944ef Mon Sep 17 00:00:00 2001 From: Edward Brough Date: Thu, 15 Jun 2023 09:56:16 +0000 Subject: [PATCH] adding deployment annotations Signed-off-by: Edward Brough --- README.md | 1 + templates/deployment.yaml | 4 ++++ values.yaml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index a4d6efb..560b970 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ their default values. | `serviceAccount.create` | Create ServiceAccount | `false` | | `serviceAccount.name` | ServiceAccount name | `nil` | | `serviceAccount.annotations` | Annotations to add to the ServiceAccount | `{}` | +| `deployment.annotations` | Annotations to add to the Deployment | `{}` | | `service.port` | TCP port on which the service is exposed | `5000` | | `service.type` | service type | `ClusterIP` | | `service.clusterIP` | if `service.type` is `ClusterIP` and this is non-empty, sets the cluster IP of the service | `nil` | diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 6d2ff0e..7bd8bea 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -8,6 +8,10 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.deployment.annotations }} + annotations: +{{ toYaml .Values.deployment.annotations | indent 4 }} +{{- end }} spec: selector: matchLabels: diff --git a/values.yaml b/values.yaml index 7f9c558..9704bf2 100644 --- a/values.yaml +++ b/values.yaml @@ -23,6 +23,8 @@ image: pullPolicy: IfNotPresent # imagePullSecrets: # - name: docker +deployment: {} + # annotations: service: name: registry type: ClusterIP