mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 16:21:44 +02:00
feat: helm repo add --ca-file via repositories definition (#856)
Resolves #855
This commit is contained in:
committed by
KUOKA Yusuke
parent
ef63a05513
commit
216c228c0b
@@ -68,12 +68,15 @@ func (helm *execer) SetHelmBinary(bin string) {
|
||||
helm.helmBinary = bin
|
||||
}
|
||||
|
||||
func (helm *execer) AddRepo(name, repository, certfile, keyfile, username, password string) error {
|
||||
func (helm *execer) AddRepo(name, repository, cafile, certfile, keyfile, username, password string) error {
|
||||
var args []string
|
||||
args = append(args, "repo", "add", name, repository)
|
||||
if certfile != "" && keyfile != "" {
|
||||
args = append(args, "--cert-file", certfile, "--key-file", keyfile)
|
||||
}
|
||||
if cafile != "" {
|
||||
args = append(args, "--ca-file", cafile)
|
||||
}
|
||||
if username != "" && password != "" {
|
||||
args = append(args, "--username", username, "--password", password)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user