mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
kubectl get format is specified with -o, not -f
This commit is contained in:
parent
4c5a7e5915
commit
39bdee387e
@ -45,7 +45,7 @@ Examples:
|
||||
$ kubectl get replicationController 1234-56-7890-234234-456456
|
||||
<list single replication controller in ps output format>
|
||||
|
||||
$ kubectl get -f json pod 1234-56-7890-234234-456456
|
||||
$ kubectl get -o json pod 1234-56-7890-234234-456456
|
||||
<list single pod in json output format>`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
mapping, namespace, name := ResourceOrTypeFromArgs(cmd, args, f.Mapper)
|
||||
|
Loading…
Reference in New Issue
Block a user