builder

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 49 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIIdentitiesSchema *apisv1alpha1.APIResourceSchema

APIIdentitiesSchema is the APIResourceSchema for admin.kcp.io/v1alpha1 APIIdentities, derived from the embedded CRD manifest.

View Source
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.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL