Skip to content

Commit

Permalink
use latest cert-manager version
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Oct 11, 2023
1 parent ec83ee7 commit 71cfa6c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmd/kuberoCli/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,12 @@ func installCertManagerSlim() {
}

certManagerSpinner := spinner.New("Install Cert Manager")
certManagerSpinner.Start("run command : kubectl create -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml")
_, certManagerErr := exec.Command("kubectl", "create", "-f", "https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml").Output()
//certmanagerUrl := "https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml"
certmanagerUrl := "https://github.com/cert-manager/cert-manager/releases/latest/download/cert-manager.yaml"
certManagerSpinner.Start("run command : kubectl create -f " + certmanagerUrl)
_, certManagerErr := exec.Command("kubectl", "create", "-f", certmanagerUrl).Output()
if certManagerErr != nil {
certManagerSpinner.Error("Failed to run command. Try runnig this command manually: kubectl create -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml")
certManagerSpinner.Error("Failed to run command. Try runnig this command manually: kubectl create -f " + certmanagerUrl)
log.Fatal(certManagerErr)
}

Expand Down

0 comments on commit 71cfa6c

Please sign in to comment.