Skip to content

(bug) WithValidateHealths and WithPreDeployChecks in prepareSetters.#1817

Merged
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:gate-health-checks
May 30, 2026
Merged

(bug) WithValidateHealths and WithPreDeployChecks in prepareSetters.#1817
gianlucam76 merged 1 commit into
projectsveltos:mainfrom
gianlucam76:gate-health-checks

Conversation

@gianlucam76
Copy link
Copy Markdown
Member

Problem: Both options were conditioned on clusterSummary being deleted, which is the wrong signal. A ClusterSummary can have a zero deletion timestamp while still removing a specific helm chart (e.g. chart removed from a ClusterProfile that still manages other charts). In that scenario, WithValidateHealths would be included during a pure undeploy, and WithPreDeployChecks was unconditionally included regardless of whether anything was being deployed.

Problem: Both options were conditioned on clusterSummary being deleted,
which is the wrong signal. A ClusterSummary can have a zero deletion
timestamp while still removing a specific helm chart (e.g. chart removed
from a ClusterProfile that still manages other charts). In that scenario,
WithValidateHealths would be included during a pure undeploy, and
WithPreDeployChecks was unconditionally included regardless of whether
anything was being deployed.
@gianlucam76 gianlucam76 force-pushed the gate-health-checks branch from 38539d5 to c730fbc Compare May 30, 2026 06:29
@gianlucam76 gianlucam76 merged commit 9011f39 into projectsveltos:main May 30, 2026
9 checks passed
@gianlucam76 gianlucam76 deleted the gate-health-checks branch May 30, 2026 10:20
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.

1 participant