Skip to content

Using flux bootstrap, but preventing overwrite of an existing flux #4235

Discussion options

You must be logged in to vote

When running flux bootstrap or flux install we should detect if Flux is already installed on the cluster with Helm (what the Azure Flux addon does).

We can look for the app.kubernetes.io/managed-by: Helm label on the gitrepositories.source.toolkit.fluxcd.io CRD. If the CRD exists and has this label & value, we should prompt like so:

Flux <VERSION> has been installed on this cluster with Helm!
Are you sure you want to proceed with overriding the Helm installation? Y/N

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

Both flux bootstrap and flux install commands should have a --force flag, when set, this will bypass the above prompt.

xref: #4342


To prev…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by darrylweaver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants