Skip to content

Commit 63b88ea

Browse files
committed
fix: skip --wait for KAI scheduler in deploy script
KAI scheduler uses an operator pattern where the SchedulingShard CR is reconciled asynchronously by the kai-operator. Helm --wait may time out waiting for CR readiness even though all pods start successfully within seconds. This causes the deploy script to exit with "resource not ready, kind: SchedulingShard, status: InProgress" on fresh cluster installs. Skip --wait for async operator components (kai-scheduler) that reconcile CRs independently. The component is still installed and becomes ready shortly after, without blocking the rest of the deployment. Fixes: #165 Signed-off-by: Yuan Chen <yuanchen97@gmail.com>
1 parent f9f1ec0 commit 63b88ea

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

pkg/bundler/deployer/helm/templates/deploy.sh.tmpl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,35 @@ if [[ "${1:-}" == "--no-wait" ]]; then
2020
WAIT_ARGS=""
2121
fi
2222

23+
# Components that use operator patterns with custom resources that reconcile
24+
# asynchronously. Helm --wait may time out waiting for CR readiness even though
25+
# all pods start successfully. These components are installed without --wait.
26+
ASYNC_COMPONENTS="kai-scheduler"
27+
2328
echo "Deploying Cloud Native Stack components..."
2429

2530
# Install components in order
2631
{{ range .Components -}}
2732
{{ if .HasChart -}}
2833
echo "Installing {{ .Name }} ({{ .Namespace }})..."
34+
COMPONENT_WAIT_ARGS="${WAIT_ARGS}"
35+
if echo "${ASYNC_COMPONENTS}" | grep -qw "{{ .Name }}"; then
36+
COMPONENT_WAIT_ARGS=""
37+
echo " (async component — skipping --wait)"
38+
fi
2939
{{ if .IsOCI -}}
3040
helm upgrade --install {{ .Name }} {{ .Repository }}/{{ .ChartName }} \
3141
--version {{ .Version }} \
3242
-n {{ .Namespace }} --create-namespace \
3343
-f "${SCRIPT_DIR}/{{ .Name }}/values.yaml" \
34-
${WAIT_ARGS}
44+
${COMPONENT_WAIT_ARGS}
3545
{{ else -}}
3646
helm upgrade --install {{ .Name }} {{ .ChartName }} \
3747
--repo {{ .Repository }} \
3848
--version {{ .Version }} \
3949
-n {{ .Namespace }} --create-namespace \
4050
-f "${SCRIPT_DIR}/{{ .Name }}/values.yaml" \
41-
${WAIT_ARGS}
51+
${COMPONENT_WAIT_ARGS}
4252
{{ end -}}
4353
{{ end -}}
4454
{{ if .HasManifests -}}

0 commit comments

Comments
 (0)