Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 10e7be7

Browse files
authoredApr 20, 2024··
Merge pull request #35 from kubero-dev/fix/add-clusterissuer-when-OLM-is-selected
Update the install function to call installCertManagerClusterissuer
2 parents 882e8cc + 3b2641e commit 10e7be7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎cmd/kuberoCli/install.go

+5-3
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,11 @@ func installCertManagerSlim() {
739739
}
740740
certManagerSpinner.Success("Cert Manager installed")
741741

742-
installCertManagerClusterissuer()
742+
installCertManagerClusterissuer("cert-manager")
743743

744744
}
745745

746-
func installCertManagerClusterissuer() {
746+
func installCertManagerClusterissuer(namespace string) {
747747

748748
installer := resty.New()
749749

@@ -766,7 +766,7 @@ func installCertManagerClusterissuer() {
766766
return
767767
}
768768

769-
_, certmanagerClusterIssuerErr := exec.Command("kubectl", "apply", "-f", "kuberoCertmanagerClusterIssuer.yaml", "-n", "cert-manager").Output()
769+
_, certmanagerClusterIssuerErr := exec.Command("kubectl", "apply", "-f", "kuberoCertmanagerClusterIssuer.yaml", "-n", namespace).Output()
770770
if certmanagerClusterIssuerErr != nil {
771771
cfmt.Println("{{✗ Failed to create Certmanager Clusterissuer. Try runnig this command manually: kubectl apply -f kuberoCertmanagerClusterIssuer.yaml -n cert-manager}}::red")
772772
return
@@ -805,6 +805,8 @@ func installOLMCertManager() {
805805
log.Fatal(certManagerWaitErr)
806806
}
807807
certManagerSpinner.Success("Cert Manager is ready")
808+
809+
installCertManagerClusterissuer("default")
808810
}
809811

810812
func writeCLIconfig() {

0 commit comments

Comments
 (0)
Please sign in to comment.