Skip to content

Commit

Permalink
Correct placement of lifecycle
Browse files Browse the repository at this point in the history
Signed-off-by: zeritti <[email protected]>
  • Loading branch information
zeritti committed Dec 31, 2024
1 parent 9ef0bfb commit b2dd856
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
3 changes: 3 additions & 0 deletions charts/prometheus-pushgateway/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ containers:
securityContext:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.lifecycle }}
lifecycle: {{ toYaml . | nindent 6 }}
{{- end }}
volumeMounts:
- name: storage-volume
mountPath: "{{ .Values.persistentVolume.mountPath }}"
Expand Down
4 changes: 0 additions & 4 deletions charts/prometheus-pushgateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,4 @@ spec:
{{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }}
spec:
{{- include "prometheus-pushgateway.podSpec" . | nindent 6 }}
{{- with .Values.lifecycle}}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 0 additions & 4 deletions charts/prometheus-pushgateway/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ spec:
{{- include "prometheus-pushgateway.defaultLabels" . | nindent 8 }}
spec:
{{- include "prometheus-pushgateway.podSpec" . | nindent 6 }}
{{- with .Values.lifecycle }}
lifecycle:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down

0 comments on commit b2dd856

Please sign in to comment.