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: multicluster vela status/exec/port-forward #2662

Merged
merged 5 commits into from
Nov 9, 2021

Conversation

Somefive
Copy link
Collaborator

@Somefive Somefive commented Nov 8, 2021

Description of your changes

Support exec for pods in remote cluster. Support port-forward for workloads/service in remote cluster. Continue from #2658.

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

@codecov
Copy link

codecov bot commented Nov 8, 2021

Codecov Report

Merging #2662 (462edb0) into master (fede223) will decrease coverage by 0.06%.
The diff coverage is 4.76%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2662      +/-   ##
==========================================
- Coverage   61.72%   61.66%   -0.07%     
==========================================
  Files         181      183       +2     
  Lines       17537    17703     +166     
==========================================
+ Hits        10825    10916      +91     
- Misses       5536     5607      +71     
- Partials     1176     1180       +4     
Flag Coverage Δ
apiserver-unittests 11.17% <7.14%> (-0.06%) ⬇️
core-unittests 55.27% <5.55%> (+0.28%) ⬆️
e2e-multicluster-test 24.01% <4.76%> (+0.34%) ⬆️
e2e-rollout-tests 32.09% <4.76%> (-0.07%) ⬇️
e2etests 37.51% <4.76%> (-0.47%) ⬇️

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

Impacted Files Coverage Δ
pkg/clustermanager/cluster_manager.go 8.33% <0.00%> (-0.44%) ⬇️
pkg/multicluster/proxy.go 34.48% <0.00%> (-13.14%) ⬇️
pkg/utils/common/common.go 47.71% <7.14%> (+2.61%) ⬆️
pkg/utils/apply/apply.go 84.69% <0.00%> (-2.05%) ⬇️
pkg/workflow/providers/oam/apply.go 70.00% <0.00%> (-1.43%) ⬇️
pkg/appfile/appfile.go 76.06% <0.00%> (-0.34%) ⬇️
pkg/controller/utils/capability.go 80.51% <0.00%> (ø)
apis/core.oam.dev/v1alpha1/envbinding_types.go 0.00% <0.00%> (ø)
pkg/workflow/step/generator.go 100.00% <0.00%> (ø)
pkg/policy/envbinding/patch.go 65.43% <0.00%> (+0.09%) ⬆️
... and 9 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fede223...462edb0. Read the comment docs.

Copy link
Collaborator

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

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

LGTM, please fix CI

@Somefive Somefive changed the title Feat: multicluster vela exec Feat: multicluster vela status/exec/port-forward Nov 9, 2021
Comment on lines +59 to +61
endpoint := string(clusterSecret.Data["endpoint"])
if endp, ok := clusterSecret.GetLabels()[v1alpha1.LabelKeyClusterEndpointType]; ok {
endpoint = endp
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do we have two sources for endpoint?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ClusterGateway undergoes a version update which means we need to support backward-compatibility.

Copy link
Collaborator

@zzxwill zzxwill left a comment

Choose a reason for hiding this comment

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

/lgtm

@Somefive Somefive merged commit f3899e3 into kubevela:master Nov 9, 2021
@Somefive Somefive deleted the fix_vela_exec branch November 9, 2021 11:08
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.

4 participants