-
Notifications
You must be signed in to change notification settings - Fork 23
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
It's much too easy to accidentally trigger flux install
#494
Comments
@luisr-escobar Thank you very much for the bug report! I was unsuccessful trying to reproduce the issue. I installed flux v0.41 from Homebrew and I used it to create a v1beta2 The extension does not use "Enable GitOps" option is shown when no flux controllers are found. Flux controllers are listed using Seeing the code I wonder if this problem is triggered when flux is installed in a non-default namespace? In that case we should have setting to override the namespace. |
I think we should rewrite our tutorials and remove "Enable GitOps" - or at least hide it behind some warnings. The On the other hand, simply having permission to run The detection could fail in any one of numerous cases, I'm not sure which one would have triggered. We've seen strange instances of Flux controllers for example when Azure AKS Flux is installed, though those particular issues have been addressed, Microsoft Azure does not have a monopoly on the Flux clones market and we may find other pathological behavior that could be prevented by adding one more step between "Enable GitOps" and the irreversible application of It is another issue that |
flux install
flux install
flux install
Thanks a lot @juozasg @kingdonb for looking into the issue. We have flux installed in the |
We are addressing this for the next release, and Flux upstream has merged a PR to address it as well:
In future releases of Flux, when you run And in the edge release of our extension as of yesterday, there is a prompt in the extension as well, since "Enable GitOps" isn't necessarily clear about what it's going to do, you'll see a prompt that makes it clear Keeping this issue open until that lands in a mainline release 🙇 🙏 |
Expected behaviour
After upgrading the flux cli with brew to v2.1.1 the gitops plugin stopped showing soruces/workloads with just an error showing "unable to load". After uninstalling and reinstalling the plugin, the prompt "enable gitops" appeared on the plugin UI screen. After clicking "enable gitops", it triggered the
flux install
command to run without any confirmation which caused CRD definitions to be irreversibly upgraded from v1beta2 to v1This might be related to issue 489
Actual behaviour
If a cli upgrade makes the gitops plugin incompatible with the flux CRD api versions it should not prompt a user to "enable gitops" on the k8s cluster, instead it should ideally show an incompatibility error.
Steps to reproduce
Versions
kubectl version: v1.27.2
Flux version: v2.1.1
Git version: 2.39.3
Extension version: v0.25.4
VSCode version: 1.83.0
Operating System (OS) and its version: MacOS Ventura 13.6 (arm64)
The text was updated successfully, but these errors were encountered: