Instead of edit, you can run a get -o yaml, edit and apply -f <file>, for example.
Sorry if it is not clear in the doc now. Can you please point where you would like to find it? Open an issue, or even better, submit a PR? :-)
hello. we are automating bootstrapping of k8's on on-prem setup. One of the step includes editing of kube-proxy configmap. we are using command "kubectl edit -n kube-system configmap/kube-proxy". to edit kube-proxy. When I run this command, it opens up the editor. I can modify it and save it. This looks good if I edit it manually. In our scenario - we are trying to automate this so that i code it in ansible playbook. I wanted to know - is there a way to edit kube-proxy programmatically so that we can automate it. Basically - we want to update "ip" and "port" in the kube-proxy. any pointers/solutions?