-
Notifications
You must be signed in to change notification settings - Fork 3.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
patch_namespaced_config_map with dict can't get desire result #2305
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
Incidently, I read this solution config_map.yml and get inspiration.
and the result like this:
NOTE that, such approch doesn't the expectation which is update cm by multi-level dict, I just find another way to solve my tsak. |
and, this tripe -
result are as follows:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What happened (please include outputs or screenshots):
I want to update cm with this dict
now, I just want to edit cm by dict:
and the code is:
error code like that:
and I tried to patch with
successful patched,but the result is confused, which with single-quote or double quote:
anyway, I can't get my expectation
What you expected to happen:
and the dersire result list under.
How to reproduce it (as minimally and precisely as possible):
copy the code, and run it in a k8s environment.
Anything else we need to know?:
Environment:
kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.9", GitCommit:"c1de2d70269039fe55efb98e737d9a29f9155246", GitTreeState:"clean", BuildDate:"2022-07-13T14:26:51Z", GoVersion:"go1.17.11", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.9", GitCommit:"c1de2d70269039fe55efb98e737d9a29f9155246", GitTreeState:"clean", BuildDate:"2022-07-13T14:19:57Z", GoVersion:"go1.17.11", Compiler:"gc", Platform:"linux/amd64"}
kubectl version
):python --version
) python3.7.9pip list | grep kubernetes
) 24.2.0The text was updated successfully, but these errors were encountered: