-
Notifications
You must be signed in to change notification settings - Fork 405
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
Why set namespace with kustomize for cluster-scoped Mutating|ValidatingWebhookConfiguration? #999
Comments
issue copied from original kubernetes-sigs/kustomize#5484 |
Isn't this a question for the kubebuilder project/repo? |
I was following the instructions in https://github.com/kubernetes-sigs/kubebuilder/issues/new?assignees=&labels=kind%2Fbug&projects=&template=bug_report.yaml |
I can't speak for the kubebuilder project. But I think it doesn't make sense to discuss code from the kubebuilder repo/project in the controller-tools repo/project. I think they meant if it's related to controller-gen (aka code from controller-tools) |
The best answer I have is, I don't know why kubebuilder is doing this :) |
I duplicated the issue here kubernetes-sigs/kubebuilder#3999 |
Can you close this one? |
Sure /close |
@sbueringer: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
Why does kubebuilder use a namespace kustomization transformer to set a namespace for Mutating|ValidatingWebhookConfiguration if these are cluster-scoped resources? Code here
Isn't this unnecessary?
What did you expect to happen?
IIUC, lines of code above shouldn't exist as they don't do anything?
How can we reproduce it (as minimally and precisely as possible)?
Run
kubebuilder create webhook --group batch --version v1 --kind CronJob --defaulting --programmatic-validation
as described in Implementing defaulting/validating webhooks.Expected output
Actual output
Kustomize version
5.1.0
Operating system
Linux
The text was updated successfully, but these errors were encountered: