Repository navigation
feat: Report what is pending for a ClusterSummary of a paused cluster - #2143
Merged
gianlucam76 merged 1 commit intoDec 3, 2026
Merged
Conversation
While a cluster is paused its ClusterSummary is not deployed, so nothing recorded that a change was waiting. In the paused branch the ClusterSummary reconciler now compares, for each feature, the hash of the desired configuration with the hash stored at the last deployment and writes Status.PendingFeatures. Nothing is deployed and nothing is written to the managed cluster. Each PendingFeature carries a reason (ConfigurationChanged, NotDeployed, PendingRemoval, EvaluationFailed) and, when it can be established, the items that changed: - Helm: chart added, removed, or changed (version, values, patches), derived from Status.HelmReleaseSummaries. - Resources and Kustomize: referenced ConfigMaps, Secrets, sources and templateResourceRefs added, removed or changed. The feature configuration hash is now computed in one pass together with a short hash of each referenced resource, stored in FeatureSummary.ReferenceHashes at the same moment as the hash. The aggregate hash is unchanged: pinned by tests whose expected values were produced by the previous code. - When the change is not in a referenced resource (profile settings, remote URL content) Message says so. A feature deployed before this change reports that what changed is not known until it is deployed again. Items are capped (MaxPendingItems) and flagged as truncated. When Profile/ClusterProfile has maxUpdate set, the ClusterSummaries of paused clusters are now patched last, once the ClusterSummaries of the clusters not paused are Provisioned, without using an update slot. Tests: Ginkgo specs for pending detection and items, hash pinning, reference hashes, scope staging and the maxUpdate ordering; functional tests for the Resources, Helm and Kustomize items on a paused cluster.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While a cluster is paused its ClusterSummary is not deployed, so nothing recorded that a change was waiting. In the paused branch the ClusterSummary reconciler now compares, for each feature, the hash of the desired configuration with the hash stored at the last deployment and writes Status.PendingFeatures. Nothing is deployed and nothing is written to the managed cluster.
Each PendingFeature carries a reason (ConfigurationChanged, NotDeployed, PendingRemoval, EvaluationFailed) and, when it can be established, the items that changed:
When Profile/ClusterProfile has maxUpdate set, the ClusterSummaries of paused clusters are now patched last, once the ClusterSummaries of the clusters not paused are Provisioned, without using an update slot.
Tests: Ginkgo specs for pending detection and items, hash pinning, reference hashes, scope staging and the maxUpdate ordering; functional tests for the Resources, Helm and Kustomize items on a paused cluster.