@@ -40,6 +40,8 @@ type registryPushOptions struct {
40
40
caFile string
41
41
insecureSkipTLSverify bool
42
42
plainHTTP bool
43
+ password string
44
+ username string
43
45
}
44
46
45
47
func newPushCmd (cfg * action.Configuration , out io.Writer ) * cobra.Command {
@@ -69,7 +71,7 @@ func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
69
71
},
70
72
RunE : func (_ * cobra.Command , args []string ) error {
71
73
registryClient , err := newRegistryClient (
72
- o .certFile , o .keyFile , o .caFile , o .insecureSkipTLSverify , o .plainHTTP , "" , "" ,
74
+ o .certFile , o .keyFile , o .caFile , o .insecureSkipTLSverify , o .plainHTTP , o . username , o . password ,
73
75
)
74
76
75
77
if err != nil {
@@ -99,6 +101,8 @@ func newPushCmd(cfg *action.Configuration, out io.Writer) *cobra.Command {
99
101
f .StringVar (& o .caFile , "ca-file" , "" , "verify certificates of HTTPS-enabled servers using this CA bundle" )
100
102
f .BoolVar (& o .insecureSkipTLSverify , "insecure-skip-tls-verify" , false , "skip tls certificate checks for the chart upload" )
101
103
f .BoolVar (& o .plainHTTP , "plain-http" , false , "use insecure HTTP connections for the chart upload" )
104
+ f .StringVar (& o .username , "username" , "" , "chart repository username where to locate the requested chart" )
105
+ f .StringVar (& o .password , "password" , "" , "chart repository password where to locate the requested chart" )
102
106
103
107
return cmd
104
108
}
0 commit comments