Skip to content

Commit

Permalink
fix(velero): probes only when metrics are enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
  • Loading branch information
maxime1907 committed Jul 4, 2023
1 parent 5ae2a83 commit d5364cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/velero/Chart.yaml
Expand Up @@ -3,7 +3,7 @@ appVersion: 1.11.0
kubeVersion: ">=1.16.0-0"
description: A Helm chart for velero
name: velero
version: 4.1.1
version: 4.1.2
home: https://github.com/vmware-tanzu/velero
icon: https://cdn-images-1.medium.com/max/1600/1*-9mb3AKnKdcL_QD3CMnthQ.png
sources:
Expand Down
2 changes: 2 additions & 0 deletions charts/velero/templates/deployment.yaml
Expand Up @@ -154,12 +154,14 @@ spec:
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.metrics.enabled }}
{{- with .Values.livenessProbe }}
livenessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
{{- end }}
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
Expand Down

0 comments on commit d5364cc

Please sign in to comment.