add kubectl config view --raw example help user use

This commit is contained in:
zhengjiajin 2018-03-23 09:51:47 +08:00
parent 01e67e2808
commit 457a7e76d9

View File

@ -48,9 +48,12 @@ var (
You can use --output jsonpath={...} to extract specific values using a jsonpath expression.`)
view_example = templates.Examples(`
# Show Merged kubeconfig settings.
# Show merged kubeconfig settings.
kubectl config view
# Show merged kubeconfig settings and raw certificate data.
kubectl config view --raw
# Get the password for the e2e user
kubectl config view -o jsonpath='{.users[?(@.name == "e2e")].user.password}'`)
)