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: wrong endpoint for LoadBalancer type service #4729

Merged
merged 3 commits into from Sep 16, 2022

Conversation

chivalryq
Copy link
Member

Signed-off-by: Qiaozp qiaozhongpei.qzp@alibaba-inc.com

Description of your changes

When service type is LoadBalancer, the actual exposed port is port.nodePort in status. per https://kubernetes.io/docs/reference/kubernetes-api/service-resources/service-v1/#ServiceSpec

Test:

image

image

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

@chivalryq chivalryq added the backport release-1.5 add this label will automatically backport this PR to release-1.5 branch label Sep 14, 2022
@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Base: 45.93% // Head: 60.56% // Increases project coverage by +14.62% 🎉

Coverage data is based on head (145ea3a) compared to base (682c76b).
Patch coverage: 50.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4729       +/-   ##
===========================================
+ Coverage   45.93%   60.56%   +14.62%     
===========================================
  Files         318      321        +3     
  Lines       31291    31614      +323     
===========================================
+ Hits        14375    19147     +4772     
+ Misses      14640     9974     -4666     
- Partials     2276     2493      +217     
Flag Coverage Δ
apiserver-e2etests 29.52% <0.00%> (+<0.01%) ⬆️
apiserver-unittests 40.49% <100.00%> (+0.02%) ⬆️
core-unittests 54.97% <100.00%> (?)
e2e-multicluster-test 19.75% <0.00%> (-0.04%) ⬇️
e2e-rollout-tests 21.58% <0.00%> (-0.02%) ⬇️
e2etests 27.44% <0.00%> (-0.06%) ⬇️

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

Impacted Files Coverage Δ
pkg/velaql/providers/query/types/type.go 5.88% <0.00%> (-0.79%) ⬇️
pkg/velaql/providers/query/endpoint.go 71.59% <100.00%> (ø)
pkg/apiserver/event/sync/worker.go 78.84% <0.00%> (-3.85%) ⬇️
pkg/apiserver/event/sync/cr2ux.go 50.00% <0.00%> (-3.23%) ⬇️
pkg/apiserver/domain/service/workflow.go 53.05% <0.00%> (-1.75%) ⬇️
...server/infrastructure/datastore/kubeapi/kubeapi.go 63.49% <0.00%> (-1.15%) ⬇️
pkg/apiserver/event/sync/store.go 71.33% <0.00%> (-0.67%) ⬇️
...dev/v1alpha2/application/application_controller.go 84.43% <0.00%> (-0.30%) ⬇️
pkg/webhook/common/rollout/rollout_plan.go 36.84% <0.00%> (ø)
pkg/workflow/providers/time/date.go 100.00% <0.00%> (ø)
... and 140 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@barnettZQG barnettZQG left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>

Fix test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>

fix test

Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
Signed-off-by: Qiaozp <qiaozhongpei.qzp@alibaba-inc.com>
@github-actions
Copy link

Successfully created backport PR #4738 for release-1.5.

barnettZQG added a commit to barnettZQG/kubevela that referenced this pull request Oct 21, 2022
)

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Somefive pushed a commit that referenced this pull request Oct 22, 2022
)

* Chore: wrong endpoint for LoadBalancer type service(revert #4729)

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* Fix: change the unit test

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
github-actions bot pushed a commit that referenced this pull request Oct 22, 2022
Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 92ed75c)
wonderflow pushed a commit that referenced this pull request Oct 22, 2022
…rvice(revert #4729) (#4906)

* Chore: wrong endpoint for LoadBalancer type service(revert #4729)

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 92ed75c)

* Fix: change the unit test

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
(cherry picked from commit 7985353)

Co-authored-by: barnettZQG <barnett.zqg@gmail.com>
tangoliu pushed a commit to tangoliu/kubevela that referenced this pull request Oct 27, 2022
) (kubevela#4902)

* Chore: wrong endpoint for LoadBalancer type service(revert kubevela#4729)

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

* Fix: change the unit test

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>

Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
Signed-off-by: tangoliu <ltg1019@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-1.5 add this label will automatically backport this PR to release-1.5 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants