diff --git a/internal/controllers/common/resource_definitions/resource_definitions.go b/internal/controllers/common/resource_definitions/resource_definitions.go index be09e2e6..d03d36eb 100644 --- a/internal/controllers/common/resource_definitions/resource_definitions.go +++ b/internal/controllers/common/resource_definitions/resource_definitions.go @@ -133,7 +133,7 @@ func NewDeploymentForCR(cr *operatorv1beta1.Cryostat, specs *ServiceSpecs, image "app.kubernetes.io/name": "cryostat", }, Annotations: map[string]string{ - "app.openshift.io/connects-to": "cryostat-operator", + "app.openshift.io/connects-to": "cryostat-operator-controller-manager", }, }, Spec: appsv1.DeploymentSpec{ diff --git a/internal/controllers/cryostat_controller_test.go b/internal/controllers/cryostat_controller_test.go index 3ec3ec71..67ddb4e7 100644 --- a/internal/controllers/cryostat_controller_test.go +++ b/internal/controllers/cryostat_controller_test.go @@ -1187,7 +1187,7 @@ func (t *cryostatTestInput) checkDeployment() { Expect(deployment.Name).To(Equal("cryostat")) Expect(deployment.Namespace).To(Equal("default")) Expect(deployment.Annotations).To(Equal(map[string]string{ - "app.openshift.io/connects-to": "cryostat-operator", + "app.openshift.io/connects-to": "cryostat-operator-controller-manager", })) Expect(deployment.Labels).To(Equal(map[string]string{ "app": "cryostat",