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

feat: full kubernetes addr #489

Merged
merged 6 commits into from
Aug 7, 2023
Merged

feat: full kubernetes addr #489

merged 6 commits into from
Aug 7, 2023

Conversation

Gogomoe
Copy link
Contributor

@Gogomoe Gogomoe commented Aug 3, 2023

What's changed and what's your intention?

Now the address of components (e.g. meta. compute) is [<pod>.]<service>.
This pr add a flag EnableFullKubernetesAddr in RisingWave CRD. If's enabled, operator will use a full k8s address ([<pod>.]<service>.<namespace>.svc) instead.

It's useful if we need to call risectl at another namespace. (risectl uses the meta advertise address to connect meta. In the previous address format, the connection cannot be established in a different namespace.)

Tested it locally.

image

Checklist

  • I have written the necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

@Gogomoe Gogomoe requested a review from arkbriar August 3, 2023 09:07
@codecov
Copy link

codecov bot commented Aug 4, 2023

Codecov Report

Merging #489 (ac22a07) into main (5bd9701) will increase coverage by 0.01%.
The diff coverage is 82.14%.

@@            Coverage Diff             @@
##             main     #489      +/-   ##
==========================================
+ Coverage   67.67%   67.69%   +0.01%     
==========================================
  Files          27       27              
  Lines        4210     4228      +18     
==========================================
+ Hits         2849     2862      +13     
- Misses       1312     1316       +4     
- Partials       49       50       +1     
Flag Coverage Δ
unittests 67.69% <82.14%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
pkg/controller/meta_pod_role_labeler.go 0.00% <0.00%> (ø)
pkg/webhook/risingwave_validating_webhook.go 94.57% <ø> (ø)
pkg/factory/risingwave_object_factory.go 89.47% <88.46%> (-0.10%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Collaborator

@arkbriar arkbriar left a comment

Choose a reason for hiding this comment

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

Others LGTM!

Comment on lines 189 to 192
// TODO according to @arkbriar, update compute advertise-addr may cause compatibility issue
if component == consts.ComponentCompute {
return componentName
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's okay since the default value of isFullKubernetesAddr is false.

Copy link
Collaborator

@arkbriar arkbriar Aug 4, 2023

Choose a reason for hiding this comment

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

Just remove this if-block and let the users know that enableFullKubernetesAddr will cause incompatibility.

@Gogomoe Gogomoe added this pull request to the merge queue Aug 7, 2023
Merged via the queue into main with commit 10771c8 Aug 7, 2023
8 checks passed
@Gogomoe Gogomoe deleted the chuan/feat_full_addr branch August 7, 2023 07:45
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.

2 participants