Skip to content
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

[v0.5] Fix agent not starting in fleet-system namespace #1322

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

raulcabello
Copy link
Contributor

Check if the user wants to use fleet-system as the namespace to install the fleet-agent. We do that by checking if :

  • the NAMESPACE env var to check if the helm release is installed in the fleet-system namespace
  • the bootstrap AgentNamespace is set to fleet-system

In that case case don't set the CattleNamespaceMigrated flag to false as it causes and endless loop of killing and starting the agent.

I tested upgrade from rancher 2.5.15 to rancher 2.6.9 with this fix

backport to v0.5.0 from #1269

Check if the user wants to use fleet-system as the namespace to install the fleet-agent. If that is the case don't set the CattleNamespaceMigrated flag to false as it causes and endless loop of killing and starting the agent.

Signed-off-by: raul <raul.cabello@suse.com>
@raulcabello raulcabello requested a review from a team as a code owner February 15, 2023 13:09
@thardeck thardeck merged commit e3abab9 into rancher:release/v0.5 Feb 15, 2023
@manno manno changed the title fix agent not starting in fleet-system namespace [v0.5] fix agent not starting in fleet-system namespace Mar 21, 2023
@manno manno changed the title [v0.5] fix agent not starting in fleet-system namespace [v0.5] Fix agent not starting in fleet-system namespace Mar 21, 2023
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.

None yet

2 participants