Skip to content
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

Enable overriding docker client #378

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

halvards
Copy link
Collaborator

@halvards halvards commented Jul 2, 2021

When embedding ko, it may be necessary to override the docker client.

This adds a PublishOption to inject a docker client created elsewhere.
Ko will use this client to interact with the docker daemon.

Context: GoogleContainerTools/skaffold#6054 (comment)

imjasonh
imjasonh previously approved these changes Jul 2, 2021
@halvards
Copy link
Collaborator Author

halvards commented Jul 2, 2021

Thanks for the quick review @imjasonh ! Looks like the kind e2e tests fail because of issues setting up the kind clusters.

I can see this in the logs:

KubeletNotReady
runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:Network plugin returns error: cni plugin not initialized

@@ -35,10 +35,12 @@ const (
)

// demon is intentionally misspelled to avoid name collision (and drive Jon nuts).
// [Narrator: Jon wasn't the only one driven nuts.]
Copy link
Collaborator

Choose a reason for hiding this comment

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

❤️

@jonjohnsonjr
Copy link
Collaborator

I don't understand why the kind tests are failing

@jonjohnsonjr
Copy link
Collaborator

@halvards want to rebase this to pick up kind fix?

When embedding ko, it may be necessary to override the docker client.

This adds a PublishOption to inject a docker client created elsewhere.
Ko will use this client to interact with the docker daemon.

Context: GoogleContainerTools/skaffold#6054 (comment)
@halvards
Copy link
Collaborator Author

kind e2e tests passing. Thanks @imjasonh and @jonjohnsonjr!

@jonjohnsonjr jonjohnsonjr merged commit 8295e25 into ko-build:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants