You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 18bf002
Browse filesBrowse the repository at this point in the historyBrowse files
echo"SANDBOX_RUNNER_CLOCK_SKEW_LIVENESS_LIMIT_SECONDS plus SANDBOX_RUNNER_HEALTHCHECK_TIMEOUT_SECONDS must be less than the ${manifest_clock_tolerance_seconds}-second execution-manifest tolerance">&2
echo"SANDBOX_RUNNER_CLOCK_SKEW_LIVENESS_LIMIT_SECONDS plus SANDBOX_RUNNER_HEALTHCHECK_TIMEOUT_SECONDS must be less than the ${manifest_clock_tolerance_seconds}-second execution-manifest tolerance">&2
52
+
exit 2
53
+
fi
54
+
fi
55
+
56
+
if [ "$clock_skew_limit_seconds"-gt 0 ] &&!command -v date >/dev/null 2>&1;then
if [ "$absolute_skew_seconds"-ge"$effective_clock_skew_limit_seconds" ];then
143
+
echo"sandbox-runner unhealthy: guest clock skew is ${skew_seconds}s, pod limit is ${effective_clock_skew_limit_seconds}s (configured maximum ${clock_skew_limit_seconds}s)">&2
Copy file name to clipboardExpand all lines: helm/codeapi/templates/worker-sandbox-deployment.yaml
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,22 @@ Split runtime deployments:
27
27
{{- if and (not $packagesFromPvc) (not .Values.workerSandbox.kvmEnabled) }}
28
28
{{- fail "workerSandbox.packages.source=image requires workerSandbox.kvmEnabled=true because the baked runner boots from a libkrun block root image" }}
{{- if not (regexMatch "^(0|[1-9][0-9]*)$" $clockSkewLimitValue) }}
33
+
{{- fail "workerSandbox.sandboxRunner.clockSkewLivenessLimitSeconds must be a non-negative integer" }}
34
+
{{- end }}
35
+
{{- if not (regexMatch "^(0|[1-9][0-9]*)$" $clockSkewJitterValue) }}
36
+
{{- fail "workerSandbox.sandboxRunner.clockSkewLivenessJitterSeconds must be a non-negative integer" }}
37
+
{{- end }}
38
+
{{- $clockSkewLimit := int $clockSkewLimitValue }}
39
+
{{- $clockSkewJitter := int $clockSkewJitterValue }}
40
+
{{- if or (lt $clockSkewLimit 0) (ge $clockSkewLimit 25) }}
41
+
{{- fail "workerSandbox.sandboxRunner.clockSkewLivenessLimitSeconds must be between 0 and 24 so the 5-second healthcheck timeout stays below the 30-second execution-manifest tolerance" }}
42
+
{{- end }}
43
+
{{- if or (lt $clockSkewJitter 0) (and (gt $clockSkewLimit 0) (ge $clockSkewJitter $clockSkewLimit)) }}
44
+
{{- fail "workerSandbox.sandboxRunner.clockSkewLivenessJitterSeconds must be non-negative and less than clockSkewLivenessLimitSeconds when the clock-skew guard is enabled" }}
45
+
{{- end }}
30
46
{{- range .Values.workerSandbox.sandboxExtraEnv }}
0 commit comments