-
Notifications
You must be signed in to change notification settings - Fork 707
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
available package handling with flux in multi-tenant mode #5541
Comments
Ideally, yes, the plugin should be able to detect the settings from the flux installation. The same way ideally the carvel plugin should detect what the namespace is for global carvel repositories. Doing so though may require additional rbac privileges. But if you look at the values file, the namespace is provided as a plugin confifuration parameters. regarding UI vs. backend, because we expose an API, the backend should perform some validation instead of letting it to flux to fail. UI may also have its own checks to avoid going to the API when we know it would be an invalid configuration. |
What if instead of a introducing a new flag in flux plugin, I were to programmatically look at the deployment spec of flux helm-controller to see if |
I am going to add a flag to flux plugin for this. The solution I mentioned above is still better, but I need to figure out what to do when flux is installed in, say another namespace, so I'll just put it on the back-burner for now. BTW, I think that when the flag is set a flux repo can indeed be considered namespace-scoped. At the moment, |
…X, stays around in k8s flux HelmRelease CR #5577 (#5584) fixed an inconsistency between GetInstalledPackageSummaries() and GetInstalledPackageDetail() in one corner case. Main fix is dependent on flux fluxcd/helm-controller#554 There is only one small change to production code. The rest is test-related code. Also, + added a few integration tests. + bump flux version in tests + fix for available package handling with flux in multi-tenant mode #5541
re-opening to make a change I proposed earlier. @dlaloue-vmware confirmed in slack to me that |
never mind, above comment. @dlaloue-vmware changed all flux repos to return namespaceScoped: true always in #5664 (comment) |
low priority:
while going through flux multi-tenant use case (see attached notes), I discovered that there is a case where flux plugin
GetAvailablePackage...()
APIs may be improvedin short, the scenario is:
-no-cross-namespace-refs=true
Arguably, either our UX or flux plugin should have prevented this scenario. I had one idea I expressed in slack
"One way would be to somehow filter out available packages from namespaces other than current context by the plugin ONLY if the flag --no-cross-namespace-refs is set. It already filters out ones that user does not have access to, but it doesn't help in this case. The list of available packages for namespace "default" should have been empty, as there werent any repos registered in that namespace. Not sure if there is a way to cleanly find out whether the flag is set without breaking abstractions."
multi-tenant-setup.txt
The text was updated successfully, but these errors were encountered: