Skip to content

Commit 9f8f360

Browse files
committed
Add ability to configure annotations on deployments
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
1 parent 0cd0cd7 commit 9f8f360

7 files changed

+27
-0
lines changed

rocketchat/templates/chat-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010
{{- if .Values.deploymentLabels }}
1111
{{ toYaml .Values.deploymentLabels | indent 4 }}
1212
{{- end }}
13+
{{- if .Values.deploymentAnnotations }}
14+
annotations:
15+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
16+
{{- end }}
1317
spec:
1418
replicas: {{ .Values.replicaCount }}
1519
selector:

rocketchat/templates/microservices-account-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ metadata:
1111
{{- if .Values.deploymentLabels }}
1212
{{- toYaml .Values.deploymentLabels | nindent 4 }}
1313
{{- end }}
14+
{{- if .Values.deploymentAnnotations }}
15+
annotations:
16+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
17+
{{- end }}
1418
spec:
1519
replicas: {{ .Values.microservices.account.replicas }}
1620
selector:

rocketchat/templates/microservices-authorization-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ metadata:
1111
{{- if .Values.deploymentLabels }}
1212
{{- toYaml .Values.deploymentLabels | nindent 4 }}
1313
{{- end }}
14+
{{- if .Values.deploymentAnnotations }}
15+
annotations:
16+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
17+
{{- end }}
1418
spec:
1519
replicas: {{ .Values.microservices.authorization.replicas }}
1620
revisionHistoryLimit: 0

rocketchat/templates/microservices-ddp-streamer-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ metadata:
1111
{{- if .Values.deploymentLabels }}
1212
{{- toYaml .Values.deploymentLabels | nindent 4 }}
1313
{{- end }}
14+
{{- if .Values.deploymentAnnotations }}
15+
annotations:
16+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
17+
{{- end }}
1418
spec:
1519
replicas: {{ .Values.microservices.ddpStreamer.replicas }}
1620
selector:

rocketchat/templates/microservices-presence-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ metadata:
1111
{{- if .Values.deploymentLabels }}
1212
{{- toYaml .Values.deploymentLabels | nindent 4 }}
1313
{{- end }}
14+
{{- if .Values.deploymentAnnotations }}
15+
annotations:
16+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
17+
{{- end }}
1418
spec:
1519
replicas: {{ .Values.microservices.presence.replicas }}
1620
revisionHistoryLimit: 0

rocketchat/templates/microservices-stream-hub-deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ metadata:
1818
{{- if .Values.deploymentLabels }}
1919
{{- toYaml .Values.deploymentLabels | nindent 4 }}
2020
{{- end }}
21+
{{- if .Values.deploymentAnnotations }}
22+
annotations:
23+
{{ toYaml .Values.deploymentAnnotations | indent 4 }}
24+
{{- end }}
2125
spec:
2226
replicas: 1
2327
revisionHistoryLimit: 0

rocketchat/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ service:
257257
## Optional custom labels for the deployment resource.
258258
deploymentLabels: {}
259259

260+
## Optional custom annotations for the deployment resource.
261+
deploymentAnnotations: {}
262+
260263
## Optional Pod Labels.
261264
podLabels: {}
262265

0 commit comments

Comments
 (0)