{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/37965","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/37965/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/37965/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/37965/events","html_url":"https://github.com/kubernetes/kubernetes/issues/37965","id":193182861,"number":37965,"title":"PROPOSAL: Subcommand for easier editing of configmap keys","user":{"login":"juanvallejo","id":3902875,"avatar_url":"https://avatars.githubusercontent.com/u/3902875?v=3","gravatar_id":"","url":"https://api.github.com/users/juanvallejo","html_url":"https://github.com/juanvallejo","followers_url":"https://api.github.com/users/juanvallejo/followers","following_url":"https://api.github.com/users/juanvallejo/following{/other_user}","gists_url":"https://api.github.com/users/juanvallejo/gists{/gist_id}","starred_url":"https://api.github.com/users/juanvallejo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanvallejo/subscriptions","organizations_url":"https://api.github.com/users/juanvallejo/orgs","repos_url":"https://api.github.com/users/juanvallejo/repos","events_url":"https://api.github.com/users/juanvallejo/events{/privacy}","received_events_url":"https://api.github.com/users/juanvallejo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-02T18:18:11Z","updated_at":"2016-12-05T13:32:21Z","closed_at":null,"body":"Using `kubectl edit` is not always ideal for updating the contents of `ConfigMap` object fields. If a field's value is too large, it can be non-intuitive from a user's perspective to replace such value with a file's contents, for example.\r\n\r\nThis proposal suggests the creation of a `new method for updating a single field in a config map`. \r\n\r\nThis could  be done either through a new sub-command:\r\n- `kubectl edit-field configmap/myconfigmap FIELD1=\"newvalue\"`\r\n\r\nor through the use of a flag:\r\n- `kubectl edit configmap/myconfigmap --field FIELD1=\"test\"`\r\n\r\nupdating a single field's value using a file's contents would also be supported:\r\n- `kubectl edit configmap/myconfigmap --field FIELD1 --from-file=path/to/file`\r\n- `kubectl edit-field configmap/myconfigmap FIELD1 --from-file=path/to/file`\r\n\r\n@fabianofranz @jwforres @smarterclayton "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/264854591","html_url":"https://github.com/kubernetes/kubernetes/issues/37965#issuecomment-264854591","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/37965","id":264854591,"user":{"login":"deads2k","id":8225098,"avatar_url":"https://avatars.githubusercontent.com/u/8225098?v=3","gravatar_id":"","url":"https://api.github.com/users/deads2k","html_url":"https://github.com/deads2k","followers_url":"https://api.github.com/users/deads2k/followers","following_url":"https://api.github.com/users/deads2k/following{/other_user}","gists_url":"https://api.github.com/users/deads2k/gists{/gist_id}","starred_url":"https://api.github.com/users/deads2k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deads2k/subscriptions","organizations_url":"https://api.github.com/users/deads2k/orgs","repos_url":"https://api.github.com/users/deads2k/repos","events_url":"https://api.github.com/users/deads2k/events{/privacy}","received_events_url":"https://api.github.com/users/deads2k/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T13:32:21Z","updated_at":"2016-12-05T13:32:21Z","body":"> How this is different from kubectl patch?\r\n\r\nCreate a config map that contains a `master-config.yaml` and then write the patch you need to mutate a field.  This would solve that use-case in a far more reasonable way.\r\n\r\nIt gets even worse with secrets since they are base64 encoded."}}
{"actor":{"display_login":"deads2k"}}