File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
pkg/bundler/deployer/helm/templates Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -20,25 +20,35 @@ if [[ "${1:-}" == "--no-wait" ]]; then
2020 WAIT_ARGS=" "
2121fi
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+
2328echo " Deploying Cloud Native Stack components..."
2429
2530# Install components in order
2631{{ range .Components -}}
2732{{ if .HasChart -}}
2833echo " 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 -}}
3040helm 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 -}}
3646helm 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 -}}
You can’t perform that action at this time.
0 commit comments