mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 20:21:20 +00:00
fix kubectl config view to respect serialization formats
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user