diff --git a/controllers/drupalsite_controller.go b/controllers/drupalsite_controller.go index d6e047782109220f382dec869c4b3f1296a0501e..30f2c76c6680b55138cea223d22dc05af0ec257e 100644 --- a/controllers/drupalsite_controller.go +++ b/controllers/drupalsite_controller.go @@ -246,7 +246,7 @@ func (r *DrupalSiteReconciler) Reconcile(ctx context.Context, req ctrl.Request) if drupalSite.Labels == nil { drupalSite.Labels = map[string]string{} } - if namespace.Labels[ssoProxyLabel] == "true" && drupalSite.Labels[ssoProxyLabel] != "true" { + if (namespace.Labels[ssoProxyLabel] == "true" && drupalSite.Labels[ssoProxyLabel] != "true") || drupalSite.Labels[sitePrimaryLabel] != "true" { drupalSite.Labels[ssoProxyLabel] = "true" return r.updateCRorFailReconcile(ctx, log, drupalSite) }