Skip to content

Commit 58bb1dc

Browse files
tjmoore4jkatz
authored andcommitted
Added additional label check to support multiple operator deployments
on a single kube/openshift cluster.
1 parent 1b73647 commit 58bb1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/namespacecontroller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (c *NamespaceController) onUpdate(oldObj, newObj interface{}) {
119119
log.Debugf("[NamespaceController] onUpdate ns=%s", newNs.ObjectMeta.SelfLink)
120120

121121
labels := newNs.GetObjectMeta().GetLabels()
122-
if labels[config.LABEL_VENDOR] != config.LABEL_CRUNCHY {
122+
if labels[config.LABEL_VENDOR] != config.LABEL_CRUNCHY || labels[config.LABEL_PGO_INSTALLATION_NAME] != operator.InstallationName {
123123
log.Debugf("NamespaceController: onUpdate skipping namespace that is not crunchydata %s", newNs.ObjectMeta.SelfLink)
124124
return
125125
} else {

0 commit comments

Comments
 (0)