Skip to content

Commit

Permalink
Merge pull request #722 from l1b0k/release-1.9
Browse files Browse the repository at this point in the history
fix tag filter
  • Loading branch information
jzwlqx authored Nov 14, 2024
2 parents e3045b4 + e349f1e commit 0174700
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions daemon/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func getENIConfig(cfg *daemon.Config) *types.ENIConfig {
EniSelectionPolicy: eniSelectionPolicy,
ResourceGroupID: cfg.ResourceGroupID,
EniTypeAttr: 0,
TagFilter: cfg.ENITagFilter,
}

if cfg.VSwitches != nil {
Expand Down
1 change: 1 addition & 0 deletions pkg/factory/aliyun/aliyun.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewAliyun(ctx context.Context, openAPI *client.OpenAPI, getter eni.ENIInfoG
eniTags: cfg.ENITags,
eniTypeAttr: cfg.EniTypeAttr,
selectionPolicy: cfg.VSwitchSelectionPolicy,
eniTagFilter: cfg.TagFilter,
}
}

Expand Down
2 changes: 2 additions & 0 deletions types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type ENIConfig struct {

EnableIPv4 bool
EnableIPv6 bool

TagFilter map[string]string
}

// PoolConfig configuration of pool and resource factory
Expand Down

0 comments on commit 0174700

Please sign in to comment.