Skip to content

feat: support ClusterTrustBundle in CACertificateRefs #6353

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

zirain
Copy link
Member

@zirain zirain commented Jun 19, 2025

xref: #6351

@zirain zirain requested a review from a team as a code owner June 19, 2025 03:34
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

Attention: Patch coverage is 53.99240% with 121 lines in your changes missing coverage. Please review.

Project coverage is 70.84%. Comparing base (6a90195) to head (619652f).

Files with missing lines Patch % Lines
internal/provider/kubernetes/controller.go 29.52% 71 Missing and 3 partials ⚠️
internal/provider/kubernetes/controller_watch.go 30.00% 13 Missing and 1 partial ⚠️
internal/provider/kubernetes/predicates.go 72.72% 9 Missing and 3 partials ⚠️
internal/provider/kubernetes/indexers.go 74.28% 7 Missing and 2 partials ⚠️
internal/gatewayapi/backendtlspolicy.go 40.00% 5 Missing and 1 partial ⚠️
internal/gatewayapi/clienttrafficpolicy.go 73.91% 4 Missing and 2 partials ⚠️

❌ Your patch check has failed because the patch coverage (53.99%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6353      +/-   ##
==========================================
+ Coverage   70.66%   70.84%   +0.17%     
==========================================
  Files         220      221       +1     
  Lines       37701    37851     +150     
==========================================
+ Hits        26642    26814     +172     
+ Misses       9495     9464      -31     
- Partials     1564     1573       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zirain
Copy link
Member Author

zirain commented Jun 19, 2025

wait #6352

@zirain zirain force-pushed the clustertrustbundles branch 2 times, most recently from e1f796f to 233430d Compare June 23, 2025 02:41
@zirain zirain force-pushed the clustertrustbundles branch from 233430d to d9e8483 Compare July 1, 2025 11:46
@zirain zirain force-pushed the clustertrustbundles branch 3 times, most recently from 6ca957c to 94f7ad6 Compare July 2, 2025 02:43
zirain added 3 commits July 2, 2025 12:36
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain force-pushed the clustertrustbundles branch from b74196d to f50407f Compare July 2, 2025 04:38
zirain added 2 commits July 2, 2025 13:47
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain force-pushed the clustertrustbundles branch from 0f516ed to 0d4a55a Compare July 7, 2025 07:50
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain force-pushed the clustertrustbundles branch from 0d4a55a to a8fcbfa Compare July 7, 2025 07:53
Signed-off-by: zirain <zirain2009@gmail.com>
Comment on lines +34 to +36
message: |-
TLS: caCertificateRef secret [tls-secret-1] not found
TLS: caCertificateRef secret [tls-secret-1] not found.
Copy link
Member Author

Choose a reason for hiding this comment

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

shouldn't happen twice, better to fix this later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Is this related to how many listeners in the referenced Gateway?

@arkodg arkodg added this to the v1.5.0-rc.1 Release milestone Jul 9, 2025
@zirain zirain force-pushed the clustertrustbundles branch from 413a440 to 35e58fb Compare July 10, 2025 08:44
@zirain zirain requested a review from zhaohuabing July 10, 2025 23:25
zirain added 2 commits July 22, 2025 23:55
Signed-off-by: zirain <zirain2009@gmail.com>
Signed-off-by: zirain <zirain2009@gmail.com>
@zirain zirain force-pushed the clustertrustbundles branch from d35fcfd to daee39f Compare July 22, 2025 16:11
// ClusterTrustBundle related indexers
clusterTrustBundleBackendIndex = "clusterTrustBundleBackendIndex"
clusterTrustBundleBtlsIndex = "clusterTrustBundleBtlsIndex"
clusterTrustBundlerCtpIndex = "clusterTrustBundlerCtpIndex"
Copy link
Contributor

@arkodg arkodg Jul 22, 2025

Choose a reason for hiding this comment

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

Suggested change
clusterTrustBundlerCtpIndex = "clusterTrustBundlerCtpIndex"
clusterTrustBundleCtpIndex = "clusterTrustBundleCtpIndex"

@arkodg
Copy link
Contributor

arkodg commented Jul 22, 2025

thanks @zirain, one minor comment, else LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants