mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
update commented examples just remove $
This commit is contained in:
@@ -60,13 +60,13 @@ Specifying a name that already exists will merge new fields on top of existing v
|
||||
|
||||
const create_authinfo_example = `# Set only the "client-key" field on the "cluster-admin"
|
||||
# entry, without touching other values:
|
||||
$ kubectl config set-credentials cluster-admin --client-key=~/.kube/admin.key
|
||||
kubectl config set-credentials cluster-admin --client-key=~/.kube/admin.key
|
||||
|
||||
# Set basic auth for the "cluster-admin" entry
|
||||
$ kubectl config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif
|
||||
kubectl config set-credentials cluster-admin --username=admin --password=uXFGweU9l35qcif
|
||||
|
||||
# Embed client certificate data in the "cluster-admin" entry
|
||||
$ kubectl config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true`
|
||||
kubectl config set-credentials cluster-admin --client-certificate=~/.kube/admin.crt --embed-certs=true`
|
||||
|
||||
func NewCmdConfigSetAuthInfo(out io.Writer, configAccess ConfigAccess) *cobra.Command {
|
||||
options := &createAuthInfoOptions{configAccess: configAccess}
|
||||
|
||||
Reference in New Issue
Block a user