Repository navigation
Call v2 GetClusterIdentity, fall back to v1 on 404 - #689
Merged
Merged
Conversation
ArnobKumarSaha
force-pushed
the
arnob-v2-identity
branch
from
November 29, 2026 10:33
a4aa208 to
7495e78
Compare
IAM v2_only platforms do not mount GET /api/v1/clustersv2/identity, so Identify returned 404 and kube-ui-server exited at startup. Call the akp.cluster.v2.ClusterService/GetClusterIdentity Connect procedure first and use the v1 route only when the platform has no v2 API. Signed-off-by: Arnob Kumar Saha <arnob@appscode.com> Signed-off-by: Arnob kumar saha <arnob@appscode.com>
ArnobKumarSaha
force-pushed
the
arnob-v2-identity
branch
from
November 29, 2026 10:35
7495e78 to
385e204
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.
kube-ui-server v0.10.0 crash-loops against a platform in IAM
v2_onlymode:IdentifycallsGET /api/v1/clustersv2/identity/:uid, which v2_only does not mount (b3routers/api/v1/testdata/routes.golden:M GET /v1/clustersv2/identity/:clusterID), so it gets 404 and the server exits.Identifynow calls the Connect procedurePOST /api/v2/akp.cluster.v2.ClusterService/GetClusterIdentity({"clusterUid": ...}) and maps{"identity": {...}}(protojson names:ownerId,managerId,hubClusterId,license.orgId) tokmapi.ClusterMetadata./api/v2/clusters/{uid}/identity), so it works whether or not b3's[rest]toggle is on.Not covered:
GetToken(/api/v1/agent/.../token) and audit register (/api/v1/register) are also v1-only routes in b3.