Skip to content

Commit

Permalink
space
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Rae Kim <[email protected]>
  • Loading branch information
yiraeChristineKim committed Nov 9, 2023
2 parents 63c07a2 + af4c716 commit 946b97d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ func checkCPScontrollerAvailable(mainCtx context.Context, result watch.Event, dy
audit, _, err := unstructured.NestedMap(gatekeeper, "spec", "audit")
if err != nil {
setupLog.V(1).Info("audit is not set. ConstraintStatus controller cannot be created")

return false
}

Expand All @@ -299,6 +300,7 @@ func checkCPScontrollerAvailable(mainCtx context.Context, result watch.Event, dy
// It has been waited for 30 seconds but still not ready
if i == 4 && !isCPSCrdExist {
setupLog.V(1).Info("ContraintPodStatus crd is still not ready. return checkCPScontrollerAvailable to false")

return false
}

Expand Down

0 comments on commit 946b97d

Please sign in to comment.