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

Implement dubboctl dashboard subcmd #1197

Merged
merged 63 commits into from
Jul 14, 2023

Conversation

DMwangnima
Copy link

@DMwangnima DMwangnima commented Jul 12, 2023

What is the purpose of the change

For simplifying port-forward operation and opening component dashboard in browser directly, implement dashboard subcommand.
eg: dubboctl dashboard grafana
It would create k8s PortForwarder and listen on localhost:3000 automatically. Then it opens grafana dashboard in browser.
Now it supports Admin, Grafana, Nacos, Prometheus, Skywalking, Zipkin.(Zookeeper doesn't have embedded dashboard)

Brief changelog

See /pkg/dubboctl/cmd/subcmd/dashboard_all_cmds. I do not create individual file for every component such as dashboard_grafana cause processing logic for every component is similar. So I aggregate all subcmds about dashboard.

Verifying this change

dubboctl manifest install
dubboctl dashboard grafana

@codecov-commenter
Copy link

Codecov Report

Merging #1197 (3814324) into refactor-with-go (cf1c91b) will decrease coverage by 0.73%.
The diff coverage is 14.15%.

@@                 Coverage Diff                  @@
##           refactor-with-go    #1197      +/-   ##
====================================================
- Coverage             49.47%   48.74%   -0.73%     
====================================================
  Files                    95       97       +2     
  Lines                  5114     5217     +103     
  Branches                 41       41              
====================================================
+ Hits                   2530     2543      +13     
- Misses                 2325     2415      +90     
  Partials                259      259              
Impacted Files Coverage Δ
dubbo-admin-ui/src/api/menu.js 0.00% <ø> (ø)
dubbo-admin-ui/src/components/ServiceDetail.vue 0.00% <ø> (ø)
dubbo-admin-ui/src/components/apiDocs/ApiForm.vue 0.00% <ø> (ø)
dubbo-admin-ui/src/components/public/AceEditor.vue 0.00% <ø> (ø)
...ubbo-admin-ui/src/components/public/Breadcrumb.vue 0.00% <ø> (ø)
dubbo-admin-ui/src/components/public/Drawer.vue 0.00% <ø> (ø)
dubbo-admin-ui/src/router/index.js 0.00% <ø> (ø)
dubbo-admin-ui/src/util/index.js 0.00% <ø> (ø)
pkg/dubboctl/internal/kube/client.go 48.20% <ø> (ø)
pkg/dubboctl/internal/kube/common.go 35.00% <0.00%> (-9.45%) ⬇️
... and 4 more

... and 2 files with indirect coverage changes

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

@sonarcloud
Copy link

sonarcloud bot commented Jul 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Contributor

@chickenlj chickenlj left a comment

Choose a reason for hiding this comment

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

LGTM.

@chickenlj chickenlj merged commit f4b3719 into apache:refactor-with-go Jul 14, 2023
4 of 6 checks passed
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