Skip to content
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

operator: Hidden flags for egress gateway and LRPs #17772

Merged

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Nov 3, 2021

Some of the CRD registrations (e.g., CENP and CLRP) are conditioned on feature flags. In some cases, that registration happens in the operator, in which case it needs to be possible to enable the features there.

Reproduced and tested in the development VM where the operator is in charge of registering the CRDs. Without this patch, the CRDs are never created and the agent waits indefinitely when e.g. the egress gateway is enabled. With this patch, the egress gateway can be enabled in the operator via a flag to trigger the registration of the CRD.

Define operator feature flags to allow the operator to register related CRDs.

Some of the CRD registrations (e.g., CENP and CLRP) are conditioned on
feature flags. In some cases, that registration happens in the operator,
in which case it needs to be possible to enable the features there.

Reproduced and tested in the development VM where the operator is in
charge of registering the CRDs. Without this patch, the CRDs are never
created and the agent waits indefinitely when e.g. the egress gateway is
enabled. With this patch, the egress gateway can be enabled in the
operator via a flag to trigger the registration of the CRD.

Suggested-by: Joe Stringer <joe@cilium.io>
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added kind/bug This is a bug in the Cilium logic. release-note/bug This PR fixes an issue in a previous release of Cilium. area/operator Impacts the cilium-operator component area/lrp Impacts Local Redirect Policy. needs-backport/1.10 feature/egress-gateway Impacts the egress IP gateway feature. labels Nov 3, 2021
@pchaigno pchaigno requested a review from a team as a code owner November 3, 2021 22:45
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.6 Nov 3, 2021
@pchaigno
Copy link
Member Author

pchaigno commented Nov 3, 2021

/test

Copy link
Member

@aditighag aditighag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix.

@pchaigno
Copy link
Member Author

pchaigno commented Nov 4, 2021

All team review requests are covered and tests are passing. Marking ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 4, 2021
@nathanjsweet nathanjsweet merged commit 80f61ad into cilium:master Nov 4, 2021
@pchaigno pchaigno deleted the operator-flags-crd-registering branch November 4, 2021 19:21
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.6 Nov 12, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.6 Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lrp Impacts Local Redirect Policy. area/operator Impacts the cilium-operator component feature/egress-gateway Impacts the egress IP gateway feature. kind/bug This is a bug in the Cilium logic. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.10.6
Backport done to v1.10
Development

Successfully merging this pull request may close these issues.

None yet

8 participants