Skip to content

fix: surface every updateChartMap error in ClusterSummary status - #1968

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-bug-1960
Sep 14, 2026
Merged

gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:fix-bug-1960

Conversation

@gianlucam76

Copy link
Copy Markdown
Member

prepareForDeployment only surfaced a failure to ClusterSummary.Status when updateChartMap returned apierrors.IsNotFound (a missing non-optional templateResourceRef). Every other error like an Helm chart field that fails Sveltos template instantiation only caused the ClusterSummary to be requeued for reconciliation again. The real error only ever showed up in the controller's own logs.

This PR fixes that by surfacing any updateChartMap error the same way the IsNotFound case already did, dropping the type check so nothing falls through silently.

Fixes #1960

prepareForDeployment only surfaced a failure to ClusterSummary.Status
when updateChartMap returned apierrors.IsNotFound (a missing
non-optional templateResourceRef). Every other error like an Helm
chart field that fails Sveltos template instantiation only caused
the ClusterSummary to be requeued for reconciliation again.
The real error only ever showed up in the controller's own logs.

This PR fixes that by surfacing any updateChartMap error the same
way the IsNotFound case already did, dropping the type check so nothing
falls through silently.

Fixes projectsveltos#1960
@gianlucam76
gianlucam76 merged commit 4f4e4d3 into projectsveltos:main Sep 14, 2026
23 checks passed
@gianlucam76
gianlucam76 deleted the fix-bug-1960 branch September 14, 2026 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ClusterSummary status doesn't surface Helm chart registration failures

1 participant