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

Fix inadvertent deletion of aggregated ServiceImports on agent restart #1675

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

tpantelis
Copy link
Contributor

If the broker co-exists on a managed cluster, on LH agent restart, the aggregated ServiceImports on the broker are inadvertently deleted during reconciliation. Reconciliation should only process local aggregated ServiceImports and should ignore ServiceImports in the broker namespace. The latter are distinguished by the presence of the
"multicluster.kubernetes.io/service-name" annotation.

The reconciliation unit test was adjusted to cover this case.

Fixes submariner-io/submariner#3188

If the broker co-exists on a managed cluster, on LH agent restart,
the aggregated ServiceImports on the broker are inadvertently deleted
during reconciliation. Reconciliation should only process local
aggregated ServiceImports and should ignore ServiceImports in the
broker namespace. The latter are distinguished by the presence of the
 "multicluster.kubernetes.io/service-name" annotation.

The reconciliation unit test was adjusted to cover this case.

Fixes submariner-io/submariner#3188

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr1675/tpantelis/fix_si_deletion
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Nov 15, 2024
@vthapar vthapar enabled auto-merge (rebase) November 15, 2024 07:53
@vthapar vthapar merged commit 68f3758 into submariner-io:devel Nov 15, 2024
32 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr1675/tpantelis/fix_si_deletion]

tpantelis added a commit to tpantelis/submariner-website that referenced this pull request Nov 15, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to tpantelis/submariner-website that referenced this pull request Nov 15, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to tpantelis/submariner-website that referenced this pull request Nov 15, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to tpantelis/submariner-website that referenced this pull request Nov 15, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to submariner-io/submariner-website that referenced this pull request Nov 18, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to submariner-io/submariner-website that referenced this pull request Nov 18, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to submariner-io/submariner-website that referenced this pull request Nov 18, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
tpantelis added a commit to submariner-io/submariner-website that referenced this pull request Nov 21, 2024
submariner-io/lighthouse#1675

Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Facing issue in submariner gateway.
4 participants