Skip to content

Commit

Permalink
Refactor use of pointer library
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
bshephar committed Oct 30, 2023
1 parent d014e87 commit da11637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/horizon_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit da11637

Please sign in to comment.