introduce dynamic probes for common-chart (#557)
* introduce dynamic probes for common-chart * whoops * deal with cases where no protocol is set for probes
This commit is contained in:
@@ -18,4 +18,4 @@ maintainers:
|
|||||||
name: common
|
name: common
|
||||||
sources:
|
sources:
|
||||||
type: library
|
type: library
|
||||||
version: 6.2.0
|
version: 6.3.0
|
||||||
|
|||||||
@@ -16,8 +16,18 @@ Probes selection logic.
|
|||||||
{{- $probe.spec | toYaml | nindent 2 }}
|
{{- $probe.spec | toYaml | nindent 2 }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- if and $primaryService $primaryPort -}}
|
{{- if and $primaryService $primaryPort -}}
|
||||||
{{- "tcpSocket:" | nindent 2 }}
|
{{- if $primaryPort.protocol -}}
|
||||||
{{- printf "port: %v" $primaryPort.port | nindent 4 }}
|
{{- if or ( eq $primaryPort.protocol "HTTP" ) ( eq $primaryPort.protocol "HTTPS" ) -}}
|
||||||
|
{{- "httpGet:" | nindent 2 }}
|
||||||
|
{{- printf "path: %v" $probe.path | nindent 4 }}
|
||||||
|
{{- printf "scheme: %v" $primaryPort.protocol | nindent 4 }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- "tcpSocket:" | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- else -}}
|
||||||
|
{{- "tcpSocket:" | nindent 2 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- printf "port: %v" $primaryPort.port | nindent 4 }}
|
||||||
{{- printf "initialDelaySeconds: %v" $probe.spec.initialDelaySeconds | nindent 2 }}
|
{{- printf "initialDelaySeconds: %v" $probe.spec.initialDelaySeconds | nindent 2 }}
|
||||||
{{- printf "failureThreshold: %v" $probe.spec.failureThreshold | nindent 2 }}
|
{{- printf "failureThreshold: %v" $probe.spec.failureThreshold | nindent 2 }}
|
||||||
{{- printf "timeoutSeconds: %v" $probe.spec.timeoutSeconds | nindent 2 }}
|
{{- printf "timeoutSeconds: %v" $probe.spec.timeoutSeconds | nindent 2 }}
|
||||||
|
|||||||
@@ -153,6 +153,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own livenessProbe
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# @default -- "/"
|
||||||
|
path: "/"
|
||||||
# -- The spec field contains the values for the default livenessProbe.
|
# -- The spec field contains the values for the default livenessProbe.
|
||||||
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
||||||
# @default -- See below
|
# @default -- See below
|
||||||
@@ -169,6 +172,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own readinessProbe
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# @default -- "/"
|
||||||
|
path: "/"
|
||||||
# -- The spec field contains the values for the default readinessProbe.
|
# -- The spec field contains the values for the default readinessProbe.
|
||||||
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
||||||
# @default -- See below
|
# @default -- See below
|
||||||
@@ -185,6 +191,9 @@ probes:
|
|||||||
enabled: true
|
enabled: true
|
||||||
# -- Set this to `true` if you wish to specify your own startupProbe
|
# -- Set this to `true` if you wish to specify your own startupProbe
|
||||||
custom: false
|
custom: false
|
||||||
|
# -- If a HTTP probe is used (default for HTTP/HTTPS services) this path is used
|
||||||
|
# @default -- "/"
|
||||||
|
path: "/"
|
||||||
# -- The spec field contains the values for the default startupProbe.
|
# -- The spec field contains the values for the default startupProbe.
|
||||||
# If you selected `custom: true`, this field holds the definition of the startupProbe.
|
# If you selected `custom: true`, this field holds the definition of the startupProbe.
|
||||||
# @default -- See below
|
# @default -- See below
|
||||||
|
|||||||
Reference in New Issue
Block a user