|
8 | 8 | appsapi "k8s.io/api/apps/v1"
|
9 | 9 | corev1 "k8s.io/api/core/v1"
|
10 | 10 | metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
11 |
| - "k8s.io/utils/pointer" |
| 11 | + "k8s.io/utils/ptr" |
12 | 12 |
|
13 | 13 | imageregistryv1 "github.com/openshift/api/imageregistry/v1"
|
14 | 14 | operatorv1 "github.com/openshift/api/operator/v1"
|
@@ -69,7 +69,7 @@ func Test_syncStatus(t *testing.T) {
|
69 | 69 | Generation: 8,
|
70 | 70 | },
|
71 | 71 | Spec: appsapi.DeploymentSpec{
|
72 |
| - Replicas: pointer.Int32(3), |
| 72 | + Replicas: ptr.To[int32](3), |
73 | 73 | },
|
74 | 74 | Status: appsapi.DeploymentStatus{
|
75 | 75 | Replicas: 3,
|
@@ -119,7 +119,7 @@ func Test_syncStatus(t *testing.T) {
|
119 | 119 | Generation: 8,
|
120 | 120 | },
|
121 | 121 | Spec: appsapi.DeploymentSpec{
|
122 |
| - Replicas: pointer.Int32(3), |
| 122 | + Replicas: ptr.To[int32](3), |
123 | 123 | },
|
124 | 124 | Status: appsapi.DeploymentStatus{
|
125 | 125 | Replicas: 3,
|
@@ -206,7 +206,7 @@ func Test_syncStatus(t *testing.T) {
|
206 | 206 | },
|
207 | 207 | deploy: &appsapi.Deployment{
|
208 | 208 | Spec: appsapi.DeploymentSpec{
|
209 |
| - Replicas: pointer.Int32(3), |
| 209 | + Replicas: ptr.To[int32](3), |
210 | 210 | },
|
211 | 211 | Status: appsapi.DeploymentStatus{
|
212 | 212 | AvailableReplicas: 2,
|
@@ -250,7 +250,7 @@ func Test_syncStatus(t *testing.T) {
|
250 | 250 | },
|
251 | 251 | deploy: &appsapi.Deployment{
|
252 | 252 | Spec: appsapi.DeploymentSpec{
|
253 |
| - Replicas: pointer.Int32(3), |
| 253 | + Replicas: ptr.To[int32](3), |
254 | 254 | },
|
255 | 255 | Status: appsapi.DeploymentStatus{
|
256 | 256 | AvailableReplicas: 2,
|
@@ -301,7 +301,7 @@ func Test_syncStatus(t *testing.T) {
|
301 | 301 | },
|
302 | 302 | deploy: &appsapi.Deployment{
|
303 | 303 | Spec: appsapi.DeploymentSpec{
|
304 |
| - Replicas: pointer.Int32(3), |
| 304 | + Replicas: ptr.To[int32](3), |
305 | 305 | },
|
306 | 306 | Status: appsapi.DeploymentStatus{
|
307 | 307 | AvailableReplicas: 2,
|
@@ -717,7 +717,7 @@ func Test_syncStatus(t *testing.T) {
|
717 | 717 | Generation: 8,
|
718 | 718 | },
|
719 | 719 | Spec: appsapi.DeploymentSpec{
|
720 |
| - Replicas: pointer.Int32(3), |
| 720 | + Replicas: ptr.To[int32](3), |
721 | 721 | },
|
722 | 722 | Status: appsapi.DeploymentStatus{
|
723 | 723 | Replicas: 3,
|
|
0 commit comments