diff --git a/templates/deployment.yaml b/templates/deployment.yaml index 62c93ac..21cb484 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -8,6 +8,10 @@ metadata: name: {{ include "pgdog.fullname" . }} labels: {{- include "pgdog.labels" . | nindent 4 }} + {{- if .Values.annotations }} + annotations: + {{- toYaml .Values.annotations | nindent 4 }} + {{- end }} spec: {{- if .Values.statefulSet.enabled }} serviceName: {{ include "pgdog.fullname" . }}-headless diff --git a/values.yaml b/values.yaml index 785d4fc..ce0a89a 100644 --- a/values.yaml +++ b/values.yaml @@ -13,6 +13,9 @@ fullnameOverride: "" labels: {} selectorLabels: {} +# allows adding custom annotations to the deployment +annotations: {} + # allows adding custom annotations to the pods podAnnotations: {}