Add kubeclt config rename-context

Enables renaming of a context via `kubectl`

Fix https://github.com/kubernetes/kubernetes/issues/45131
This commit is contained in:
Arthur Miranda
2017-05-19 13:07:54 -03:00
parent 3912675b4f
commit 83fec5bafb
7 changed files with 303 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ func NewCmdConfig(pathOptions *clientcmd.PathOptions, out, errOut io.Writer) *co
cmd.AddCommand(NewCmdConfigGetClusters(out, pathOptions))
cmd.AddCommand(NewCmdConfigDeleteCluster(out, pathOptions))
cmd.AddCommand(NewCmdConfigDeleteContext(out, errOut, pathOptions))
cmd.AddCommand(NewCmdConfigRenameContext(out, pathOptions))
return cmd
}