Skip to content

Commit

Permalink
Merge pull request #721 from l1b0k/release-1.8
Browse files Browse the repository at this point in the history
fix tag filter
  • Loading branch information
jzwlqx authored Nov 14, 2024
2 parents 52209c9 + 8f7c2af commit 144428d
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 @@ -43,6 +43,7 @@ func getENIConfig(cfg *daemon.Config) *types.ENIConfig {
VSwitchSelectionPolicy: policy,
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 @@ -19,6 +19,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 144428d

Please sign in to comment.