rootapiserver

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: 27 Imported by: 5 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

This section is empty.

Functions

This section is empty.

Types

type CompletedConfig

type CompletedConfig struct {
	// contains filtered or unexported fields
}

func (CompletedConfig) WithOpenAPIAggregationController

func (c CompletedConfig) WithOpenAPIAggregationController(delegatedAPIServer *genericapiserver.GenericAPIServer) error

type Config

type Config struct {
	Generic *genericapiserver.RecommendedConfig
	Extra   ExtraConfig
}

func NewConfig

func NewConfig(recommendedConfig *genericapiserver.RecommendedConfig) (*Config, error)

func (*Config) Complete

func (c *Config) Complete() CompletedConfig

Complete fills in any fields not set that are required to have valid data. It's mutating the receiver.

type ExtraConfig

type ExtraConfig struct {
	VirtualWorkspaces []NamedVirtualWorkspace
	KcpClusterClient  corev1alpha1informers.LogicalClusterClusterInformer
}

type NamedVirtualWorkspace

type NamedVirtualWorkspace struct {
	Name string
	// Patterns are the http.ServeMux patterns of the paths the virtual
	// workspace serves, e.g.
	// /services/apiexport/{exportCluster}/{exportName}/clusters/{cluster}.
	// At least one is required. A pattern must not end in a wildcard
	// like {trail...}: the framework registers each pattern as is and with
	// a trailing /{trail...} for the kube-like API path.
	// The framework.ClusterWildcard, if present, sets the logical cluster.
	// Virtual workspaces sharing a pattern are tried in order.
	Patterns []string
	framework.VirtualWorkspace
}

NamedVirtualWorkspace is a virtual workspace served at a path pattern.

type Server

type Server struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
}

Server is only responsible for serving the APIs for the virtual workspace at a given root path or root path family It does NOT expose oauth, related oauth endpoints, or any kube APIs.

func NewServer

func NewServer(c CompletedConfig, delegationTarget genericapiserver.DelegationTarget) (*Server, error)

Jump to

Keyboard shortcuts

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