|
|
@ -35,16 +35,10 @@ it will also be uploaded.
|
|
|
|
`
|
|
|
|
`
|
|
|
|
|
|
|
|
|
|
|
|
type registryPushOptions struct {
|
|
|
|
type registryPushOptions struct {
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
certFile string
|
|
|
|
certFile string
|
|
|
|
keyFile string
|
|
|
|
keyFile string
|
|
|
|
caFile string
|
|
|
|
caFile string
|
|
|
|
insecureSkipTLSverify bool
|
|
|
|
insecureSkipTLSverify bool
|
|
|
|
=======
|
|
|
|
|
|
|
|
certFile string
|
|
|
|
|
|
|
|
keyFile string
|
|
|
|
|
|
|
|
caFile string
|
|
|
|
|
|
|
|
>>>>>>> e676fd1c (Enable custom certificates option for OCI)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
@ -77,10 +71,7 @@ func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
remote := args[1]
|
|
|
|
remote := args[1]
|
|
|
|
client := action.NewPushWithOpts(action.WithPushConfig(cfg),
|
|
|
|
client := action.NewPushWithOpts(action.WithPushConfig(cfg),
|
|
|
|
action.WithTLSClientConfig(o.certFile, o.keyFile, o.caFile),
|
|
|
|
action.WithTLSClientConfig(o.certFile, o.keyFile, o.caFile),
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
action.WithInsecureSkipTLSVerify(o.insecureSkipTLSverify),
|
|
|
|
action.WithInsecureSkipTLSVerify(o.insecureSkipTLSverify),
|
|
|
|
=======
|
|
|
|
|
|
|
|
>>>>>>> e676fd1c (Enable custom certificates option for OCI)
|
|
|
|
|
|
|
|
action.WithPushOptWriter(out))
|
|
|
|
action.WithPushOptWriter(out))
|
|
|
|
client.Settings = settings
|
|
|
|
client.Settings = settings
|
|
|
|
output, err := client.Run(chartRef, remote)
|
|
|
|
output, err := client.Run(chartRef, remote)
|
|
|
@ -96,10 +87,7 @@ func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
|
|
|
|
f.StringVar(&o.certFile, "cert-file", "", "identify registry client using this SSL certificate file")
|
|
|
|
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.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")
|
|
|
|
f.StringVar(&o.caFile, "ca-file", "", "verify certificates of HTTPS-enabled servers using this CA bundle")
|
|
|
|
<<<<<<< HEAD
|
|
|
|
|
|
|
|
f.BoolVar(&o.insecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart upload")
|
|
|
|
f.BoolVar(&o.insecureSkipTLSverify, "insecure-skip-tls-verify", false, "skip tls certificate checks for the chart upload")
|
|
|
|
=======
|
|
|
|
|
|
|
|
>>>>>>> e676fd1c (Enable custom certificates option for OCI)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return cmd
|
|
|
|
return cmd
|
|
|
|
}
|
|
|
|
}
|
|
|
|