Skip to content

Commit

Permalink
Suppress SA1019: k8s.io/utils/pointer is deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Jian Wang <[email protected]>
  • Loading branch information
w13915984028 committed Oct 23, 2024
1 parent d9809e6 commit 33837a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/lb/servicelb/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/utils/pointer"
"k8s.io/utils/pointer" // NOLINT

"github.com/harvester/harvester-load-balancer/pkg/apis/loadbalancer.harvesterhci.io"
lbv1 "github.com/harvester/harvester-load-balancer/pkg/apis/loadbalancer.harvesterhci.io/v1beta1"
Expand Down Expand Up @@ -575,7 +575,7 @@ func appendDummyEndpoint(eps []discoveryv1.Endpoint, lb *lbv1.LoadBalancer) []di
UID: dummyEndpointID,
},
Conditions: discoveryv1.EndpointConditions{
Ready: pointer.Bool(true),
Ready: pointer.Bool(true), // NOLINT
},
}
eps = append(eps, endpoint)
Expand Down Expand Up @@ -651,7 +651,7 @@ func (m *Manager) constructEndpointSliceFromBackendServers(cur *discoveryv1.Endp
UID: server.GetUID(),
},
Conditions: discoveryv1.EndpointConditions{
Ready: pointer.Bool(true),
Ready: pointer.Bool(true), // NOLINT
},
}
endpoints = append(endpoints, endpoint)
Expand Down

0 comments on commit 33837a2

Please sign in to comment.