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
bgpv1: remove references to advertisement from CiliumBGPPeeringPolicy #30337
Conversation
Advertisement field got introduced into CiliumBGPFamily type when adding v2 APIs. This field is only required in new CiliumBGPPeerConfig structures. This change removes advertisement from CiliumBGPFamily and introduces new type CiliumBGPFamilyWithAdverts which will be used in v2 APIs. Signed-off-by: harsimran pabla <hpabla@isovalent.com>
6e49143
to
fd3939c
Compare
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.
LGTM
/test |
Ginkgo test failure "Policy map sync fixed errors" : #29727 |
The field is a pointer and includes the |
Hi @danehans
I mean functionality of Advertisements is only required in BGPv2 CiliumBGPPeerConfig resource. It is indeed an optional field in that context. However, it should not be present at all in CiliumBGPPeeringPolicy which have references to CiliumBGPFamily. |
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.
Thanks for providing clarification for the changes.
@harsimran-pabla I assume this PR was backported in #30531? If yes, I've removed the needs-backport/1.15 label |
Yes @aanm , thanks for linking PR and removing label. Missed few steps while manually doing this. |
Advertisement field got introduced into CiliumBGPFamily type when adding v2 APIs. This field is only required in new CiliumBGPPeerConfig structures. This change removes advertisement from CiliumBGPFamily and introduces new type CiliumBGPFamilyWithAdverts which will be used in v2 APIs.
There is no impact to current usage of the CiliumBGPPeeringPolicy CRD.