Skip to content

Commit

Permalink
conformance: enable GatewayClassObservedGenerationBump
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <bitliu@tencent.com>
  • Loading branch information
Xunzhuo committed Jan 13, 2023
1 parent 4b5153c commit 36bbcb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/provider/kubernetes/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ type controlledClasses struct {
}

func (cc *controlledClasses) addMatch(gc *gwapiv1b1.GatewayClass) {
cc.matchedClasses = append(cc.matchedClasses, gc)
if cc.oldestClass != nil && gc.Name == cc.oldestClass.Name {
cc.matchedClasses = append(cc.matchedClasses, gc)
}

switch {
case cc.oldestClass == nil:
Expand Down

0 comments on commit 36bbcb5

Please sign in to comment.