Skip to content
Snippets Groups Projects
Commit 047595d8 authored by Vasvi Sharma's avatar Vasvi Sharma Committed by Vasvi Sharma
Browse files

Change ssoproxy labeling condition

parent 8675dcf3
No related branches found
No related tags found
1 merge request!214Automation of putting Drupal clones behind SSO
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment