mirror of
https://github.com/ko-build/ko.git
synced 2026-06-18 20:14:08 +02:00
Allow skipping TLS verification while publishing (#65)
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.
This commit is contained in:
committed by
jonjohnsonjr
parent
3a0e70e520
commit
48afd62710
@@ -80,3 +80,10 @@ func WithTags(tags []string) Option {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
func Insecure(b bool) Option {
|
||||
return func(i *defaultOpener) error {
|
||||
i.insecure = b
|
||||
return nil
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user