diff --git a/charts/prometheus-pushgateway/templates/deployment.yaml b/charts/prometheus-pushgateway/templates/deployment.yaml index 266c4660f385..5380bab2a442 100644 --- a/charts/prometheus-pushgateway/templates/deployment.yaml +++ b/charts/prometheus-pushgateway/templates/deployment.yaml @@ -25,6 +25,8 @@ spec: {{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }} spec: {{- include "prometheus-pushgateway.podSpec" . | nindent 6 }} + {{- with .Values.lifecycle}} lifecycle: - {{- toYaml .Values.lifecycle | nindent 8 }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- end }} diff --git a/charts/prometheus-pushgateway/templates/statefulset.yaml b/charts/prometheus-pushgateway/templates/statefulset.yaml index fd9ba9e73369..54cb5157ff33 100644 --- a/charts/prometheus-pushgateway/templates/statefulset.yaml +++ b/charts/prometheus-pushgateway/templates/statefulset.yaml @@ -22,8 +22,10 @@ spec: {{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }} spec: {{- include "prometheus-pushgateway.podSpec" . | nindent 6 }} + {{- with .Values.lifecycle }} lifecycle: - {{- toYaml .Values.lifecycle | nindent 8 }} + {{- toYaml . | nindent 8 }} + {{- end }} {{- if .Values.persistentVolume.enabled }} volumeClaimTemplates: - metadata: