Skip to content

Commit cfa3791

Browse files
Merge pull request #260 from sebrandon1/pointer_deprecation
Use `k8s.io/utils/ptr` instead of deprecated `k8s.io/utils/pointer`
2 parents 5de771d + 39ed85a commit cfa3791

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/controller/deployment/deployment_overrides.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
apierrors "k8s.io/apimachinery/pkg/api/errors"
1010
"k8s.io/apimachinery/pkg/labels"
1111
coreinformersv1 "k8s.io/client-go/informers/core/v1"
12-
"k8s.io/utils/pointer"
12+
"k8s.io/utils/ptr"
1313

1414
operatorv1 "github.com/openshift/api/operator/v1"
1515
"github.com/operator-framework/operator-lib/proxy"
@@ -225,11 +225,11 @@ func withSABoundToken(operatorSpec *operatorv1.OperatorSpec, deployment *appsv1.
225225
Name: boundSATokenVolumeName,
226226
VolumeSource: corev1.VolumeSource{
227227
Projected: &corev1.ProjectedVolumeSource{
228-
DefaultMode: pointer.Int32(420),
228+
DefaultMode: ptr.To(int32(420)),
229229
Sources: []corev1.VolumeProjection{{
230230
ServiceAccountToken: &corev1.ServiceAccountTokenProjection{
231231
Audience: boundSAAudience,
232-
ExpirationSeconds: pointer.Int64(boundSAExpirySec),
232+
ExpirationSeconds: ptr.To(int64(boundSAExpirySec)),
233233
Path: boundSAPath,
234234
}},
235235
},

0 commit comments

Comments
 (0)