Handle unavailable NORMAN.CLUSTER when MCM disabled #16329
Draft
+73
−26
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
Fixes #15491
When
multi-cluster-management=false, the/v3/cluster(NORMAN.CLUSTER) schema is unavailable, causing "Unknown schema for type: cluster" errors in cluster badge/appearance dialogs and Fleet operations.Occurred changes and/or fixed issues
Cluster Badge/Appearance - Primary fix
AddCustomBadgeDialog.vuenow usesMANAGEMENT.CLUSTERinstead ofNORMAN.CLUSTERfor badge annotationsMANAGEMENT.CLUSTERis always available regardless of MCM statusFleet Operations - Defensive handling
Provisioning Cluster - Defensive handling
findNormanCluster()returns null when schema missingTechnical notes summary
The root cause: NORMAN.CLUSTER is the legacy Norman API resource (
/v3/cluster), while MANAGEMENT.CLUSTER is the Steve/k8s resource (management.cattle.io.cluster). Badge annotations exist on both, but only MANAGEMENT.CLUSTER is guaranteed to be available.Pattern for defensive checks:
Areas or cases that should be tested
MCM disabled: Start Rancher with
--features=multi-cluster-management=falseMCM enabled (default): Verify existing functionality unchanged
Test with Global Roles: Admin, Standard User, User Base
Areas which could experience regressions
fleetCluster.normanorprovisioningCluster.findNormanCluster()Screenshot/Video
Before: Shows "Unknown schema for type: cluster" error in cluster appearance dialog when MCM disabled
After: Dialog functions correctly, saves to MANAGEMENT.CLUSTER
Checklist
Admin,Standard UserandUser BaseOriginal prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.