From d291257c7666021d4a2caccf90c2520a19c3cd53 Mon Sep 17 00:00:00 2001 From: safayavatsal <48085595+safayavatsal@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:57:53 +0530 Subject: [PATCH] Feat: added deployment annotations (#280) * added deployment annotations * fixed annotations in deployment manifest * fixed the issue --------- Co-authored-by: Vatsal --- charts/openmetadata/templates/deployment.yaml | 4 ++++ charts/openmetadata/values.schema.json | 3 +++ charts/openmetadata/values.yaml | 1 + 3 files changed, 8 insertions(+) diff --git a/charts/openmetadata/templates/deployment.yaml b/charts/openmetadata/templates/deployment.yaml index 57facc8..3cfa869 100644 --- a/charts/openmetadata/templates/deployment.yaml +++ b/charts/openmetadata/templates/deployment.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "OpenMetadata.fullname" . }} labels: {{- include "OpenMetadata.labels" . | indent 4 }} + {{- with .Values.deploymentAnnotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} selector: diff --git a/charts/openmetadata/values.schema.json b/charts/openmetadata/values.schema.json index b68695c..1a69878 100644 --- a/charts/openmetadata/values.schema.json +++ b/charts/openmetadata/values.schema.json @@ -1354,6 +1354,9 @@ "podAnnotations": { "type": "object" }, + "deploymentAnnotations": { + "type": "object" + }, "networkPolicy": { "type": "object", "additionalProperties": false, diff --git a/charts/openmetadata/values.yaml b/charts/openmetadata/values.yaml index 8cdc3d0..fbdaefc 100644 --- a/charts/openmetadata/values.yaml +++ b/charts/openmetadata/values.yaml @@ -512,4 +512,5 @@ podDisruptionBudget: minAvailable: "1" commonLabels: {} +deploymentAnnotations: {} podAnnotations: {}