Skip to content

Commit

Permalink
Merge pull request kubernetes#33275 from maciaszczykm/remove-kubectl-…
Browse files Browse the repository at this point in the history
…namespace-cmd

Automatic merge from submit-queue

Remove kubectl namespace command

**What this PR does / why we need it**:

It removes deprecated `kubectl namespace` command, which `has been superseded by the context.namespace field of .kubeconfig files.  See 'kubectl config set-context --help' for more details`. It was done nearly two years ago, so like `// TODO remove once people have been given enough time to notice` comment says it may be a good time to get rid of it.

**Special notes for your reviewer**:

None ATM.

**Release note**:
<!--  Steps to write your release note:
1. Use the release-note-* labels to set the release note state (if you have access) 
2. Enter your extended release note in the below block; leaving it blank means using the PR title as the release note. If no release note is required, just write `NONE`. 
-->
```release-note
Remove kubectl namespace command
```
  • Loading branch information
Kubernetes Submit Queue authored Sep 24, 2016
2 parents a18bc2e + d2a288d commit beba1e2
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 92 deletions.
3 changes: 0 additions & 3 deletions .generated_docs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ docs/man/man1/kubectl-expose.1
docs/man/man1/kubectl-get.1
docs/man/man1/kubectl-label.1
docs/man/man1/kubectl-logs.1
docs/man/man1/kubectl-namespace.1
docs/man/man1/kubectl-options.1
docs/man/man1/kubectl-patch.1
docs/man/man1/kubectl-port-forward.1
Expand Down Expand Up @@ -131,7 +130,6 @@ docs/user-guide/kubectl/kubectl_expose.md
docs/user-guide/kubectl/kubectl_get.md
docs/user-guide/kubectl/kubectl_label.md
docs/user-guide/kubectl/kubectl_logs.md
docs/user-guide/kubectl/kubectl_namespace.md
docs/user-guide/kubectl/kubectl_options.md
docs/user-guide/kubectl/kubectl_patch.md
docs/user-guide/kubectl/kubectl_port-forward.md
Expand Down Expand Up @@ -176,7 +174,6 @@ docs/yaml/kubectl/kubectl_expose.yaml
docs/yaml/kubectl/kubectl_get.yaml
docs/yaml/kubectl/kubectl_label.yaml
docs/yaml/kubectl/kubectl_logs.yaml
docs/yaml/kubectl/kubectl_namespace.yaml
docs/yaml/kubectl/kubectl_options.yaml
docs/yaml/kubectl/kubectl_patch.yaml
docs/yaml/kubectl/kubectl_port-forward.yaml
Expand Down
3 changes: 0 additions & 3 deletions docs/man/man1/kubectl-namespace.1

This file was deleted.

41 changes: 0 additions & 41 deletions docs/user-guide/kubectl/kubectl_namespace.md

This file was deleted.

3 changes: 0 additions & 3 deletions docs/yaml/kubectl/kubectl_namespace.yaml

This file was deleted.

1 change: 0 additions & 1 deletion pkg/kubectl/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,6 @@ Find more information at https://github.com/kubernetes/kubernetes.`,
filters := []string{
"options",
Deprecated("kubectl", "delete", cmds, NewCmdStop(f, out)),
Deprecated("kubectl", "config set-context", cmds, NewCmdNamespace(out)),
}
templates.ActsAsRootCommand(cmds, filters, groups...)

Expand Down
41 changes: 0 additions & 41 deletions pkg/kubectl/cmd/namespace.go

This file was deleted.

0 comments on commit beba1e2

Please sign in to comment.