New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[velero] probes only when metrics are enabled #471
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should add
{{- if .Values.metrics.enabled }}
{{- end }}
between
helm-charts/charts/velero/templates/deployment.yaml
Lines 157 to 163 in 90450f6
{{- with .Values.livenessProbe }} | |
livenessProbe: {{- toYaml . | nindent 12 }} | |
{{- end }} | |
{{- with .Values.readinessProbe }} | |
readinessProbe: {{- toYaml . | nindent 12 }} | |
{{- end }} | |
{{- with .Values.containerSecurityContext }} |
@jenting its done! |
@maxime1907 Given the http-monitoring is valid when helm-charts/charts/velero/templates/deployment.yaml Lines 70 to 74 in 90450f6
So, we should change the deployment.yaml to {{- if .Values.metrics.enabled }}
{{- with .Values.livenessProbe }}
livenessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
{{- end }} |
@jenting is it ok now ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to change the values.yaml anymore.
@jenting done! |
Signed-off-by: Maxime Leroy <19607336+maxime1907@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you 😊
Special notes for your reviewer:
Fixes #470
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
[velero]
)