Skip to content

Commit

Permalink
fix: windows linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
ritwikranjan committed Jan 2, 2025
1 parent 697369d commit ef2bf6e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/sirupsen/logrus"

"github.com/cilium/cilium/pkg/identity"
icache "github.com/cilium/cilium/pkg/identity/cache"
"github.com/cilium/cilium/pkg/identity/cache"

Check failure on line 10 in pkg/controllers/operator/cilium-crds/endpoint/identitymanager.go

View workflow job for this annotation

GitHub Actions / Lint (windows, amd64)

could not import github.com/cilium/cilium/pkg/identity/cache (-: # github.com/cilium/cilium/pkg/identity/cache

Check failure on line 10 in pkg/controllers/operator/cilium-crds/endpoint/identitymanager.go

View workflow job for this annotation

GitHub Actions / Lint (windows, arm64)

could not import github.com/cilium/cilium/pkg/identity/cache (-: # github.com/cilium/cilium/pkg/identity/cache
"github.com/cilium/cilium/pkg/k8s/client/clientset/versioned"
"github.com/cilium/cilium/pkg/labels"
"github.com/cilium/cilium/pkg/option"
Expand All @@ -25,7 +25,7 @@ type IdentityManager struct {
// The struct performs a bit more than is needed including:
// - logic for local identities (e.g. node-local CIDR identity), which we do not use
// - a go routine for notifications on identity changes
alloc *icache.CachingIdentityAllocator
alloc *cache.CachingIdentityAllocator
// labelIdentities maps sorted labels (via labels.Labels.String()) to allocated identity
labelIdentities map[string]identity.NumericIdentity
}
Expand All @@ -46,7 +46,7 @@ func (o *owner) GetNodeSuffix() string {
func NewIdentityManager(l logrus.FieldLogger, client versioned.Interface) (*IdentityManager, error) {
im := &IdentityManager{
l: l.WithField("component", "identitymanager"),
alloc: icache.NewCachingIdentityAllocator(&owner{}),
alloc: cache.NewCachingIdentityAllocator(&owner{}),
labelIdentities: make(map[string]identity.NumericIdentity),
}

Expand Down

0 comments on commit ef2bf6e

Please sign in to comment.