@@ -11,11 +11,11 @@ import (
11
11
"github.com/Azure/go-autorest/autorest/to"
12
12
"go.uber.org/mock/gomock"
13
13
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
14
- "k8s.io/utils/ptr"
15
14
16
15
aropreviewv1alpha1 "github.com/Azure/ARO-RP/pkg/operator/apis/preview.aro.openshift.io/v1alpha1"
17
16
mock_armnetwork "github.com/Azure/ARO-RP/pkg/util/mocks/azureclient/azuresdk/armnetwork"
18
17
mock_subnet "github.com/Azure/ARO-RP/pkg/util/mocks/subnet"
18
+ "github.com/Azure/ARO-RP/pkg/util/pointerutils"
19
19
"github.com/Azure/ARO-RP/pkg/util/subnet"
20
20
utilerror "github.com/Azure/ARO-RP/test/util/error"
21
21
)
@@ -60,20 +60,20 @@ func getValidPreviewFeatureInstance() *aropreviewv1alpha1.PreviewFeature {
60
60
func getValidFlowLogFeature () * armnetwork.FlowLog {
61
61
return & armnetwork.FlowLog {
62
62
Properties : & armnetwork.FlowLogPropertiesFormat {
63
- TargetResourceID : ptr . To ("" ),
64
- Enabled : ptr . To (true ),
65
- StorageID : ptr . To ("" ),
63
+ TargetResourceID : pointerutils . ToPtr ("" ),
64
+ Enabled : pointerutils . ToPtr (true ),
65
+ StorageID : pointerutils . ToPtr ("" ),
66
66
RetentionPolicy : & armnetwork.RetentionPolicyParameters {
67
- Days : ptr . To (int32 (0 )),
67
+ Days : pointerutils . ToPtr (int32 (0 )),
68
68
},
69
69
Format : & armnetwork.FlowLogFormatParameters {
70
- Type : ptr . To (armnetwork .FlowLogFormatTypeJSON ),
71
- Version : ptr . To (int32 (0 )),
70
+ Type : pointerutils . ToPtr (armnetwork .FlowLogFormatTypeJSON ),
71
+ Version : pointerutils . ToPtr (int32 (0 )),
72
72
},
73
73
FlowAnalyticsConfiguration : & armnetwork.TrafficAnalyticsProperties {
74
74
NetworkWatcherFlowAnalyticsConfiguration : & armnetwork.TrafficAnalyticsConfigurationProperties {
75
- TrafficAnalyticsInterval : ptr . To (int32 (0 )),
76
- WorkspaceID : ptr . To ("" ),
75
+ TrafficAnalyticsInterval : pointerutils . ToPtr (int32 (0 )),
76
+ WorkspaceID : pointerutils . ToPtr ("" ),
77
77
},
78
78
},
79
79
},
0 commit comments