@ -43,7 +43,10 @@ type registryLoginOptions struct {
certFile string
keyFile string
caFile string
<< << << < HEAD
insecure bool
== == == =
>> >> >> > e676fd1c ( Enable custom certificates option for OCI )
}
func newRegistryLoginCmd ( cfg * action . Configuration , out io . Writer ) * cobra . Command {
@ -66,8 +69,12 @@ func newRegistryLoginCmd(cfg *action.Configuration, out io.Writer) *cobra.Comman
return action . NewRegistryLogin ( cfg ) . Run ( out , hostname , username , password ,
action . WithCertFile ( o . certFile ) ,
action . WithKeyFile ( o . keyFile ) ,
<< << << < HEAD
action . WithCAFile ( o . caFile ) ,
action . WithInsecure ( o . insecure ) )
== == == =
action . WithCAFile ( o . caFile ) )
>> >> >> > e676fd1c ( Enable custom certificates option for OCI )
} ,
}
@ -75,7 +82,10 @@ func newRegistryLoginCmd(cfg *action.Configuration, out io.Writer) *cobra.Comman
f . StringVarP ( & o . username , "username" , "u" , "" , "registry username" )
f . StringVarP ( & o . password , "password" , "p" , "" , "registry password or identity token" )
f . BoolVarP ( & o . passwordFromStdinOpt , "password-stdin" , "" , false , "read password or identity token from stdin" )
<< << << < HEAD
f . BoolVarP ( & o . insecure , "insecure" , "" , false , "allow connections to TLS registry without certs" )
== == == =
>> >> >> > e676fd1c ( Enable custom certificates option for OCI )
f . StringVar ( & o . certFile , "cert-file" , "" , "identify registry client using this SSL certificate file" )
f . StringVar ( & o . keyFile , "key-file" , "" , "identify registry client using this SSL key file" )
f . StringVar ( & o . caFile , "ca-file" , "" , "verify certificates of HTTPS-enabled servers using this CA bundle" )