Skip to content

Commit

Permalink
replace deprecated pointr
Browse files Browse the repository at this point in the history
  • Loading branch information
friedrichwilken committed Oct 20, 2023
1 parent 1a3ac8e commit 09dd0b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/k8s/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
k8sclientset "k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
k8stypes "k8s.io/apimachinery/pkg/types"
"k8s.io/utils/pointer"
"k8s.io/utils/ptr"
"sigs.k8s.io/controller-runtime/pkg/client"
)

Expand Down Expand Up @@ -47,7 +47,7 @@ func NewKubeClient(client client.Client, clientset k8sclientset.Interface, field

func (c *KubeClient) PatchApply(ctx context.Context, object *unstructured.Unstructured) error {
return c.client.Patch(ctx, object, client.Apply, &client.PatchOptions{
Force: pointer.Bool(true),
Force: ptr.To(true),
FieldManager: c.fieldManager,
})
}
Expand Down

0 comments on commit 09dd0b5

Please sign in to comment.