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

Allow skipping TLS verification while publishing image #65

Merged
merged 1 commit into from
Jul 24, 2019

Conversation

tanner-bruce
Copy link
Contributor

@tanner-bruce tanner-bruce commented Jul 23, 2019

Why this is necessary: when using a local docker registry, users may not
want to support https, or there may be other troubles not allowing
verifiable TLS support.

This commit adds this functionality by adding an --insecure-registry
flag.

@jonjohnsonjr

Fixes #64

Why this is necessary: when using a local docker registry, users may not
want to support https, or there may be other troubles not allowing
verifiable TLS support.

This commit adds this functionality by adding an `--insecure-registry`
flag.
Copy link
Collaborator

@jonjohnsonjr jonjohnsonjr left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

I was thinking that we'd have it be similar to docker where you have to supply the registry as the flag value, but then I realized it will only ever have one value (KO_DOCKER_REPO). We could do something cute like allowing KO_DOCKER_REPO to be prefixed by http:// to signal that it's insecure instead of having a flag, but I think this is fine.

This won't apply to the base image currently (which is fine), but we may want to plumb this down to the builder eventually if someone runs into that.

@jonjohnsonjr jonjohnsonjr merged commit 48afd62 into ko-build:master Jul 24, 2019
@tanner-bruce tanner-bruce deleted the allow-insecure-registry branch July 24, 2019 18:04
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.

Using a local docker registry
2 participants