Dangling AWS Shield Protections after Ingress are deleted #4042
Labels
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Bug Description
We use AWS Load balancer controller to manage ingress. We are using
alb.ingress.kubernetes.io/shield-advanced-protection
ingress annotation to protect the ingress using AWS Shield. This part works perfectly fine. However, when we delete our ingresses, we see that the Protection resource is not deleted.Protection resources have below attributes.
"Name" = "managed by aws-load-balancer-controller"
"AWS Resource" = ""
"Resource type" = "Application Load Balancer"
"Status" = "Resource Deleted"
"AWS WAF web ACL" = "Error"
Steps to Reproduce
alb.ingress.kubernetes.io/shield-advanced-protection = true
Expected Behavior
Since the protection resource is managed by load balancer controller, it should be deleted by the controller.
Actual Behavior
Protection resource still exists in a dangling state.
Regression
Was the functionality working correctly in a previous version ? [Yes / No]
If yes, specify the last version where it worked as expected
Unsure about this.
Current Workarounds
NA
Environment
helm ls -A | grep -i aws-load-balancer-controller
helm -n <controllernamespace> get values <helmreleasename>
kubectl -n <controllernamespace> describe deployment aws-load-balancer-controller
kubectl describe ingressclasses
kubectl -n <appnamespace> describe ingress <ingressname>
kubectl -n <appnamespace> describe svc <servicename>
Possible Solution (Optional)
NA
Contribution Intention (Optional)
Additional Context
The text was updated successfully, but these errors were encountered: