pkg/

directory
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

Directories

Path Synopsis
clusterannotation
Package clusterannotation provides helpers to stamp the authoritative logicalcluster.AnnotationKey (kcp.io/cluster) annotation onto objects before they are handed to provider-defined admission webhooks and admission policies.
Package clusterannotation provides helpers to stamp the authoritative logicalcluster.AnnotationKey (kcp.io/cluster) annotation onto objects before they are handed to provider-defined admission webhooks and admission policies.
globalwebhook
Package globalwebhook implements a GLOBAL, cluster-aware validating admission webhook: a single ValidatingWebhookConfiguration, supplied to the shard at startup (via --admission-control-config-file, this plugin's config section), that fires for requests in EVERY logical cluster - without a per-workspace WebhookConfiguration object, and tamper-proof against workspace admins.
Package globalwebhook implements a GLOBAL, cluster-aware validating admission webhook: a single ValidatingWebhookConfiguration, supplied to the shard at startup (via --admission-control-config-file, this plugin's config section), that fires for requests in EVERY logical cluster - without a per-workspace WebhookConfiguration object, and tamper-proof against workspace admins.
Package apiidentity derives the APIIdentity view from APIExports.
Package apiidentity derives the APIIdentity view from APIExports.
apis module
shardpaths
Package shardpaths declares the set of HTTP paths that are served by a shard (or the cache server) as shard-wide resources and must not be reachable via a workspace-scoped URL such as /clusters/<ws>/<path> or /services/cache/shards/<sh>/clusters/<ws>/<path>.
Package shardpaths declares the set of HTTP paths that are served by a shard (or the cache server) as shard-wide resources and must not be reachable via a workspace-scoped URL such as /clusters/<ws>/<path> or /services/cache/shards/<sh>/clusters/<ws>/<path>.
cache
client module
Package contextmanager simulates multiple-parent contexts with sticky cancellation.
Package contextmanager simulates multiple-parent contexts with sticky cancellation.
etcdtest
Package etcdtest provides in-memory fakes of etcd client interfaces for unit tests.
Package etcdtest provides in-memory fakes of etcd client interfaces for unit tests.
indextest
Package indextest provides a test double for index.Index.
Package indextest provides a test double for index.Index.
Package logging supplies common constants to ensure consistent use of structured logs.
Package logging supplies common constants to ensure consistent use of structured logs.
json
Package json exists solely to change the date formatting in the JSON log output, which Kubernetes hardcodes to be float-based UNIX timestamps, but which we want as much more useful ISO 8601 date strings.
Package json exists solely to change the date formatting in the JSON log output, which Kubernetes hardcodes to be float-based UNIX timestamps, but which we want as much more useful ISO 8601 date strings.
Package mounts holds helpers shared by the components that handle workspace mounts: admission, the mounts controller, the index and the proxies that forward requests to a mount target.
Package mounts holds helpers shared by the components that handle workspace mounts: admission, the mounts controller, the index and the proxies that forward requests to a mount target.
Package pproflabels attaches pprof labels to goroutines so that profiles and goroutine dumps remain attributable to the controller and logical cluster that own them.
Package pproflabels attaches pprof labels to goroutines so that profiles and goroutine dumps remain attributable to the controller and logical cluster that own them.
Package proxy provides a reverse proxy that accepts client certificates and forwards Common Name and Organizations to backend API servers in HTTP headers.
Package proxy provides a reverse proxy that accepts client certificates and forwards Common Name and Organizations to backend API servers in HTTP headers.
authheaders
Package authheaders contains helpers for stamping the request-header identity headers (X-Remote-User / X-Remote-Group / X-Remote-Extra-*) that kcp proxies use to forward an authenticated identity to a backend shard or virtual workspace.
Package authheaders contains helpers for stamping the request-header identity headers (X-Remote-User / X-Remote-Group / X-Remote-Extra-*) that kcp proxies use to forward an authenticated identity to a backend shard or virtual workspace.
reconciler
cache/apiexportreference
Package apiexportreference keeps a ClusterCachedResource for every object an APIExport points at.
Package apiexportreference keeps a ClusterCachedResource for every object an APIExport points at.
core/shard
Package shard runs on every shard and maintains the status of the shard's own authoritative Shard object in the local system:shard logical cluster.
Package shard runs on every shard and maintains the status of the shard's own authoritative Shard object in the local system:shard logical cluster.
core/shardrepresentation
Package shardrepresentation runs on the shard hosting the root workspace and mirrors the cache server's view of Shard objects - the same source the Admin workspace serves - into the root workspace as read-only representations.
Package shardrepresentation runs on the shard hosting the root workspace and mirrors the cache server's view of Shard objects - the same source the Admin workspace serves - into the root workspace as read-only representations.
migration/logicalclustermigration
Package logicalclustermigration implements migrating logical clusters between shards.
Package logicalclustermigration implements migrating logical clusters between shards.
Package shardlookup provides primitives to let shards lookup objects regardless of if they are on logical clusters on the local shard or in logical clusters on remote shards.
Package shardlookup provides primitives to let shards lookup objects regardless of if they are on logical clusters on the local shard or in logical clusters on remote shards.
virtual
admin
Package admin provides the Admin workspace: a virtual workspace served at /services/admin on every shard, exposing installation-wide administrative views.
Package admin provides the Admin workspace: a virtual workspace served at /services/admin on every shard, exposing installation-wide administrative views.
apiresourceschema
Package apiresourceschema provides a virtual workspace that exposes APIResourceSchemas for all APIBindings in a given workspace.
Package apiresourceschema provides a virtual workspace that exposes APIResourceSchemas for all APIBindings in a given workspace.
initializingworkspaces
Package initializingworkspaces and its sub-packages provide the Initializing Workspace Virtual Workspace.
Package initializingworkspaces and its sub-packages provide the Initializing Workspace Virtual Workspace.
migratingworkspaces
Package migratingworkspaces provides a virtual workspace that allows other shards to bypass the front-proxy to pull data of a logical cluster to be migrated directly from the origin shard.
Package migratingworkspaces provides a virtual workspace that allows other shards to bypass the front-proxy to pull data of a logical cluster to be migrated directly from the origin shard.
replication
Package replication and its sub-packages provide the Replication Virtual Workspace.
Package replication and its sub-packages provide the Replication Virtual Workspace.
shared
Package shared contains helpers reused by the initializing and terminating workspace virtual workspaces.
Package shared contains helpers reused by the initializing and terminating workspace virtual workspaces.
terminatingworkspaces
Package terminatingworkspaces and its sub-packages provide the Terminating Workspace Virtual Workspace.
Package terminatingworkspaces and its sub-packages provide the Terminating Workspace Virtual Workspace.

Jump to

Keyboard shortcuts

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