-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Add the ability to edit fields within a config map. #38445
Conversation
@brendandburns does |
@fabianofranz it won't break it, but it will make this particular command not work... Subcommand seemed cleaner than a type-specific hack in |
@brendandburns would
This might make this file a bit easier to read |
2e43614
to
7ce1cae
Compare
@juanvallejo done. @fabianofranz any chance for another look at this? Thanks! |
Jenkins Kubemark GCE e2e failed for commit 7ce1cae17f80e55ca6322e4722234eadd4f45641. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE e2e failed for commit 7ce1cae17f80e55ca6322e4722234eadd4f45641. Full PR test history. The magic incantation to run this job again is |
Jenkins GCI GCE e2e failed for commit 7ce1cae17f80e55ca6322e4722234eadd4f45641. Full PR test history. The magic incantation to run this job again is |
Jenkins GCE etcd3 e2e failed for commit 7ce1cae17f80e55ca6322e4722234eadd4f45641. Full PR test history. The magic incantation to run this job again is |
Jenkins verification failed for commit 7ce1cae17f80e55ca6322e4722234eadd4f45641. Full PR test history. The magic incantation to run this job again is |
7ce1cae
to
37c0937
Compare
Jenkins GKE smoke e2e failed for commit 37c09377a0daa47774a1cf2589d6369f1c0cdf3b. Full PR test history. The magic incantation to run this job again is |
@k8s-bot gci gke e2e test this. |
@k8s-bot cvm gke e2e test this |
@k8s-bot unit test this |
1 similar comment
@k8s-bot unit test this |
37c0937
to
b54f1b6
Compare
Jenkins Bazel Build failed for commit b54f1b6c5a185b8a672071264b4bf7bddd650911. Full PR test history. The magic incantation to run this job again is |
@k8s-bot unit test this |
b54f1b6
to
bd2dd8a
Compare
Jenkins unit/integration failed for commit bd2dd8ae75319aecd812948ea4b8a9dd7424c099. Full PR test history. The magic incantation to run this job again is 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 understand the commands that are listed here. |
@k8s-bot gci gke e2e test this |
1 similar comment
@k8s-bot gci gke e2e test this |
Jenkins GCI GKE smoke e2e failed for commit 0d264659230deb989235384fea1add884f9dd177. Full PR test history. cc @brendandburns The magic incantation to run this job again is 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 understand the commands that are listed here. |
0d26465
to
31eca37
Compare
@fabianofranz I think this is ready to go... Thanks! |
@brendandburns Mind adding a release note? I think this is worth one, tks! |
@fabianofranz release note added. Thanks |
Tks! |
/lgtm |
Automatic merge from submit-queue (batch tested with PRs 38445, 40292) |
@@ -100,12 +100,20 @@ func NewCmdEdit(f cmdutil.Factory, out, errOut io.Writer) *cobra.Command { | |||
Long: editLong, | |||
Example: fmt.Sprintf(editExample), | |||
Run: func(cmd *cobra.Command, args []string) { | |||
args = append([]string{"configmap"}, args...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this breaks edit for all other resources
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$ kubectl edit serviceaccount default
Error from server (NotFound): configmaps "serviceaccount" not found
this broke edit for all resources other than configmaps, @fabianofranz can you investigate how this passed kubectl tests? also, reverting in #40421 |
Automatic merge from submit-queue (batch tested with PRs 38905, 40421) Revert "Add the ability to edit fields within a config map." Fixes #40396 This reverts commit 31eca37. #38445 broke edit for all resources other than configmaps: ``` $ kubectl edit serviceaccount default Error from server (NotFound): configmaps "serviceaccount" not found ``` also, `edit` is a generic command, we can't add subcommands that claim the `configmap` space and mess with the things resourcebuilder accepts
Since this PR has been reverted in #40421. |
@ymqytw: you can only set release notes if you are the author or an assignee. In response to this comment:
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 understand the commands that are listed here. |
/assign @ymqytw |
/release-note-none |
@brendandburns , any chance to get this feature back? It would be very useful. |
@KIVagant there is currently a proposal (needs a KEP opened) that discusses a few approaches for adding this feature back |
Any chance we can revisit this feature? It would be quite useful to have... |
Addresses part of #36222
Example command:
$ kubectl edit configmap foo --config-map-data=bar
Will open the data element named
bar
in theConfigMap
namedfoo
in$EDITOR
, the edited contents are then updated back to the config map.@kubernetes/sig-cli