[SecurityGroup] Resource never resolves when all ingress and egress rules use groupRef #2191
Labels
priority/critical-urgent
Highest priority. Must be actively worked on as someone's top priority right now.
service/ec2
Indicates issues or PRs that are related to ec2-controller.
Describe the bug
We are creating/grouping multiple SecurityGroups ACK objects into a single helm chart. Among these are two SecurityGroups that contain rules that reference each other via userIDGroupPairs using groupRef field. The problem we are facing is a SecurityGroup that references another SecurityGroup in both its egressRules and ingressRules will not successfully sync with no error message. The ack-ec2-controller logs only show that it recognizes it is out of sync and attempts to update the resource over and over again.
This is what the status shows. The references have resolved successfully however the resource sync status remains
False
forever with no indication as to why it is stuck.I can see the SecurityGroup is created in AWS console but the ingress and egress rulesets are empty. If I change just the egressRules to use
groupID
to reference the same SecurityGroup by ID it will resolve.Steps to reproduce
Create a SecurityGroup likened to this one:
Expected outcome
The SecurityGroup should sync to AWS as expected.
Environment
The text was updated successfully, but these errors were encountered: