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: release KubePanel v1.0.0 #4401

Merged
merged 21 commits into from
Dec 13, 2023
Merged

feat: release KubePanel v1.0.0 #4401

merged 21 commits into from
Dec 13, 2023

Conversation

Wishrem
Copy link
Contributor

@Wishrem Wishrem commented Dec 11, 2023

🤖[deprecated] Generated by Copilot at 19a2f08

Summary

🚀🗑️🛠️

Upgraded kubepanel plugin to version 1.0.0 and refactored its API and data fetching logic. Removed react-query dependency and replaced it with custom hook and sealos API. Created new files for handling Kubernetes API endpoints and streaming data. Simplified KubeObjectKind enum and removed unused files.

We are the kubepanel, we control the cluster
We create, update, delete, and watch the resources
We stream the events from the sealos API
We don't need react-query, we have our own destiny

Walkthrough

  • Update the kubepanel plugin version to 1.0.0 and simplify the scripts for linking and unlinking the sealos-desktop-sdk dependency (link, link)
  • Add byline and eventsource as dependencies and @types/byline and @types/eventsource as devDependencies for streaming and parsing server-sent events from the Kubernetes API (link, link, link, link, link, link, link)
  • Remove @tanstack/react-query and its related packages as they are no longer used for data fetching and caching (link, link, link, link, link)
  • Replace the Resources enum and the KindMap object with a single KubeObjectKind enum to simplify the code and avoid duplication of the resource kinds (link)
  • Implement the handler functions for the /api/kubernetes endpoints for creating, deleting, listing, updating, and watching Kubernetes resources using the backend API (link, link, link, link, link, link)
  • Export functions for interacting with the /api/kubernetes endpoints from the frontend/plugins/kubepanel/src/api/kubernetes.ts file (link)
  • Remove the console.log statement from the KubeBadge component (link)
  • Create an empty file for frontend/plugins/kubepanel/src/api/delete.ts, which will be used to implement the delete API for Kubernetes resources (link)
  • Delete the unused files for frontend/plugins/kubepanel/src/api and frontend/plugins/kubepanel/src/pages/api (link, link, link, link, link, link, link)

Copy link

Whoa! Easy there, Partner!

This PR is too big. Please break it up into smaller PRs.

@sealos-ci-robot
Copy link
Member

sealos-ci-robot commented Dec 11, 2023

🤖 Generated by lychee action

Summary

Status Count
🔍 Total 1148
✅ Successful 388
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 759
❓ Unknown 0
🚫 Errors 0

Full action output

Full Github Actions output

Copy link

sweep-ai bot commented Dec 11, 2023

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

Copy link

codecov bot commented Dec 11, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (40e33e0) 65.45% compared to head (17a9005) 65.45%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4401   +/-   ##
=======================================
  Coverage   65.45%   65.45%           
=======================================
  Files           8        8           
  Lines         660      660           
=======================================
  Hits          432      432           
  Misses        180      180           
  Partials       48       48           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zzjin zzjin added this to the v5.0 milestone Dec 11, 2023
@c121914yu c121914yu merged commit a04ca53 into labring:main Dec 13, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants