-
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
[Question] How to create a setter for an item in array? #3429
Comments
@flickerfly Thanks for the question. Firstly, are you using setters with kustomize or kpt? If kustomize what is the actual command you used to create the setter for entire array ? |
I'm trying to see if I can stick with Kustomize for this (know it is Alpha). If my bash history is correct, this is the command I issued.
|
@flickerfly Cool. Setters are not fully supported in kustomize yet but great to see you use it. You can do the same to target a particular value.
|
@flickerfly Did that answer your question? |
I don’t see it actually working.
|
@flickerfly Ahh I see... I wouldn't recommend you to use setters with kustomize. They are not fully supported/documented and will be deprecated soon. Have you tried using kpt instead ? Please try using kpt Here are the steps to perform task above
Let me know if this helps solve your issue. cc @mikebz @monopole Advocating users to use setters in kpt instead of kustomize as they are not fully supported. |
I have not been able to find any documentation on the proposed replacement for setters. I've seen mention of "search and replace," which is evocative as a name, but does not constitute a design document. Is there anything we can read today about where the parametric facilities are going? Also, kpt has been afflicted by its own defects that made kustomize a more attractive choice—mostly for its narrower ambition and its comparative stability. Do you consider that situation to have changed? |
@phanimarupaka I suppose that's my answer. Like @seh mentioned, I'm also curious to see where this will end up within kustomize. I'm more interested in what the future of kustomize/kpt management for some sort of search and replace will look which is why I was messing with it on this toy project. I support some thought towards how to integrate as the current smashing of the two together in alpha is a bit awkward. |
@phanimarupaka can you clarify deprecation statement? Is the whole Krmfile going to get deprecated or just some aspects of it? |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: 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/test-infra repository. |
Sad to see that this issue, like so many others, are automatically closed without any kind of answer or resolution. |
@flickerfly: 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. |
@natasha41575 Can you please respond to this issue as you have worked on deprecating few commands in kustomize lately. cc @mikebz |
As discussed in #3953 we will be deprecating all setter-related functionality in Kustomize. /close |
@KnVerey: 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/test-infra repository. |
I have the following kustomization.yaml and Krmfile. It includes an array of ENV values that I'd like to turn into setters. So far the best I can figure out is a single setter for the entire array. Can I set list items in the array individually?
kustomization.yaml
Krmfile
The text was updated successfully, but these errors were encountered: