-
Notifications
You must be signed in to change notification settings - Fork 166
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
HelmChart sourceRef lacks namespace #1149
Comments
Think about it: If the actual Conclusion: The field you use in Furthermore, object references between namespaced objects in Kubernetes are usually local, because the namespace is the security boundary. The fact that we have some cross-namespace references is something we regret and are trying to move away from. Also, OCI artifacts are the future of packaged configuration, please take a look at using |
It is obvious, it selects a namespace for helm chart object. That is a behavior I expected and the one I got.
I already use it everywhere it is possible, but unfortunately, many helm repo's have not migrated to OCI.
I disagree. Let' me show you:
The question I have asked myself is "Why they have missed namespace field in HelmChart CRD?" Suggestion: Add namespace field to HelmChart CRD in order to make it able to use HelmRepository from different namespace. By default, if not set, it will use current namespace, which is a default behavior, so no issues here. Another option is to add Cluster* (ClusterHelmRepository, ClusterGitRepository, etc.). In this case, removing namespace field from CRDs is acceptable. |
Then what you're looking for is |
And I would go that way with pleasure, but I have namespace set in kustomization.yaml and it overrides the namespace I can hardcode in HelmChart resource. That is why extra namespace field is required. And I do not want to create HelmChart and HelmRelease separately. |
If I specify chart via HelmRelease's
.spec.chart.spec.sourceRef
it has a namespace field, but If I want to create a HelmChart object myself, it does not have such field in the schema. Can it be added? If yes, I will try to do it and prepare a PR.The text was updated successfully, but these errors were encountered: