Skip to content

Commit

Permalink
fix: creds.CAPath passed helm in PullOCI (argoproj#13726) (argoproj#1…
Browse files Browse the repository at this point in the history
…3871)

Signed-off-by: Nandor Galambosi <dromie@gmail.com>
  • Loading branch information
dromie authored and xiaowu.zhu committed Aug 9, 2023
1 parent 80225ab commit ae3caea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions util/helm/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ func (c *Cmd) PullOCI(repo string, chart string, version string, destination str
version,
"--destination",
destination}
if creds.CAPath != "" {
args = append(args, "--ca-file", creds.CAPath)
}
if creds.InsecureSkipVerify && c.insecureSkipVerifySupported {
args = append(args, "--insecure-skip-tls-verify")
}
Expand Down

0 comments on commit ae3caea

Please sign in to comment.