-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Pass empty kubeconfig path when loading default Kubernetes configuration #2540
base: master
Are you sure you want to change the base?
Conversation
Previously, in-cluster configuration could not be used because the ExplicitPath was always set in the `ClientConfigLoadingRules`. If `ExplicitPath` is not set, `ClientConfigLoadingRules` will look up all of the standard environment variables to find the kubeconfig file, including supporting in cluster authentication. We leave the `kubeconfig` parameter on `FromKubeConfig` to support explicitly setting the path and also to not change the signature. This will fix docker/buildx#256 once the docker/cli dependency is updated. Signed-off-by: [email protected] <[email protected]>
Signed-off-by: [email protected] <[email protected]>
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.
Seems legit to me
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.
LGTM
Ping @mat007 do we want this PR for the next 20.0X release? If so we need to be sure it won't break desktop. |
PTAL @tonistiigi @thaJeztah Seems needed for docker/buildx#256 |
Previously, in-cluster configuration could not be used because the
ExplicitPath was always set in the
ClientConfigLoadingRules
.If
ExplicitPath
is not set,ClientConfigLoadingRules
will look upall of the standard environment variables to find the kubeconfig file,
including supporting in cluster authentication.
We leave the
kubeconfig
parameter onFromKubeConfig
to supportexplicitly setting the path and also to not change the signature.
This will fix docker/buildx#256 once the docker/cli dependency is
updated.
Signed-off-by: [email protected] [email protected]
- Description for the changelog
Added support for in-cluster Kubernetes authentication for Kubernetes contexts.