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 from overriding bootrapped cluster #4345

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

somtochiama
Copy link
Member

@somtochiama somtochiama commented Oct 19, 2023

This pull request adds a function to get information about the flux installation on a cluster and uses it to check if the cluster has already been bootstrapped to prevent an override when using flux install.

Closes: #4341

cmd/flux/install.go Outdated Show resolved Hide resolved
cmd/flux/cluster_info.go Outdated Show resolved Hide resolved
cmd/flux/cluster_info.go Outdated Show resolved Hide resolved
cmd/flux/cluster_info.go Outdated Show resolved Hide resolved
cmd/flux/cluster_info_test.go Outdated Show resolved Hide resolved
Copy link
Member

@makkes makkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! We should incorporate the output of the getFluxClusterInfo into the flux version command, too.

cmd/flux/cluster_info.go Outdated Show resolved Hide resolved
cmd/flux/cluster_info.go Outdated Show resolved Hide resolved
cmd/flux/install.go Show resolved Hide resolved
cmd/flux/install.go Outdated Show resolved Hide resolved
@somtochiama somtochiama marked this pull request as ready for review October 23, 2023 13:35
@stefanprodan stefanprodan added area/install Install and uninstall related issues and pull requests area/ux In pursuit of a delightful user experience labels Oct 23, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @somtochiama 🥇

@stefanprodan stefanprodan merged commit adc0465 into fluxcd:main Oct 23, 2023
9 checks passed
@stefanprodan stefanprodan mentioned this pull request Nov 16, 2023
14 tasks
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 this pull request may close these issues.

Prevent flux install overriding a bootstrapped cluster
3 participants