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 add an env to all containers in Deployment? #4391
Comments
I believe your use case will be supported by
Would this resolve your issue? /kind support/ |
@natasha41575: The label(s) 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. |
/kind support |
/close Please reopen if #4053 will not solve the issue for you. Otherwise please see that issue for updates. |
@natasha41575: 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. |
Wouldn't the proposed solution replace all env vars in all containers? Is there a way to append to the env list (or better yet to apply a patch to every item of a list)? |
origin resource
As the origin resource above, I have 2 container in 1 pod, and each has its own env.
Now I want to insert an env drink=coffee into the 2 container.
I can do this by json patch:
But if I don't want to do this with every index of containers or I just don't know how many the containers are. Can I have a batch method, to add env for all containers by one step?
The text was updated successfully, but these errors were encountered: