Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization

fix kubeconfig serialization
This commit is contained in:
Jeff Lowdermilk
2015-04-09 09:41:26 -07:00
7 changed files with 51 additions and 12 deletions

View File

@@ -23,7 +23,7 @@ $ kubectl config view
$ kubectl config view --local
// Get the password for the e2e user
$ kubectl config view -o template --template='{{ index . "users" "e2e" "password" }}'
$ kubectl config view -o template --template='{{range .users}}{{ if eq .name "e2e" }}{{ index .user.password }}{{end}}{{end}}'
```
### Options

View File

@@ -172,7 +172,7 @@ $ kubectl config view
$ kubectl config view \-\-local
// Get the password for the e2e user
$ kubectl config view \-o template \-\-template='\{\{ index . "users" "e2e" "password" \}\}'
$ kubectl config view \-o template \-\-template='\{\{range .users\}\}\{\{ if eq .name "e2e" \}\}\{\{ index .user.password \}\}\{\{end\}\}\{\{end\}\}'
.fi
.RE