metal3: Add Metal3Cluster and Metal3ClusterTemplate views#899
Open
mastermaxx03 wants to merge 3 commits into
Open
metal3: Add Metal3Cluster and Metal3ClusterTemplate views#899mastermaxx03 wants to merge 3 commits into
mastermaxx03 wants to merge 3 commits into
Conversation
Contributor
Author
This was referenced Jul 10, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Extends the metal3 Headlamp plugin with additional Cluster API (CAPM3) infrastructure resources, adding list/detail pages and wiring them into the Metal3 sidebar group for easier navigation while developing/testing locally.
Changes:
- Add Metal3Cluster + Metal3ClusterTemplate list and detail views (including provisioned status and control plane endpoint).
- Add Metal3Machine + Metal3MachineTemplate list and detail views, including hostSelector formatting + unit tests.
- Expand the Metal3 sidebar group with new entries and add sample manifests for local testing.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| metal3/src/index.tsx | Adds new Metal3 sidebar entries and routes for machines/clusters and their templates. |
| metal3/src/Metal3Cluster/List.tsx | Implements Metal3Cluster list view with Provisioned/Endpoint/Cluster columns. |
| metal3/src/Metal3Cluster/Details.tsx | Implements Metal3Cluster detail view (provisioned, endpoint, cluster label, cloud provider flag). |
| metal3/src/Metal3ClusterTemplate/List.tsx | Implements Metal3ClusterTemplate list view showing cloud provider enabled setting. |
| metal3/src/Metal3ClusterTemplate/Details.tsx | Implements Metal3ClusterTemplate detail view for the cloud provider enabled setting. |
| metal3/src/Metal3Machine/List.tsx | Implements Metal3Machine list view with Provisioned/ProviderID/Cluster columns. |
| metal3/src/Metal3Machine/Details.tsx | Implements Metal3Machine detail view including image and claimed BareMetalHost annotation. |
| metal3/src/Metal3MachineTemplate/List.tsx | Implements Metal3MachineTemplate list view (nodeReuse, image, hostSelector). |
| metal3/src/Metal3MachineTemplate/Details.tsx | Implements Metal3MachineTemplate detail view (hostSelector, nodeReuse, image, cleaning mode, data template). |
| metal3/src/Metal3MachineTemplate/hostSelector.ts | Adds helper to format a hostSelector into a stable one-line summary. |
| metal3/src/Metal3MachineTemplate/hostSelector.test.ts | Adds vitest unit coverage for hostSelector formatting behavior. |
| metal3/test-files/metal3cluster.yaml | Adds sample Metal3Cluster/Metal3ClusterTemplate objects for local testing. |
| metal3/test-files/metal3machine.yaml | Adds sample Metal3Machine/Metal3MachineTemplate objects for local testing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
3f70ca8 to
f3282f6
Compare
f3282f6 to
0b3d588
Compare
…iews Signed-off-by: mastermaxx03 <srivastavaanimesh22@gmail.com>
…ies and routes Signed-off-by: mastermaxx03 <srivastavaanimesh22@gmail.com>
Signed-off-by: mastermaxx03 <srivastavaanimesh22@gmail.com>
0b3d588 to
890fa47
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Continues the Metal3 plugin. Adds Metal3Cluster and Metal3ClusterTemplate to the Metal3 section, the CAPM3 resources for the cluster side of a Cluster API cluster on bare metal. More resources and a map view to follow.
Included
How to test