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

ingress: sort all shared ingresses during model generation #31494

Merged

Conversation

mhofstetter
Copy link
Member

@mhofstetter mhofstetter commented Mar 19, 2024

Currently, when building the model for shared Ingress, all Ingresses in the cluster are listed and processed. The order of the Ingresses can differ and potentially influence the generated CiliumEnvoyConfig. This can lead to unnecessary reconciles. (Even though the internal translation already handles a stable CiliumEnvoyConfig generation where possible.)

In addition to the existing stable translation logic, this commit sorts all shared Ingresses by their namespace and name before processing. This way a consistent translation is more likely to be guaranteed.

Related to: #31493
Related to: #31572

Currently, when building the model for shared Ingress, all Ingresses
in the cluster are listed and processed. The order of the Ingresses can
differ and potentially influence the generated CiliumEnvoyConfig. This
can lead to unnecessary reconciles. (Even though the internal translation
already handles a stable CiliumEnvoyConfig generation where possible.)

In addition to the existing stable translation logic, this commit sorts
all shared Ingresses by their namespace and name before processing. This way
a consistent translation is more likely to be guaranteed.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/enhancement This would improve or streamline existing functionality. release-note/misc This PR makes changes that have no direct user impact. area/servicemesh GH issues or PRs regarding servicemesh feature/k8s-ingress labels Mar 19, 2024
@mhofstetter
Copy link
Member Author

/test

@mhofstetter mhofstetter marked this pull request as ready for review March 19, 2024 14:16
@mhofstetter mhofstetter requested a review from a team as a code owner March 19, 2024 14:16
@mhofstetter mhofstetter added the needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch label Mar 20, 2024
Copy link
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

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

LGTM ✔️

@sayboras sayboras added this pull request to the merge queue Mar 26, 2024
Merged via the queue into cilium:main with commit 16f6afe Mar 26, 2024
63 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/ingress-shared-sort-ingresses branch March 26, 2024 07:38
@joamaki joamaki mentioned this pull request Apr 2, 2024
13 tasks
@joamaki joamaki added backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. and removed needs-backport/1.15 This PR / issue needs backporting to the v1.15 branch labels Apr 2, 2024
@github-actions github-actions bot added backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. and removed backport-pending/1.15 The backport for Cilium 1.15.x for this PR is in progress. labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/servicemesh GH issues or PRs regarding servicemesh backport-done/1.15 The backport for Cilium 1.15.x for this PR is done. feature/k8s-ingress kind/enhancement This would improve or streamline existing functionality. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants