aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/so/components/soHelpers/templates/_startupProbe.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/so/components/soHelpers/templates/_startupProbe.tpl')
-rw-r--r--kubernetes/so/components/soHelpers/templates/_startupProbe.tpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/kubernetes/so/components/soHelpers/templates/_startupProbe.tpl b/kubernetes/so/components/soHelpers/templates/_startupProbe.tpl
new file mode 100644
index 0000000000..3ea89160b7
--- /dev/null
+++ b/kubernetes/so/components/soHelpers/templates/_startupProbe.tpl
@@ -0,0 +1,14 @@
+{{- define "so.helpers.startupProbe" -}}
+{{- $dot := default . .dot -}}
+{{- $initRoot := default $dot.Values.soHelpers .initRoot -}}
+{{- $subchartDot := fromJson (include "common.subChartDot" (dict "dot" $dot "initRoot" $initRoot)) }}
+startupProbe:
+ httpGet:
+ path: {{ $subchartDot.Values.startupProbe.path }}
+ port: {{ $subchartDot.Values.containerPort }}
+ scheme: {{ $subchartDot.Values.startupProbe.scheme }}
+ periodSeconds: {{ $subchartDot.Values.startupProbe.periodSeconds }}
+ timeoutSeconds: {{ $subchartDot.Values.startupProbe.timeoutSeconds }}
+ successThreshold: {{ $subchartDot.Values.startupProbe.successThreshold }}
+ failureThreshold: {{ $subchartDot.Values.startupProbe.failureThreshold }}
+{{- end -}}