-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ingress: Correct FromGroups rule Parsing #32231
Conversation
/test |
@learnitall / @joamaki I don't think the test failures are related, mind a review please? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good! I'm not too familiar with this part of cilium so it definitely would make sense to get more eyes on this.
For now, v1.16 development continues on the |
Unfortunately, this will need a rebase. But thanks for catching this! Since this is fixing an unshipped bug, no release note is required. |
Currently fromGroups, which was added in cilium#30708, is correctly represented in the YAML but not being converted to a rule. This commit fixes that by: - Reporting that a rule requires derivation when an ingress component does, and making sure to clear ingress rules when creating that derivative. - Adding FromGroups to parseToCiliumIngressCommonRule logic - During validation make sure that fromGroups is not combined with other L3 rules. Signed-off-by: Alex Waring <[email protected]>
47e1e85
to
c23a75e
Compare
In the previous commit and cilium#30708 the fromGroups resource was added, but testing was not covered properly. This commit validates that we are working as expected. Signed-off-by: Alex Waring <[email protected]>
c23a75e
to
36e83ae
Compare
/test |
In #30708 I created a resource that translates to a K8s resource but not to an actual resource. This PR corrects that behaviour by adding in some tests and fixing when they break. You could argue I should have done this initially, you're right.
This should be backported to 1.16 so it goes out with the original PR.