-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[SURE-9137] ClusterValues dont apply changes if one of the clusters is missing the templateValues #2943
Comments
We should not fail all bundle deployments when one cluster is missing a label. |
Clarification: We have decided not to ignore template errors when they occur, but to make them visible in Bundle and GitRepo statuses. Corresponding PR is #3114 |
/backport v2.10.2 |
/backport v2.9.6 |
…#3114) * Import v1alpha1 package as fleet * Show bundle errors in Bundle and GitRepo Refers to rancher#2943 * Add E2E tests Refers to rancher#2943 (cherry picked from commit 235e8ef)
…#3114) * Import v1alpha1 package as fleet * Show bundle errors in Bundle and GitRepo Refers to rancher#2943 * Add E2E tests Refers to rancher#2943 (cherry picked from commit 235e8ef) (cherry picked from commit 3417071)
Additional QAProblemWhen a workload targets multiple clusters, and one of those clusters is missing a template value, the following happens:
SolutionFleet now reflects targeting errors, such as those caused by missing template values on clusters, in the bundle and GitRepo statuses. TestingEngineering TestingManual TestingN/A Automated TestingEnd-to-end tests have been added to check for the presence of targeting errors in bundle and GitRepo statuses. QA Testing ConsiderationsSuggestion: follow the reproduction steps above, and check that:
Regressions ConsiderationsN/A |
System informationBefore Upgrade
Steps used to perform
Note: Steps mentioned in the descriptions were performed pre and post upgrade.After Upgrade
Steps used to perform
Below Video shows the Upgrade from Prime v2.10.1 to v2.11-f0b88cfe74d14b4431d11cda695abd69cc1b951d-head version.cluster_gitrepo_message.mp4 |
@sbulage From the screenshot, it is hard to tell whether the cluster with missing values will be visible. Does the Fleet UI show the display name of the cluster which is missing the values? |
Hello @mahauke, May be on your specific query @p-se or @manno can shed some light. |
If a value is missing or not can only be determined by a GitRepo that points to a repository that uses those cluster values. In fact, the error first appears when the BundleDeployments for the targets are created. Therefore the error is appended to the status of the Bundle. But because we treat the Bundle as a Fleet internal resource, which is not prominently visible in the Rancher UI, the error is propagated to the GitRepo, where you can find it in the UI. It appears the name of the cluster that is expected to have a value isn't shown. I will revisit the code and check if we can improve on that matter. |
@p-se Thank you for the explanations. It would be great if that could be improved! |
Is there an existing issue for this?
Current Behavior
If a GitRepo is configured to target two or more clusters and the
fleet.yaml
file includes${ .ClusterValues}
, any missing templateValues in one of the cluster's spec will prevent updates or changes from being deployed to the clusters wheretemplateValues
are properly configured.Expected Behavior
Steps To Reproduce
templateValues
.templateValues
Environment
Logs
Anything else?
current behavior:
The text was updated successfully, but these errors were encountered: