From f235fb421eee389f9a6b5e62c5ded638e9b7cffc Mon Sep 17 00:00:00 2001 From: Jigisha Patil <89548848+jigisha620@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:02:01 -0700 Subject: [PATCH] chore: Bump operatorpkg (#1701) --- go.mod | 2 +- go.sum | 4 ++-- pkg/controllers/nodepool/readiness/suite_test.go | 1 + pkg/controllers/nodepool/validation/suite_test.go | 1 + 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index cb94bdf248..319eb8b905 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.23.0 require ( github.com/Pallinder/go-randomdata v1.2.0 github.com/avast/retry-go v3.0.0+incompatible - github.com/awslabs/operatorpkg v0.0.0-20240912183034-ab1e7d730cf3 + github.com/awslabs/operatorpkg v0.0.0-20240920182301-771460b3160b github.com/docker/docker v27.3.1+incompatible github.com/go-logr/logr v1.4.2 github.com/imdario/mergo v0.3.16 diff --git a/go.sum b/go.sum index ea001e4d21..52c802e1ef 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/Pallinder/go-randomdata v1.2.0 h1:DZ41wBchNRb/0GfsePLiSwb0PHZmT67XY00 github.com/Pallinder/go-randomdata v1.2.0/go.mod h1:yHmJgulpD2Nfrm0cR9tI/+oAgRqCQQixsA8HyRZfV9Y= github.com/avast/retry-go v3.0.0+incompatible h1:4SOWQ7Qs+oroOTQOYnAHqelpCO0biHSxpiH9JdtuBj0= github.com/avast/retry-go v3.0.0+incompatible/go.mod h1:XtSnn+n/sHqQIpZ10K1qAevBhOOCWBLXXy3hyiqqBrY= -github.com/awslabs/operatorpkg v0.0.0-20240912183034-ab1e7d730cf3 h1:jhFYTRgOZhFMtQ2GzY2dVDAjorHpWI0rt9wDFG5jQ2o= -github.com/awslabs/operatorpkg v0.0.0-20240912183034-ab1e7d730cf3/go.mod h1:WnRtbjt0U71m4PqDBLybOcY5KkbeGh9FIsJGohVFUo4= +github.com/awslabs/operatorpkg v0.0.0-20240920182301-771460b3160b h1:aG1+YRmKIf5nLTZJNhw1NmuxvjUprWYyluqJ2jmVqiU= +github.com/awslabs/operatorpkg v0.0.0-20240920182301-771460b3160b/go.mod h1:RI+iNDn57c3WX0tsZg4rvkmM58lWsEC5cc6E4vJJld8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= diff --git a/pkg/controllers/nodepool/readiness/suite_test.go b/pkg/controllers/nodepool/readiness/suite_test.go index 89fbdd1a65..6e3755421d 100644 --- a/pkg/controllers/nodepool/readiness/suite_test.go +++ b/pkg/controllers/nodepool/readiness/suite_test.go @@ -92,6 +92,7 @@ var _ = Describe("Readiness", func() { ExpectApplied(ctx, env.Client, nodePool, nodeClass) _ = ExpectObjectReconciled(ctx, env.Client, controller, nodePool) nodePool = ExpectExists(ctx, env.Client, nodePool) + nodePool.StatusConditions().SetTrue(v1.ConditionTypeValidationSucceeded) Expect(nodePool.StatusConditions().IsTrue(status.ConditionReady)).To(BeTrue()) }) It("should have status condition on nodePool as not ready if nodeClass is not ready", func() { diff --git a/pkg/controllers/nodepool/validation/suite_test.go b/pkg/controllers/nodepool/validation/suite_test.go index 2aecaa9257..c66aa14199 100644 --- a/pkg/controllers/nodepool/validation/suite_test.go +++ b/pkg/controllers/nodepool/validation/suite_test.go @@ -69,6 +69,7 @@ var _ = Describe("Counter", func() { ExpectApplied(ctx, env.Client, nodePool) ExpectObjectReconciled(ctx, env.Client, nodePoolValidationController, nodePool) nodePool = ExpectExists(ctx, env.Client, nodePool) + nodePool.StatusConditions().SetTrue(v1.ConditionTypeNodeClassReady) Expect(nodePool.StatusConditions().IsTrue(status.ConditionReady)).To(BeTrue()) Expect(nodePool.StatusConditions().IsTrue(v1.ConditionTypeValidationSucceeded)).To(BeTrue()) })