-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Kustomize is confusing Kind: Namespace with other Kind: Namespace's that belong to different API sets. #5072
Comments
Where is the problem you ask? The field specs it uses are defined in An empty group is seen as "core" (in this case, the core What now?It depends. This kind of logic (where an empty string is considered a "wildcard" to match any) is most likely used / expected across Kustomize and if not there is the chance that this is used by users who manually override the default specified in Thus changing the logic in @KnVerey, what do you think is the best course of action for this? I don't want to make a PR which implements a "solution" / "hack" which maintainers don't deem appropriate and then throw it away 😜 |
@Serializator Thank you for your detailed investigation and write-up. I don't think we want to change any logic in The best course of action IMO would be for the /triage accepted |
Test that reproduces the issue: 6fd2773 |
I created a PR for this #5133 |
What happened?
Using ASO V2 (Azure Operator for Kubernetes v2)
This looks like a bug with Kustomize, though causing issues with the ServiceBus Namespace CRD
Kustomize is confusing a ServiceBus namespace with a k8s namespace:
kustomize.yaml:
azure-servicebus.yaml:
running:
kubectl kustomize ./
produces this output:
Notice the name of the ServiceBus namespace is now podinfo when it was supposed to be core-sb-99
Also dicussed here: Azure/azure-service-operator#2732
What did you expect to happen?
The expectation would be that the output would be:
How can we reproduce it (as minimally and precisely as possible)?
Expected output
Actual output
Kustomize version
the one included in the latest kubectl
Operating system
None
The text was updated successfully, but these errors were encountered: