Skip to content

Commit

Permalink
Merge pull request #2176 from alexkats/neg-dt-fix
Browse files Browse the repository at this point in the history
Take only strategy keys in cloudprovideradapter for dynamic throttling
  • Loading branch information
k8s-ci-robot authored Jun 21, 2023
2 parents 259e348 + 05dae9b commit 5af8f5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/neg/types/cloudprovideradapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func NewAdapterWithRateLimitSpecs(g *gce.Cloud, specs []string) NetworkEndpointG
strategyKeys := make(map[string]struct{})
for _, spec := range specs {
params := strings.Split(spec, ",")
strategyKeys[params[0]] = struct{}{}
if params[1] == "strategy" {
strategyKeys[params[0]] = struct{}{}
}
}
return &cloudProviderAdapter{
c: g,
Expand Down

0 comments on commit 5af8f5f

Please sign in to comment.