-
Notifications
You must be signed in to change notification settings - Fork 216
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-7311] GitRepo fails with error "namespace not found" when using namespaceLabels: in existing namespaces #1994
Comments
It can be workaround using kustomize and takeownership. https://github.com/skanakal/fleet-experiments/blob/SURE-7311/SURE-7311/fleet.yaml |
@skanakal thanks for you help and explanation. |
Reproduced the issue using standalone Fleet
Interestingly, the frontend pod used in the example was still deployed:
Applied Gitrepo definition:
|
Maybe we're able to relax the |
We are using the label It's fixed by #2009. |
QA TemplateSolutionUse the TestingFollow the steps described in the issue, and verify you don't see any error Additional infoNeeds a new fleet RC |
This has not been backported to 0.9 yet. Reading the function again, the comment seems strange: So, this func is just used to return the namespace for the helm release secret? Should we convert the List into a Get? |
Clarification, Helm always adds a "name" label, when creating the release namespace ( |
QA reportSystem infoTested on fresh Rancher Performed similar test as in backported version here
Although not sure at the moment if this is related, looking at at the Apps repositories in local clusters an SSL error appears:
|
About point 2 previously mentioned, after performing the same upgrade test on GCP environment with Rancher So probably the error mentioned was a local problem on my cluster setup. Closing ticket as it seems working as expected. Edit: |
Is there an existing issue for this?
Current Behavior
Gitrepo fails with error "namespace not found" when the resources are created in an existing namespaces and in the fleet.yaml file there are some namespaceLabels set up.
Expected Behavior
fleet should apply the namespaceLabels on already existing namespaces.
Steps To Reproduce
Create namespace test03 in downstream cluster
Create a GitRepo using this branch:
https://github.com/mrolmedo/fleet-examples/blob/fleetv08nscreated/enlugardelamanchadecuyonombrenoquieroacoerdarme/fleet.yaml
The GitRepo fails to deploy with error:
Environment
Logs
Anything else?
SURE-7311
The text was updated successfully, but these errors were encountered: