Merge pull request #9505 from mikedanese/remove-flags

remove kubectl flags from usage examples that no longer exist
This commit is contained in:
krousey 2015-06-09 15:15:59 -07:00
commit e36aa77018
3 changed files with 1 additions and 11 deletions

View File

@ -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
[![Analytics](https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/docs/kubectl_config_view.md?pixel)]()

View File

@ -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\}\}'

View File

@ -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")