Skip to content

Commit

Permalink
relabel service to remove ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Nov 28, 2024
1 parent 3effe86 commit 9eee9d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/controllers/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions internal/test/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9eee9d9

Please sign in to comment.