mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 05:01:46 +00:00
Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
fix kubeconfig serialization
This commit is contained in:
@@ -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
|
||||
|
@@ -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