Skip to content

Commit

Permalink
Service missing namespace (#1818)
Browse files Browse the repository at this point in the history
* exposing context

* fetching service from cluster's namespace

---------

Co-authored-by: harsh maheshwari <[email protected]>
  • Loading branch information
09harsh and harsh maheshwari authored Sep 29, 2023
1 parent 3f46d10 commit 03bcf7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions e2e/fixtures/fdb_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -799,8 +799,11 @@ func (fdbCluster *FdbCluster) SetPublicIPSource(publicIPSource fdbv1beta2.Public
func (fdbCluster *FdbCluster) GetServices() *corev1.ServiceList {
serviceList := &corev1.ServiceList{}
gomega.Expect(
fdbCluster.getClient().
List(ctx.TODO(), serviceList, client.MatchingLabels(fdbCluster.GetResourceLabels())),
fdbCluster.getClient().List(
ctx.TODO(),
serviceList,
client.InNamespace(fdbCluster.Namespace()),
client.MatchingLabels(fdbCluster.GetResourceLabels())),
).NotTo(gomega.HaveOccurred())

return serviceList
Expand Down

0 comments on commit 03bcf7c

Please sign in to comment.