Skip to content

Commit

Permalink
Check for node pool service
Browse files Browse the repository at this point in the history
  • Loading branch information
jswoods committed Jun 29, 2023
1 parent 5292809 commit 676f876
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/suite/clusters/humiocluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ var _ = Describe("HumioCluster Controller", func() {
ctx := context.Background()
createAndBootstrapMultiNodePoolCluster(ctx, k8sClient, humioClientForTestSuite, toCreate, true, humiov1alpha1.HumioClusterStateRunning)

Eventually(func() error {
_, err := kubernetes.GetService(ctx, k8sClient, controllers.NewHumioNodeManagerFromHumioNodePool(toCreate, &toCreate.Spec.NodePools[0]).GetServiceName(), key.Namespace)
return err
}, testTimeout, suite.TestInterval).Should(Succeed())

Eventually(func() error {
_, err := kubernetes.GetService(ctx, k8sClient, controllers.NewHumioNodeManagerFromHumioCluster(toCreate).GetServiceName(), key.Namespace)
return err
Expand Down

0 comments on commit 676f876

Please sign in to comment.