kubectl config set-cluster name [--server=server][--certificate-authority=path/to/certficate/authority][--api-version=apiversion][--insecure-skip-tls-verify=true]
// Embed certificate authority data for the e2e cluster entry
@@ -24,9 +19,24 @@ Sets a user entry in .kubeconfig
Bearer token and basic auth are mutually exclusive.
```
kubectl config set-credentials NAME [--auth-path=/path/to/authfile] [--client-certificate=path/to/certfile] [--client-key=path/to/keyfile] [--token=bearer_token] [--username=basic_user] [--password=basic_password]
```
kubectl config set-credentials name [--auth-path=authfile][--client-certificate=certfile][--client-key=keyfile][--token=bearer_token][--username=basic_user][--password=basic_password]
### Examples
```
// Set only the "client-key" field on the "cluster-admin"
Use:fmt.Sprintf("set-context name [--%v=cluster-nickname] [--%v=user-nickname] [--%v=namespace]",clientcmd.FlagClusterName,clientcmd.FlagAuthInfoName,clientcmd.FlagNamespace),
Short:"Sets a context entry in .kubeconfig",
Long:`Sets a context entry in .kubeconfig
Specifying a name that already exists will merge new fields on top of existing values for those fields.
only sets the user field on the gce context entry without touching other values.`,
Use:fmt.Sprintf("set-context NAME [--%v=cluster_nickname] [--%v=user_nickname] [--%v=namespace]",clientcmd.FlagClusterName,clientcmd.FlagAuthInfoName,clientcmd.FlagNamespace),