Skip to content

Commit

Permalink
Merge pull request #43 from Kuadrant/fix-service-name
Browse files Browse the repository at this point in the history
fix service name
  • Loading branch information
eguzki authored Aug 29, 2022
2 parents 3659f5f + df1b278 commit 44bf8d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/limitador_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ var _ = Describe("Limitador controller", func() {
context.TODO(),
types.NamespacedName{
Namespace: LimitadorNamespace,
Name: limitadorObj.Name,
Name: limitador.ServiceName(limitadorObj),
},
&createdLimitadorService)
return err == nil
Expand Down Expand Up @@ -165,7 +165,7 @@ var _ = Describe("Limitador controller", func() {
context.TODO(),
types.NamespacedName{
Namespace: LimitadorNamespace,
Name: limitadorObj.Name,
Name: limitador.ServiceName(limitadorObj),
},
&createdLimitadorService)
return err == nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/limitador/k8s_objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func LimitadorService(limitador *limitadorv1alpha1.Limitador) *v1.Service {
APIVersion: "v1",
},
ObjectMeta: metav1.ObjectMeta{
Name: limitador.Name,
Name: ServiceName(limitador),
Namespace: limitador.ObjectMeta.Namespace, // TODO: revisit later. For now assume same.
Labels: labels(),
OwnerReferences: []metav1.OwnerReference{ownerRefToLimitador(limitador)},
Expand Down

0 comments on commit 44bf8d8

Please sign in to comment.