diff --git a/controllers/operator_methods.go b/controllers/operator_methods.go index 7aa2e959a900857940a568d1679c938d726ccc74..26a8ed2865e71fd25e847f923f642205105960c3 100644 --- a/controllers/operator_methods.go +++ b/controllers/operator_methods.go @@ -39,7 +39,7 @@ func (r *GitlabPagesSiteReconciler) getOidcSecret(ctx context.Context, gitlabPag // Ensure we have a valid ApplicationRegistration registration, this only happens when we have exactly one ApplicationRegistration // with a status set by the authz-operator and this status says provisioning succeeded - if !reflect.DeepEqual(appReg.Status, authzalpha1.ApplicationRegistrationStatus{}) && appReg.Status.ProvisioningStatus != "Created" { + if !reflect.DeepEqual(appReg.Status, authzalpha1.ApplicationRegistrationStatus{}) && appReg.Status.ClientCredentialsSecret != "oidc-client-secret" { meta.SetStatusCondition(&gitlabPagesSite.Status.Conditions, metav1.Condition{ Type: webservicescernchv1alpha1.ConditionTypeGitlabPagesSiteCreated, Status: metav1.ConditionFalse,