Skip to content

Commit

Permalink
fix: service name (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
DokiDoki1103 authored Jan 16, 2024
1 parent 9a0c02e commit 3143e8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions controllers/handler/mq.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ func (m *mq) deployment() client.Object {
func (m *mq) service() client.Object {
return &corev1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: NodeName,
Name: MQName,
Namespace: m.component.Namespace,
Labels: m.labels,
},
Spec: corev1.ServiceSpec{
Ports: []corev1.ServicePort{
{
Name: NodeName,
Name: MQName,
Port: 6300,
TargetPort: intstr.FromInt(6300),
},
Expand Down
4 changes: 2 additions & 2 deletions controllers/handler/webcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,14 @@ func (w *webcli) deployment() client.Object {
func (w *webcli) service() client.Object {
return &corev1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: WorkerName,
Name: WebCliName,
Namespace: w.component.Namespace,
Labels: w.labels,
},
Spec: corev1.ServiceSpec{
Ports: []corev1.ServicePort{
{
Name: WorkerName,
Name: WebCliName,
Port: 7171,
TargetPort: intstr.FromInt(7171),
},
Expand Down

0 comments on commit 3143e8d

Please sign in to comment.