-
Notifications
You must be signed in to change notification settings - Fork 3
Edit YAMLs of MCP resources #323
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements YAML editing functionality for MCP (Managed Control Plane) resources, enabling users to edit Kubernetes resource configurations directly through a YAML editor interface.
Key changes include:
- Enhanced YamlEditor component with edit mode, validation, and apply functionality
- New utility function to convert Kubernetes resources to clean configuration format
- Integration of YAML editing capabilities into resource management components
- Added edit actions to resource tables with confirmation workflows
Reviewed Changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/utils/convertToResourceConfig.ts | New utility to convert Kubernetes resources to clean manifest format by removing server-managed fields |
src/utils/convertToResourceConfig.spec.ts | Comprehensive test coverage for the resource conversion utility |
src/lib/api/types/crossplane/handleResourcePatch.ts | New API handler for patching Kubernetes resources via server API |
src/lib/api/types/crate/createManagedControlPlane.ts | Refactored component naming and variable names for better clarity |
src/components/YamlEditor/YamlEditor.tsx | Enhanced YAML editor with edit mode, validation, and apply functionality |
src/components/YamlEditor/YamlDiffEditor.tsx | Updated diff editor options and variable naming |
src/components/Yaml/*.tsx | Updated YAML viewing components to support edit mode and patch workflows |
src/components/ControlPlane/*.tsx | Added edit actions and YAML editing integration to resource management tables |
public/locales/en.json | Added translations for new edit functionality and error messages |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM :)
What this PR does / why we need it:
Feature to allow users edit resources inside MCP by editing YAML config files.