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

Prevent flux install overriding a bootstrapped cluster #4341

Closed
stefanprodan opened this issue Oct 19, 2023 · 0 comments · Fixed by #4345
Closed

Prevent flux install overriding a bootstrapped cluster #4341

stefanprodan opened this issue Oct 19, 2023 · 0 comments · Fixed by #4345
Assignees
Labels
area/install Install and uninstall related issues and pull requests area/ux In pursuit of a delightful user experience

Comments

@stefanprodan
Copy link
Member

stefanprodan commented Oct 19, 2023

To prevent people from upgrading by mistake a cluster with flux install when the cluster has been bootstrapped, we can look for the kustomize.toolkit.fluxcd.io/name and kustomize.toolkit.fluxcd.io/namespace labels on the gitrepositories.source.toolkit.fluxcd.io CRD. If the CRD exists and has these labels, we should return an error like so:

This cluster has been bootstrapped with Flux <VERSION>! Please use 'flux bootstrap' to upgrade.

The Flux version should be extracted from the app.kubernetes.io/version label value.

@stefanprodan stefanprodan added area/install Install and uninstall related issues and pull requests area/ux In pursuit of a delightful user experience labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Install and uninstall related issues and pull requests area/ux In pursuit of a delightful user experience
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants