fix: propagate source criterion config to RateLimit middleware in Kubernetes CRD
This commit is contained in:
parent
321c9421ea
commit
ef2d03d96e
3 changed files with 36 additions and 1 deletions
|
@ -426,6 +426,10 @@ func createRateLimitMiddleware(rateLimit *v1alpha1.RateLimit) (*dynamic.RateLimi
|
|||
}
|
||||
}
|
||||
|
||||
if rateLimit.SourceCriterion != nil {
|
||||
rl.SourceCriterion = rateLimit.SourceCriterion
|
||||
}
|
||||
|
||||
return rl, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue