-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add documentation on legacy kubernetes_auth file to kubeconfig-file.md #5071
Conversation
"Insecure": false | ||
} | ||
``` | ||
All entries are optional. `User`, `Password`, `CertFile`, `KeyFile`, and `BearerToken` are applied to the kubectl user. `CAFile` and `Insecure` apply to the cluster. The same rules regarding one authentication technique apply as for .kubeconfig entries (see below). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
validateAuthInfo doesn't detect conflicting BearerToken
and User
authentication loaded from --auth-path
: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/pkg/client/clientcmd/validation.go#L139
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed wording to warn against setting both.
I'll merge this once @deads2k gives the LGTM |
PTAL |
lgtm |
Add documentation on legacy kubernetes_auth file to kubeconfig-file.md
Closes #3869. cc @deads2k