The Wayback Machine - https://web.archive.org/web/20251014182632/https://github.com/docker/buildx/pull/460
Skip to content

Conversation

morlay
Copy link
Collaborator

@morlay morlay commented Dec 3, 2020

Signed-off-by: Wang Jinglei morlay.null@gmail.com

use kube config in cluster not work with last PR #368

sorry for checking so late.

kcc = driver.KubeClientConfigInCluster{}
tryToUseKubeConfigInCluster = true
} else {
if _, err := kcc.ClientConfig(); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't hurt to logrus.Debug(err) here?

Copy link
Collaborator Author

@morlay morlay Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i found kcc not be nil in cluster pod.

but not found other way to check local kube config exists.

not sure which logrus.Debug(err) you means? I haven't notice logrus.Debug in ClientConfig

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought printing the err with logrus.Debug(err) might be useful for debugging potential failures, but either is fine to me

@tonistiigi
Copy link
Member

@morlay needs rebase (and maybe update)

Signed-off-by: Wang <morlay.null@gmail.com>
@morlay
Copy link
Collaborator Author

morlay commented Dec 8, 2020

@tonistiigi updated

@tonistiigi tonistiigi merged commit 343a475 into docker:master Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants