Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,6 @@ func main() {
klog.Errorf("Cleanup Webhook Resources failed: %v", err)
os.Exit(1)
}
// Update CS CR Status
go goroutines.UpdateCsCrStatus(bs)
// Create CS CR
go goroutines.WaitToCreateCsCR(bs)
// Delete Keycloak Cert
go goroutines.CleanupResources(bs)

if err = (&controllers.CommonServiceReconciler{
Bootstrap: bs,
Expand All @@ -170,6 +164,14 @@ func main() {
os.Exit(1)
}

klog.Infof("Start go routines")
// Update CS CR Status
go goroutines.UpdateCsCrStatus(bs)
// Create CS CR
go goroutines.WaitToCreateCsCR(bs)
// Delete Keycloak Cert
go goroutines.CleanupResources(bs)

// check if cert-manager CRD does not exist, then skip cert-manager related controllers initialization
exist, err := bs.CheckCRD(constant.CertManagerAPIGroupVersionV1, "Certificate")
if err != nil {
Expand Down
Loading