mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #9505 from mikedanese/remove-flags
remove kubectl flags from usage examples that no longer exist
This commit is contained in:
commit
e36aa77018
@ -19,9 +19,6 @@ kubectl config view
|
||||
// Show Merged kubeconfig settings.
|
||||
$ kubectl config view
|
||||
|
||||
// Show only local kubeconfig settings
|
||||
$ kubectl config view --local
|
||||
|
||||
// Get the password for the e2e user
|
||||
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'
|
||||
```
|
||||
@ -72,6 +69,6 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
|
||||
### SEE ALSO
|
||||
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files
|
||||
|
||||
###### Auto generated by spf13/cobra at 2015-05-21 10:33:11.216559289 +0000 UTC
|
||||
###### Auto generated by spf13/cobra at 2015-06-09 19:55:35.92095292 +0000 UTC
|
||||
|
||||
[]()
|
||||
|
@ -164,9 +164,6 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
|
||||
// Show Merged kubeconfig settings.
|
||||
$ kubectl config view
|
||||
|
||||
// Show only local kubeconfig settings
|
||||
$ kubectl config view \-\-local
|
||||
|
||||
// Get the password for the e2e user
|
||||
$ kubectl config view \-o template \-\-template='\{\{range .users\}\}\{\{ if eq .name "e2e" \}\}\{\{ index .user.password \}\}\{\{end\}\}\{\{end\}\}'
|
||||
|
||||
|
@ -46,9 +46,6 @@ You can use --output=template --template=TEMPLATE to extract specific values.`
|
||||
view_example = `// Show Merged kubeconfig settings.
|
||||
$ kubectl config view
|
||||
|
||||
// Show only local kubeconfig settings
|
||||
$ kubectl config view --local
|
||||
|
||||
// Get the password for the e2e user
|
||||
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'`
|
||||
)
|
||||
@ -119,7 +116,6 @@ func (o ViewOptions) Run(out io.Writer, printer kubectl.ResourcePrinter) error {
|
||||
}
|
||||
|
||||
func (o *ViewOptions) Complete() bool {
|
||||
// if --kubeconfig, --global, or --local is specified, then merging doesn't make sense since you're declaring precise intent
|
||||
if o.ConfigAccess.IsExplicitFile() {
|
||||
if !o.Merge.Provided() {
|
||||
o.Merge.Set("false")
|
||||
|
Loading…
Reference in New Issue
Block a user