From da11637ba4a8374a3fb116d8981fd76fae5758a0 Mon Sep 17 00:00:00 2001 From: Brendan Shephard Date: Mon, 30 Oct 2023 08:56:26 +1000 Subject: [PATCH] Refactor use of pointer library The pointer library[1] has been deprecated and replaced by ptr. This change refactors the usage on the new library[2] and usage. [1] https://pkg.go.dev/k8s.io/utils/pointer [2] https://pkg.go.dev/k8s.io/utils/ptr Signed-off-by: Brendan Shephard --- tests/functional/horizon_controller_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/horizon_controller_test.go b/tests/functional/horizon_controller_test.go index 4f89b6eb..335e8f68 100644 --- a/tests/functional/horizon_controller_test.go +++ b/tests/functional/horizon_controller_test.go @@ -7,7 +7,7 @@ import ( . "github.com/onsi/gomega" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" - "k8s.io/utils/pointer" + "k8s.io/utils/ptr" condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition" . "github.com/openstack-k8s-operators/lib-common/modules/common/test/helpers" @@ -31,7 +31,7 @@ var _ = Describe("Horizon controller", func() { Namespace: horizonName.Namespace, } memcachedSpec = memcachedv1.MemcachedSpec{ - Replicas: pointer.Int32(3), + Replicas: ptr.To[int32](3), } // lib-common uses OPERATOR_TEMPLATES env var to locate the "templates"