-
Notifications
You must be signed in to change notification settings - Fork 2
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
feature request: Patch "all containers" or regex #3
Comments
Hi @flbla
I will have a shot at it too. I'll come back to you later! |
Hi @bohlenc time="2021-03-05T13:17:55Z" level=error msg="could not create json patch: could not apply strategic merge patch: map: map[volumeMounts:[map[mountPath:/etc/ssl name:cacerts]]] does not contain declared merge key: name"
thanks! :) |
Yeah, forgot that "name" is the merge key for containers. I think about adding something alone these lines: if a field that is declared as "merge key" is specified as "*" in a patch -> patch all available elements. That would cover your specific use-case but would also be broadly applicable to many other scenarios, e.g. adding to volumes etc. |
I just merged code (see #4) to support this use-case. Let me know if that works for you. |
it works perfectly :) |
I would like to be able to patch all containers without knowing there name (or with a regex)
my use case is to be able to copy data from a init container to all containers in pod without knowing name of containers:
I tried with a "*" it doesn't work
The text was updated successfully, but these errors were encountered: