From 9eee9d95f9f241ac6352417fc34a366558603424 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Thu, 28 Nov 2024 16:08:58 -0500 Subject: [PATCH] relabel service to remove ambiguity --- internal/controllers/services.go | 2 +- internal/test/resources.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/controllers/services.go b/internal/controllers/services.go index 4f402e83..5be4c1ac 100644 --- a/internal/controllers/services.go +++ b/internal/controllers/services.go @@ -190,7 +190,7 @@ func configureAgentService(cr *model.CryostatInstance) *operatorv1beta2.AgentSer } // Apply common service defaults - configureService(&config.ServiceConfig, cr.Name, "cryostat") + configureService(&config.ServiceConfig, cr.Name, "cryostat-agent-gateway") // Apply default HTTP port if not provided if config.HTTPPort == nil { diff --git a/internal/test/resources.go b/internal/test/resources.go index 015dd385..bc74bc9f 100644 --- a/internal/test/resources.go +++ b/internal/test/resources.go @@ -830,10 +830,10 @@ func (r *TestResources) NewAgentProxyService() *corev1.Service { Namespace: r.Namespace, Labels: map[string]string{ "app": r.Name, - "component": "cryostat", + "component": "cryostat-agent-gateway", "app.kubernetes.io/name": "cryostat", "app.kubernetes.io/instance": r.Name, - "app.kubernetes.io/component": "cryostat", + "app.kubernetes.io/component": "cryostat-agent-gateway", "app.kubernetes.io/part-of": "cryostat", }, }, @@ -901,11 +901,11 @@ func (r *TestResources) NewCustomizedAgentService() *corev1.Service { } svc.Labels = map[string]string{ "app": r.Name, - "component": "cryostat", + "component": "cryostat-agent-gateway", "my": "label", "app.kubernetes.io/name": "cryostat", "app.kubernetes.io/instance": r.Name, - "app.kubernetes.io/component": "cryostat", + "app.kubernetes.io/component": "cryostat-agent-gateway", "app.kubernetes.io/part-of": "cryostat", } return svc