fix kubectl config view to respect serialization formats

This commit is contained in:
deads2k
2015-02-20 09:03:38 -05:00
parent d6851729d2
commit 5c4b6583e4
2 changed files with 8 additions and 2 deletions

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