fix: guard against missing healthcheck config
Also add support for liveness and readiness probes.
This commit is contained in:
1 parent
a64e9514ee
commit
1d99e0bc6e
3 files changed
+12
-4
No files matched your search
@@ -82,10 +82,18 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if $config.healthchecks.startup }}
|
||||
{{- if and $config.healthchecks $config.healthchecks.startup }}
|
||||
startupProbe:
|
||||
{{ $config.healthchecks.startup | toJson | indent 10 }}
|
||||
{{- end }}
|
||||
{{- if and $config.healthchecks $config.healthchecks.liveness }}
|
||||
livenessProbe:
|
||||
{{ $config.healthchecks.liveness | toJson | indent 10 }}
|
||||
{{- end }}
|
||||
{{- if and $config.healthchecks $config.healthchecks.readiness }}
|
||||
readinessProbe:
|
||||
{{ $config.healthchecks.readiness | toJson | indent 10 }}
|
||||
{{- end }}
|
||||
{{- if $.Values.global.image.working_dir }}
|
||||
workingDir: {{ $.Values.global.image.working_dir }}
|
||||
{{- end }}
|
||||
|
||||
Reference in new issue
Block a user