Skip to content

Commit 31c8947

Browse files
authored
Merge pull request #148 from kanor1306/add-annotations-to-deployment
Add annotations to operator deployment
2 parents 035c13a + ce06a0d commit 31c8947

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

charts/ext-postgres-operator/templates/operator.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ metadata:
55
labels:
66
{{- include "chart.labels" . | nindent 4 }}
77
namespace: {{ .Release.Namespace }}
8+
{{- with .Values.deploymentAnnotations }}
9+
annotations:
10+
{{- toYaml . | nindent 4 }}
11+
{{- end }}
812
spec:
913
replicas: {{ .Values.replicaCount }}
1014
selector:

charts/ext-postgres-operator/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ serviceAccount:
2222
# If not set and create is true, a name is generated using the fullname template
2323
name: ""
2424

25+
deploymentAnnotations: {}
26+
2527
podAnnotations: {}
2628

2729
# Additionnal labels to add to the pod.

0 commit comments

Comments
 (0)