Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var APIIdentitiesSchema *apisv1alpha1.APIResourceSchema
APIIdentitiesSchema is the APIResourceSchema for admin.kcp.io/v1alpha1 APIIdentities, derived from the embedded CRD manifest.
var MutableFields = func() [][]string { paths := make([][]string, 0, len(mutableFields)) for _, f := range mutableFields { paths = append(paths, f.path) } return paths }()
MutableFields are the paths of mutableFields. The replication controller carries exactly these paths back cache -> local as its cache-owned fields.
var ShardsSchema *apisv1alpha1.APIResourceSchema
ShardsSchema is the APIResourceSchema for core.kcp.io/v1alpha1 Shards, derived from the embedded CRD manifest.
Functions ¶
func BuildVirtualWorkspace ¶
func BuildVirtualWorkspace( rootPathPrefix string, cacheDynamicClusterClient kcpdynamic.ClusterInterface, identities *apiidentity.Projector, identitiesSynced func() bool, ) ([]rootapiserver.NamedVirtualWorkspace, error)
BuildVirtualWorkspace builds the Admin workspace virtual workspace. It serves two cache-backed, installation-wide views: every shard's Shard object, writable for the allow-listed operational fields, and the read-only APIIdentity registry.
URL patterns:
/services/admin/apis/core.kcp.io/v1alpha1/shards (plain clients, e.g. kubectl via `ws use :admin`) /services/admin/apis/admin.kcp.io/v1alpha1/apiidentities /services/admin/clusters/<anything>/apis/... (cluster-aware clients; the segment is accepted and ignored)
identitiesSynced reports whether the identity view has seen every APIExport the cache server holds; the workspace is not ready before.
Types ¶
This section is empty.