-
Notifications
You must be signed in to change notification settings - Fork 406
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
Can't figure out flags for insecure registry #396
Comments
Ref #142 |
This is correct. I regret adding the kubectl flags to We'll need to configure the transport with My only question is: Should this always happen if you pass A quick and dirty fix would be to do that here: https://github.com/google/ko/blob/c014ec1feb76a3574cb280dcd7d14eee7e2f11c2/pkg/publish/default.go#L83 And if Some other places that might be less gross would be here: https://github.com/google/ko/blob/8295e25f7dc4954ac0e0dd4ec94b7af76f92d8c1/pkg/commands/resolver.go#L201-L207 (Supply a custom transport via Or even in here: https://github.com/google/ko/blob/c014ec1feb76a3574cb280dcd7d14eee7e2f11c2/pkg/publish/options.go#L105-L110 If |
I'm using
ko
versionv0.8.3
, and I'm probably an idiot, but I can't seem to get either--insecure-registry
flag fromko resolve
or the--insecure-registry
and--insecure-skip-tls-verify
flags working against a private harbor registry.The harbor registry has a SNI cert for
192.168.10.12
, and I've setKO_DOCKER_REPO=192.168.10.12
, and I've set up authorization viadocker login
(and added the registry toinsecure-registries
in the docker JSON config).It looks like the following should be the correct usage:
This just produces an error:
The
--insecure-skip-tls-verify
flag might be a kubectl flag, though it's not documented what it connects to:(This command doesn't seem to end up trying to publish an image before it fails)
The text was updated successfully, but these errors were encountered: