Skip to content

Commit

Permalink
Remove double imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jjngx committed Sep 13, 2024
1 parent ceaa21a commit ecdf5f5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/k8s/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"reflect"

"github.com/golang/glog"
api_v1 "k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/client-go/tools/cache"
Expand Down Expand Up @@ -59,7 +58,7 @@ func (lbc *LoadBalancerController) addConfigMapHandler(handlers cache.ResourceEv
"configmaps",
namespace,
fields.Everything()),
ObjectType: &api_v1.ConfigMap{},
ObjectType: &v1.ConfigMap{},

Check warning on line 61 in internal/k8s/configmap.go

View check run for this annotation

Codecov / codecov/patch

internal/k8s/configmap.go#L61

Added line #L61 was not covered by tests
ResyncPeriod: lbc.resync,
Handler: handlers,
}
Expand All @@ -77,7 +76,7 @@ func (lbc *LoadBalancerController) syncConfigMap(task task) {
return
}
if configExists {
lbc.configMap = obj.(*api_v1.ConfigMap)
lbc.configMap = obj.(*v1.ConfigMap)

Check warning on line 79 in internal/k8s/configmap.go

View check run for this annotation

Codecov / codecov/patch

internal/k8s/configmap.go#L79

Added line #L79 was not covered by tests
externalStatusAddress, exists := lbc.configMap.Data["external-status-address"]
if exists {
lbc.statusUpdater.SaveStatusFromExternalStatus(externalStatusAddress)
Expand Down

0 comments on commit ecdf5f5

Please sign in to comment.