feat: Added a create resource function in Kube Panel #4282
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π€ Generated by Copilot at 5988350
Summary
πππ οΈ
This pull request adds and improves the functionality of creating Kubernetes resources from YAML data in the kubepanel plugin. It adds new frontend and backend modules for making and handling API requests, new YAML templates for different resource types, and new UI components for editing and displaying YAML data. It also refactors some existing code for better quality and consistency, and reorganizes the file structure for clarity.
Walkthrough
@monaco-editor/react
dependency to use the Monaco code editor for YAML files in the frontend (link)antd
dependency to the latest version for the UI library (link)fs
dependency to read YAML templates from the public folder in the backend (link)kube-object
folder (link, link, link, link, link, link)Input.TextArea
component with theEditor
component from@monaco-editor/react
to display and edit the YAML data of the ConfigMap resource (link)