-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SURE-5668] Fleet BundleDeployments does not reflect new labels from Bundles #1153
Comments
I don't understand the reproduction steps.
I think labels are only used in fleet.yaml as selectors. I'm under the impression that the propagation of labels from a gitrepo resource to a bundle was not actually implemented before 0.6.x-alpha. This feature only existed in the docs. See #1007 for the implementation. Edit: Actually the docs mention a labels field in the fleet.yaml, but I don't think it's part of the CRD?
|
This is the true fleet.yaml struct, which does support labels: https://github.com/rancher/fleet/blob/master/pkg/bundlereader/read.go#L129-L135 |
When I try to set an additional label for step 3, I get this error in the status of the gitrepo:
And the additional label shows up on the bundle. |
The issue is the label is not added to the |
I could reproduce this (https://github.com/manno/fleet-experiments/tree/gitrepo-labels). The labels do not show up on the bundledeployment. However the The labels are only copied over, from the bundle to the bundledeployment, the first time. Even if a later update changes the content and the labels, the labels won't update on the bundledeployment. |
@rancher/qa Additionnal QAProblemUpdating labels in a SolutionUpdate TestingEngineering Testingintegration tests added here Manual Testing
|
See also #1488 (which should be fixed by this) |
QA TEST PLAN Scenarios
|
Can we also add the following test scenarios after it's been deployed?
|
From above test cases,
@raulcabello can you please take a look at it? Thanks 😄 |
@sbulage good catch! When a label is removed is not reflected in the Please check labels for BundleDeployments too. I don't think this can be checked in the Rancher UI, so you need to use something like |
Sure, thanks for taking a look into it and I will file separate issue/bug.
Yes, I will confirm and update here. |
Verified first two test cases mentioned above QE Test Plan comment. TEST RESULT Scenarios
REPRO STEPS Scenario 1
Scenario 2
Scenario 3
Scenario 4
|
Re-open: Understanding the corner cases around this issue. |
Dicussed during weekly meeting and agreed to close it. |
Is there an existing issue for this?
Current Behavior
If we update an existing Fleet Bundle with additional labels then we can observe that BundleDeployments do not have the newly added labels unless we either:
This is problematic as we iterate on our Fleet deployments and leveraging the dependsOn feature. The dependent BundleDeployment will say this until we patch the BundleDeployment object with the new label.
Expected Behavior
We expect BundleDeployments to be a reflection of Bundle objects, including from labels and annotations updates.
Steps To Reproduce
GitRepo A
object with labelsa=b
insidefleet.yaml
.Bundle
andBundleDeployment
objects created with labelsa=b
GitRepo A
with a new labelx=y
by updatingfleet.yaml
GtiRepo B
object thatdependsOn
theGtiRepo A
with the labelx=y
inside offleet.yaml
.BundleDeployment
object fromGitRepo B
display this error:BundleDeployment
object fromGitRepo A
with labelx=y
(or deleteBundle
objecet fromGitRepo A
but this is not ideal as this will cause the application to be reinstalled).Environment
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: