Skip to content

Commit f619aa1

Browse files
Menekse CeylanMenekse Ceylan
authored andcommitted
Added waf config to change detection
Added ExactMatch -Path- to change detection
1 parent 612f42f commit f619aa1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/alb/ingress/ingressclass_controller.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,11 @@ func detectChange(alb *albsdk.LoadBalancer, albPayload *albsdk.CreateLoadBalance
338338
return true
339339
}
340340

341+
// WAF config check
342+
if ptr.Deref(albListener.WafConfigName, "") != ptr.Deref(payloadListener.WafConfigName, "") {
343+
return true
344+
}
345+
341346
// HTTP rules comparison (via Hosts)
342347
if albListener.Http != nil && payloadListener.Http != nil {
343348
albHosts := albListener.Http.Hosts
@@ -370,6 +375,9 @@ func detectChange(alb *albsdk.LoadBalancer, albPayload *albsdk.CreateLoadBalance
370375
if ptr.Deref(albRule.Path.Prefix, "") != ptr.Deref(payloadRule.Path.Prefix, "") {
371376
return true
372377
}
378+
if ptr.Deref(albRule.Path.ExactMatch, "") != ptr.Deref(payloadRule.Path.ExactMatch, "") {
379+
return true
380+
}
373381
}
374382
if ptr.Deref(albRule.TargetPool, "") != ptr.Deref(payloadRule.TargetPool, "") {
375383
return true

0 commit comments

Comments
 (0)