Skip to content

[WIP]: Cluster-Api: Map Improvements#577

Draft
ChayanDass wants to merge 12 commits intoheadlamp-k8s:mainfrom
ChayanDass:map
Draft

[WIP]: Cluster-Api: Map Improvements#577
ChayanDass wants to merge 12 commits intoheadlamp-k8s:mainfrom
ChayanDass:map

Conversation

@ChayanDass
Copy link
Copy Markdown
Contributor

@ChayanDass ChayanDass commented Mar 25, 2026

  1. image
image

@ChayanDass ChayanDass changed the title [WIP]: Map Improvements [WIP]: Cluster-Api: Map Improvements Mar 25, 2026
@ChayanDass ChayanDass marked this pull request as draft March 25, 2026 22:02
… handling

- Introduced new interfaces for conditions and node information to improve type safety.
- Updated MachineStatus interfaces to support both v1beta1 and v1beta2 formats.
- Enhanced getMachineStatus and getMachineConditions functions for better condition retrieval.
- Added failure handling methods to retrieve failure reasons and messages from Machine status.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…ity and add version display

- Simplified phase and readiness condition handling in MachineListRenderer.
- Introduced a new 'Version' column to display machine version information.
- Enhanced useMemo for VersionedMachine instantiation to maintain clarity.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…tatus information

- Refactored getMachineRole function for improved clarity.
- Added Bootstrap Ready and Infrastructure Ready status indicators in MachineDetail.
- Introduced new sections for displaying machine addresses and node information using SimpleTable.
- Updated VersionedMachine instantiation to handle undefined namespace more gracefully.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…hine instantiation

- Updated the logic for creating VersionedMachine to handle undefined version more clearly.
- Improved readability by consolidating the version check and instantiation into a single useMemo call.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…bility

- Introduced a new type `ReplicaOwner` to unify the handling of various replica-related components.
- Simplified the `showReplicas` and `renderReplicas` functions for better clarity and efficiency.
- Enhanced the logic for rendering replica values, ensuring consistent handling of undefined states.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…tatus handling

- Introduced new interfaces for MachineSet specifications and statuses to improve type safety and clarity.
- Updated the MachineSet class to support both v1beta1 and v1beta2 formats, including enhanced condition retrieval methods.
- Added utility functions for accessing MachineSet status, conditions, and failure information.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…nce error handling

- Refactored the MachineSetDetail component to improve clarity and type safety.
- Introduced new interfaces for handling MachineSet references and detail content.
- Enhanced error handling with user-friendly messages for loading failures.
- Added loading and empty state indicators to improve user experience.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
… handling and loading state

- Refactored MachineSetsList to utilize a new data component for better type safety and clarity.
- Added loading state handling to display a loader while detecting the Cluster API version.
- Enhanced status display for MachineSets, including desired, ready, available, up-to-date, and paused states with appropriate labels.
- Improved rendering logic for cluster links and status indicators.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…larity and type safety

- Simplified the getStoredVersionFromCrd function to directly utilize the CustomResourceDefinition type.
- Enhanced the logic to return the main API version more efficiently.
- Updated useCapiApiVersion to streamline version retrieval and error handling.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
… for improved readability.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
@ChayanDass ChayanDass force-pushed the map branch 2 times, most recently from 3941261 to d50581d Compare March 26, 2026 18:25
…ration

- Added a new mapView component to manage resource mapping and details.
- Refactored resource registration to utilize the new clusterApiSource for improved organization.
- Updated glance tooltips for various components to enhance user experience.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
…display

- Introduced a new MachineGlance component to provide a concise overview of machine status, including cluster name, readiness, and IP addresses.
- Exported getPhaseStatus function for broader accessibility in status handling.

Signed-off-by: Chayan Das <01chayandas@gmail.com>
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.

1 participant