aggregatingcrdversiondiscovery

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

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.Config
	Extra   ExtraConfig
}

func NewConfig

func NewConfig(
	cfg *genericapiserver.Config,

	dynamicRESTMapper *dynamicrestmapper.DynamicRESTMapper,

	dynamicClusterClient kcpdynamic.ClusterInterface,
	vwClientConfig *rest.Config,
	shardName string,
	shardVirtualWorkspaceURLGetter func() string,

	crdLister kcpapiextensionsv1informers.CustomResourceDefinitionClusterInformer,
	apiBindingAwareCRDLister apiextensionsapiserverkcp.ClusterAwareCRDClusterLister,
	apiBindingInformer apisv1alpha2informers.APIBindingClusterInformer,
	localAPIExportInformer apisv1alpha2informers.APIExportClusterInformer,
	globalAPIExportInformer apisv1alpha2informers.APIExportClusterInformer,
	globalShardClusterInformer corev1alpha1informers.ShardClusterInformer,
) (*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 {
	DynamicRESTMapper *dynamicrestmapper.DynamicRESTMapper

	CRDLister                  kcpapiextensionsv1informers.CustomResourceDefinitionClusterInformer
	APIBindingAwareCRDLister   apiextensionsapiserverkcp.ClusterAwareCRDClusterLister
	APIBindingInformer         apisv1alpha2informers.APIBindingClusterInformer
	APIBindingLister           apisv1alpha2listers.APIBindingClusterLister
	LocalAPIExportInformer     apisv1alpha2informers.APIExportClusterInformer
	GlobalAPIExportInformer    apisv1alpha2informers.APIExportClusterInformer
	GlobalShardClusterInformer corev1alpha1informers.ShardClusterInformer

	DynamicClusterClient kcpdynamic.ClusterInterface
	VWClientConfig       *rest.Config

	ShardName                      string
	ShardVirtualWorkspaceURLGetter func() string
}

type Server

type Server struct {
	GenericAPIServer *genericapiserver.GenericAPIServer
	Extra            *ExtraConfig
	// contains filtered or unexported fields
}

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