Commit 401d3c43 authored by Mike Danese's avatar Mike Danese

remove removed flags from usage examples

parent c1e9a413
...@@ -19,9 +19,6 @@ kubectl config view ...@@ -19,9 +19,6 @@ kubectl config view
// Show Merged kubeconfig settings. // Show Merged kubeconfig settings.
$ kubectl config view $ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view --local
// Get the password for the e2e user // Get the password for the e2e user
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}' $ 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 ...@@ -72,6 +69,6 @@ $ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2
### SEE ALSO ### SEE ALSO
* [kubectl config](kubectl_config.md) - config modifies kubeconfig files * [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
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_config_view.md?pixel)]() [![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_config_view.md?pixel)]()
...@@ -164,9 +164,6 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values ...@@ -164,9 +164,6 @@ You can use \-\-output=template \-\-template=TEMPLATE to extract specific values
// Show Merged kubeconfig settings. // Show Merged kubeconfig settings.
$ kubectl config view $ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view \-\-local
// Get the password for the e2e user // Get the password for the e2e user
$ kubectl config view \-o template \-\-template='\{\{range .users\}\}\{\{ if eq .name "e2e" \}\}\{\{ index .user.password \}\}\{\{end\}\}\{\{end\}\}' $ 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.` ...@@ -46,9 +46,6 @@ You can use --output=template --template=TEMPLATE to extract specific values.`
view_example = `// Show Merged kubeconfig settings. view_example = `// Show Merged kubeconfig settings.
$ kubectl config view $ kubectl config view
// Show only local kubeconfig settings
$ kubectl config view --local
// Get the password for the e2e user // Get the password for the e2e user
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'` $ 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 { ...@@ -119,7 +116,6 @@ func (o ViewOptions) Run(out io.Writer, printer kubectl.ResourcePrinter) error {
} }
func (o *ViewOptions) Complete() bool { 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.ConfigAccess.IsExplicitFile() {
if !o.Merge.Provided() { if !o.Merge.Provided() {
o.Merge.Set("false") o.Merge.Set("false")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment