Skip to content

cluster-api: sidebar fixes - order resources and show icons#550

Merged
illume merged 1 commit intoheadlamp-k8s:mainfrom
ChayanDass:sidebar-fixes
Mar 15, 2026
Merged

cluster-api: sidebar fixes - order resources and show icons#550
illume merged 1 commit intoheadlamp-k8s:mainfrom
ChayanDass:sidebar-fixes

Conversation

@ChayanDass
Copy link
Contributor

Changes

  • Reorder Cluster API sidebar: Clusters first, then Cluster Classes, control plane, worker scaling (MD, Pools, Sets, Machines), bootstrap config, operations

  • Pass icon to registerSidebarEntry for each child so icons appear in sidebar

image

Note: This fixes the visibility of icons; the icon set itself may still need further updates.

@ChayanDass
Copy link
Contributor Author

@illume , PTAL

@sniok
Copy link
Contributor

sniok commented Mar 12, 2026

we usually don't put icons in the second level items since it makes it look quite busy. Maybe we can rework this a bit in the future, remove some margins, make it a bit wider, but right now I think we shouldn't have icons there

- Reorder Cluster API sidebar: Clusters first, then Cluster Classes, control plane, worker scaling (MD, Pools, Sets, Machines), bootstrap config, operations

Signed-off-by: Chayan Das <01chayandas@gmail.com>
Copy link
Contributor

Copilot AI left a 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 adjusts the Cluster API Headlamp plugin’s sidebar organization by reordering the resource registration list so items appear in a more intentional sequence in the UI.

Changes:

  • Reorders clusterApiResources to show Clusters first, then Cluster Classes, followed by control plane and worker-related resources.
  • Moves bootstrap/operational resources (e.g., Kubeadm Configs/Templates, MHCs, Drain Rules) later in the list to match the intended grouping.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@ChayanDass
Copy link
Contributor Author

@illume, PTAL

Copy link
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

🎉 thanks!

@illume illume merged commit 5f74c6f into headlamp-k8s:main Mar 15, 2026
9 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.

4 participants