Skip to content

Commit

Permalink
Use the latest version of cert-manager
Browse files Browse the repository at this point in the history
Signed-off-by: dashanji <dashanjic@gmail.com>
  • Loading branch information
dashanji authored and arttor committed Mar 29, 2023
1 parent 9f44526 commit 2d1d959
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 9 additions & 2 deletions pkg/helm/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,15 @@ func overwriteTemplateFile(filename, chartDir string, crd bool, templates []helm

func overwriteValuesFile(chartDir string, values helmify.Values, certManagerAsSubchart bool) error {
if certManagerAsSubchart {
values.Add(true, "cert-manager", "installCRDs")
values.Add(true, "cert-manager", "enabled")
_, err := values.Add(true, "cert-manager", "installCRDs")
if err != nil {
return errors.Wrap(err, "unable to add cert-manager.installCRDs")
}

_, err = values.Add(true, "cert-manager", "enabled")
if err != nil {
return errors.Wrap(err, "unable to add cert-manager.enabled")
}
}
res, err := yaml.Marshal(values)
if err != nil {
Expand Down
1 change: 0 additions & 1 deletion pkg/helm/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ func chartYAML(appName string, certManagerAsSubchart bool) []byte {
annotatins := `
dependencies:
- name: cert-manager
version: 1.9.1
repository: https://charts.jetstack.io
condition: certManager.enabled`
if certManagerAsSubchart {
Expand Down

0 comments on commit 2d1d959

Please sign in to comment.