-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Custom Resources with a Kind Ending in "List" are Silently Ignored #5042
Comments
I can reproduce this issue and can also confirm that just changing "MyResourceList" to something that doesn't end in "List" results in the resource being correctly rendered in the output. I find this very odd because AFAIK, we don't do any explicit filtering by resource kind 🤔 /triage accepted |
@natasha41575: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed 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/test-infra repository. |
/assign |
Hello @GuyPaddock! After looking into this issue we have discovered that this is a result of the api-conventions, specifically they state:
So when If this does not satisfy your use case could you please provide more context about why you would like to have an object with name We will add a warning when the list is empty to make this more obvious. |
@cailynse we running provider-kafka from crossplane eco-system and we have a resource called "AccessControlList" which is silently Ignored |
@cailynse I believe that there is some confusion in the way that the API conventions are being interpreted. Saying that all lists must have names ending in "List" is not the same thing as saying that all things who have names ending in "List" are lists. Similar to @cailynse, we had defined a new config entity that had a name ending in As a workaround I had to change the name to |
Hey @cailynse are you currently working on this issue ? |
@chetak123 - I am not at the moment, there was some discussion around what the correct solution would be and then I was pulled away. Feel free to jump on it if you are interested! |
/unassign |
I would like to work on this. |
Any updates? |
What happened?
If you include a custom resource in an overlay, and the
Kind
of the custom resource ends with the wordList
, it will be ignored from the output when runningkustomize build
. This behavior is undocumented and unexpected.What did you expect to happen?
Custom resources should not be ignored based on the suffix of their
Kind
.How can we reproduce it (as minimally and precisely as possible)?
Expected output
Actual output
Kustomize version
5.0.0
Operating system
Linux
The text was updated successfully, but these errors were encountered: