Skip to content

Commit

Permalink
Update to fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
STARRY-S committed Sep 18, 2024
1 parent e1b21e5 commit 5e96d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/admission/webhook/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/sirupsen/logrus"
admissionv1 "k8s.io/api/admission/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

flv1 "github.com/cnrancher/rancher-flat-network/pkg/apis/flatnetwork.pandaria.io/v1"
"github.com/cnrancher/rancher-flat-network/pkg/common"
Expand Down Expand Up @@ -37,7 +37,7 @@ func (h *Handler) validateFlatNetworkSubnet(ar *admissionv1.AdmissionReview) (bo
}

var subnets = make([]*flv1.FlatNetworkSubnet, 0)
options := v1.ListOptions{
options := metav1.ListOptions{
LabelSelector: fmt.Sprintf("%v=%v,%v=%v",
labelMaster, subnet.Spec.Master, labelVlan, subnet.Spec.VLAN),
Limit: listLimit,
Expand Down

0 comments on commit 5e96d2a

Please sign in to comment.