Skip to content

Commit

Permalink
feat: add CA file Helm option
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Dec 26, 2023
1 parent ad78ea4 commit 42b9274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,11 @@ func (c *helmClient) run(name, namespace string, options UpgradeOptions, command
if options.Atomic {
args = append(args, "--atomic")
}

// TLS options
if options.CaFile != "" {
args = append(args, "--ca-file", options.CaFile)
}
if options.InsecureSkipTlsVerify {
args = append(args, "--insecure-skip-tls-verify")
}
Expand Down
1 change: 1 addition & 0 deletions pkg/helm/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type UpgradeOptions struct {
Force bool
CreateNamespace bool

CaFile string
InsecureSkipTlsVerify bool

ExtraArgs []string
Expand Down

0 comments on commit 42b9274

Please sign in to comment.