Skip to content

Conversation

liyihuang
Copy link
Contributor

@liyihuang liyihuang commented Apr 23, 2025

  • Currently, if we dont have TLSRoute CRD installed, the operator will still try to list TLSRoute CRD that's because we validate the TLSRoute through IsGroupRegistered.

  • This commit refactors the HasServiceImportSupport and HasTLSRouteSupport functions to check for the registration of the ServiceImport and TLSRoute CRDs instead of IsGroupRegistered. so the optinal CRD will not just pass when the Group is registered.

  • Update the UT to test the TLSRoute properly

Fixes: #38420

Check the TLSRoute and HasServiceImportSupport through the CRD. 

…hecks

-Currently, if we dont have TLSRoute CRD installed, the operator will still try to list TLSRoute CRD
that's because we validate the TLSRoute through IsGroupRegistered.

- This commit refactors the HasServiceImportSupport and HasTLSRouteSupport functions to check for
the registration of the ServiceImport and TLSRoute CRDs instead of IsGroupRegistered.
so the optinal CRD will not just pass when the Group is registered.

- Update the UT to test the TLSRoute properly

Signed-off-by: Liyi Huang <liyi.huang@isovalent.com>
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 23, 2025
@liyihuang liyihuang added backport/1.17 This PR represents a backport for Cilium 1.17.x of a PR that was merged to main. release-note/bug This PR fixes an issue in a previous release of Cilium. labels Apr 23, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 23, 2025
@liyihuang liyihuang added dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. area/servicemesh GH issues or PRs regarding servicemesh labels Apr 23, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Apr 23, 2025
@liyihuang liyihuang added release-note/misc This PR makes changes that have no direct user impact. dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. labels Apr 23, 2025
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Apr 23, 2025
@liyihuang
Copy link
Contributor Author

/test

@liyihuang liyihuang marked this pull request as ready for review April 23, 2025 23:53
@liyihuang liyihuang requested a review from a team as a code owner April 23, 2025 23:53
@liyihuang liyihuang requested a review from youngnick April 23, 2025 23:53
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Apr 24, 2025
@youngnick youngnick added this pull request to the merge queue Apr 24, 2025
Merged via the queue into cilium:main with commit 9ac6c4c Apr 24, 2025
72 of 74 checks passed
@liyihuang liyihuang added needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch and removed backport/1.17 This PR represents a backport for Cilium 1.17.x of a PR that was merged to main. labels Apr 24, 2025
@pippolo84 pippolo84 mentioned this pull request Apr 28, 2025
11 tasks
@pippolo84 pippolo84 added backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch and removed needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. labels Apr 28, 2025
@sayboras sayboras mentioned this pull request May 7, 2025
9 tasks
@sayboras sayboras added backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. and removed needs-backport/1.17 This PR / issue needs backporting to the v1.17 branch labels May 7, 2025
@github-actions github-actions bot added backport-done/1.17 The backport for Cilium 1.17.x for this PR is done. and removed backport-pending/1.17 The backport for Cilium 1.17.x for this PR is in progress. labels May 8, 2025
@liyihuang liyihuang deleted the pr/liyihuang/fix-optinal-crd branch August 13, 2025 19:19
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.17 The backport for Cilium 1.17.x for this PR is done. 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. 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.

Gateway reconciler fails if experimental TLSRoute CRD is not installed
4 participants