Files
kubernetes/pkg/kubectl/cmd
Kubernetes Submit Queue 43d30a143b Merge pull request #66140 from liggitt/kubectl-current-context
Automatic merge from submit-queue (batch tested with PRs 66121, 66140, 66045). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Allow modifying current context with kubectl set-context

Fixes https://github.com/kubernetes/kubernetes/issues/40968

Enabled setting the namespace (or any other attribute) for the current context, rather than needing to provide a name:
```
kubectl config set-context --current --namespace=some-namespace
kubectl config set-context --current --cluster=some-cluster
kubectl config set-context --current --user=some-user
```

```release-note
`kubectl config set-context` can now set attributes of the current context, like the current namespace, by passing `--current` instead of a specific context name
```
2018-07-12 23:05:05 -07:00
..
2018-06-22 16:22:57 -07:00
2018-06-22 16:22:57 -07:00
2018-06-27 15:46:35 +08:00
2018-07-12 14:48:13 -04:00
2018-05-08 09:02:34 -04:00
2018-03-13 16:21:30 -04:00
2018-07-12 14:48:13 -04:00
2018-05-08 09:02:34 -04:00
2017-12-25 16:23:38 +08:00
2018-05-08 09:02:34 -04:00
2018-04-27 21:41:03 +02:00
2018-05-08 18:33:50 -04:00
2018-05-08 09:02:34 -04:00
2018-05-08 09:02:34 -04:00