Skip to content

Commit

Permalink
feat(prometheus-stack): Add lifecyle and terminationGracePeriodSecond…
Browse files Browse the repository at this point in the history
…s settings to prometheus-operator (#5112)

Signed-off-by: AviorSchreiber <[email protected]>
  • Loading branch information
AviorSchreiber authored Jan 6, 2025
1 parent b691e55 commit c678ad7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 67.7.0
version: 67.8.0
appVersion: v0.79.2
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ spec:
{{- with .Values.prometheusOperator.extraArgs }}
{{- tpl (toYaml .) $ | nindent 12 }}
{{- end }}
{{- with .Values.prometheusOperator.lifecycle }}
lifecycle: {{ toYaml . | nindent 12 }}
{{- end }}
ports:
- containerPort: {{ .Values.prometheusOperator.tls.internalPort }}
name: https
Expand Down Expand Up @@ -228,6 +231,9 @@ spec:
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.prometheusOperator.terminationGracePeriodSeconds }}
terminationGracePeriodSeconds: {{ . }}
{{- end }}
{{- with .Values.prometheusOperator.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2718,6 +2718,10 @@ prometheusOperator:
automountServiceAccountToken: true
annotations: {}

# -- terminationGracePeriodSeconds for container lifecycle hook
terminationGracePeriodSeconds: 30
# -- Specify lifecycle hooks for the controller
lifecycle: {}
## Configuration for Prometheus operator service
##
service:
Expand Down

0 comments on commit c678ad7

Please sign in to comment.