Skip to content

Commit

Permalink
[HELM]: Added checksum config annotation in stateful set for broker, …
Browse files Browse the repository at this point in the history
…controller and server (#13059)

* Added checksum config anotation in statful set for broker, controller and server

* Updated as per the PR comment.

* remove unneccessry testing file.
  • Loading branch information
abhioncbr committed May 16, 2024
1 parent 49fa66c commit 340286b
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
5 changes: 4 additions & 1 deletion helm/pinot/templates/broker/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ spec:
labels:
{{- include "pinot.brokerLabels" . | nindent 8 }}
annotations:
{{ toYaml .Values.broker.podAnnotations | indent 8 }}
{{- if .Values.broker.automaticReload.enabled }}
checksum/config: {{- include (print $.Template.BasePath "/broker/configmap.yaml") . | sha256sum }}
{{- end }}
{{ toYaml .Values.broker.podAnnotations | nindent 8 }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
serviceAccountName: {{ include "pinot.serviceAccountName" . }}
Expand Down
5 changes: 4 additions & 1 deletion helm/pinot/templates/controller/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ spec:
labels:
{{- include "pinot.controllerLabels" . | nindent 8 }}
annotations:
{{ toYaml .Values.controller.podAnnotations | indent 8 }}
{{- if .Values.controller.automaticReload.enabled }}
checksum/config: {{- include (print $.Template.BasePath "/controller/configmap.yaml") . | sha256sum }}
{{- end }}
{{ toYaml .Values.controller.podAnnotations | nindent 8 }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
serviceAccountName: {{ include "pinot.serviceAccountName" . }}
Expand Down
5 changes: 4 additions & 1 deletion helm/pinot/templates/minion/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ spec:
labels:
{{- include "pinot.minionLabels" . | nindent 8 }}
annotations:
{{ toYaml .Values.minion.podAnnotations | indent 8 }}
{{- if .Values.minion.automaticReload.enabled }}
checksum/config: {{ include (print $.Template.BasePath "/minion/configmap.yaml") . | sha256sum}}
{{- end }}
{{ toYaml .Values.minion.podAnnotations | nindent 8 }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
serviceAccountName: {{ include "pinot.serviceAccountName" . }}
Expand Down
5 changes: 4 additions & 1 deletion helm/pinot/templates/server/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ spec:
labels:
{{- include "pinot.serverLabels" . | nindent 8 }}
annotations:
{{ toYaml .Values.server.podAnnotations | indent 8 }}
{{- if .Values.server.automaticReload.enabled }}
checksum/config: {{- include (print $.Template.BasePath "/server/configmap.yaml") . | sha256sum }}
{{- end }}
{{ toYaml .Values.server.podAnnotations | nindent 8 }}
spec:
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
serviceAccountName: {{ include "pinot.serviceAccountName" . }}
Expand Down
15 changes: 15 additions & 0 deletions helm/pinot/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ controller:

podAnnotations: {}

# set enabled as true, to automatically roll controller stateful set for configmap change
automaticReload:
enabled: false

updateStrategy:
type: RollingUpdate

Expand Down Expand Up @@ -269,6 +273,10 @@ broker:

podAnnotations: {}

# set enabled as true, to automatically roll broker stateful set for configmap change
automaticReload:
enabled: false

updateStrategy:
type: RollingUpdate

Expand Down Expand Up @@ -362,6 +370,10 @@ server:

podAnnotations: {}

# set enabled as true, to automatically roll server stateful set for configmap change
automaticReload:
enabled: false

updateStrategy:
type: RollingUpdate

Expand Down Expand Up @@ -452,6 +464,9 @@ minion:

podAnnotations: {}

automaticReload:
enabled: false

updateStrategy:
type: RollingUpdate

Expand Down

0 comments on commit 340286b

Please sign in to comment.