Skip to content

Commit

Permalink
Merge pull request #38 from varad-ahirwadkar/update-dependency
Browse files Browse the repository at this point in the history
Updating deprecated k8s.io/utils/ptr
  • Loading branch information
Power Cloud Robot authored Aug 30, 2024
2 parents 896fc03 + 96b87fc commit 1dd111e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/controller/daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"k8s.io/apimachinery/pkg/api/resource"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
utilpointer "k8s.io/utils/pointer"
utilpointer "k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
)

Expand Down Expand Up @@ -191,8 +191,8 @@ func desiredRSCTDaemonSet(config *DaemonSetConfig) (*appsv1.DaemonSet, error) {
},
},
SecurityContext: &corev1.SecurityContext{
Privileged: utilpointer.Bool(true),
RunAsUser: utilpointer.Int64(0),
Privileged: utilpointer.To(true),
RunAsUser: utilpointer.To(int64(0)),
},
StartupProbe: &corev1.Probe{
ProbeHandler: corev1.ProbeHandler{
Expand Down

0 comments on commit 1dd111e

Please sign in to comment.