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

kubernetes: support custom cluster dns domain #1375

Merged
merged 2 commits into from
Apr 29, 2023

Conversation

zirain
Copy link
Contributor

@zirain zirain commented Apr 28, 2023

What type of PR is this?

What this PR does / why we need it:

kubernetes: support custom cluster dns domain

Which issue(s) this PR fixes:

Fixes #1280

zirain added 2 commits April 28, 2023 11:28
Signed-off-by: hejianpeng <[email protected]>
@zirain zirain added the provider/kubernetes Issues related to the Kubernetes provider label Apr 28, 2023
@zirain zirain requested a review from a team as a code owner April 28, 2023 06:15
@codecov
Copy link

codecov bot commented Apr 28, 2023

Codecov Report

Merging #1375 (8120c2b) into main (24df11e) will increase coverage by 0.19%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##             main    #1375      +/-   ##
==========================================
+ Coverage   62.27%   62.47%   +0.19%     
==========================================
  Files          78       78              
  Lines       10946    10949       +3     
==========================================
+ Hits         6817     6840      +23     
+ Misses       3676     3660      -16     
+ Partials      453      449       -4     
Impacted Files Coverage Δ
internal/xds/translator/runner/runner.go 70.00% <0.00%> (ø)
internal/cmd/egctl/translate.go 81.73% <100.00%> (+0.05%) ⬆️
internal/crypto/certgen.go 76.31% <100.00%> (ø)
internal/envoygateway/config/config.go 80.70% <100.00%> (+0.34%) ⬆️
...al/infrastructure/kubernetes/ratelimit/resource.go 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

@@ -244,7 +253,7 @@ func TestTranslateXdsWithExtension(t *testing.T) {
ir := requireXdsIRFromInputTestData(t, "extension-xds-ir", tc.name+".yaml")
tr := &Translator{
GlobalRateLimit: &GlobalRateLimitSettings{
ServiceURL: ratelimit.GetServiceURL("envoy-gateway-system"),
ServiceURL: ratelimit.GetServiceURL("envoy-gateway-system", "cluster.local"),
Copy link
Member

Choose a reason for hiding this comment

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

maybe use DefaultDNSDomain is better

Copy link
Contributor Author

@zirain zirain Apr 28, 2023

Choose a reason for hiding this comment

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

it's ok in a test.

@arkodg arkodg merged commit 642a4d4 into envoyproxy:main Apr 29, 2023
@zirain zirain deleted the cluster-domain branch April 29, 2023 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider/kubernetes Issues related to the Kubernetes provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

chore: support custom trust domain
3 participants