-
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
Exec KRM function in 'generators:' don't get passed items from 'resources:' via ResourceList['items'] #5502
Comments
This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The 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. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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. |
Eschewed features
What would you like to have added?
Greetings everyone!
At the moment of writing I am on Kustomize version 5.3.0
I was looking at Exec KRM function example provided here.
I've made a few observations and I was wondering if someone could please clarify if following is expected/by design:
Why is this needed?
It will be nice to have above clarified because as far as I can see it - this is different from Kustomize behavior I am observing when my plugin configuration goes as one of the items under 'transformers:' list (once again as oppose to 'generators:').
When I use 'transformers:' I will end up with all of my items (no matter declared under 'resources:' and 'generators:' and 'transformers:') passed to my KRM function under ResourceList['items']. And as far as I can see it - inside ResourceList['items'] they will be indexed in the same order.
Also please keep in mind that plugin configuration declared under 'transformers:' does NOT get passed to ResourceList['items'] - once again this is different from behavior observed for plugin configuration declared under 'generators:'
Mind you though I haven't tried any of these with 'components:' and/or 'validators:' yet.
Can you accomplish the motivating task without this feature, and if so, how?
Well yes I think I can - as long as we understand the difference (I am guessing by design) in Kustomize behavior when using KRM functions under 'generators:' as opposed to plugin configurations placed under 'transformers:'
What other solutions have you considered?
I wonder if it will be better to allow for the end user to have a final word (say via annotations or some other manner) over what Kustomize should exclude/include, if we would like to include/exclude all or some of the items (no matter from 'resources:' and/or 'generators:' and/or 'transformers:') and pass it further via ResourceList['items']
Anything else we should know?
No response
Feature ownership
The text was updated successfully, but these errors were encountered: