initializers

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: 12 Imported by: 1 module, 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

func NewClusterContextManagerInitializer added in v0.32.4

func NewClusterContextManagerInitializer(mgr *contextmanager.Manager[logicalcluster.Path]) *clusterContextManagerInitializer

func NewDeepSARClientInitializer added in v0.8.0

func NewDeepSARClientInitializer(
	deepSARClient kcpkubernetesclientset.ClusterInterface,
) *clientConfigInitializer

NewDeepSARClientInitializer returns an admission plugin initializer that injects a deep SAR client into admission plugins.

func NewDynamicClusterClientInitializer added in v0.20.0

func NewDynamicClusterClientInitializer(dynamicClusterClient kcpdynamic.ClusterInterface) *dynamicClusterClientInitializer

func NewDynamicRESTMapperInitializer added in v0.30.0

func NewDynamicRESTMapperInitializer(dynamicRESTMapper *dynamicrestmapper.DynamicRESTMapper) *dynamicRESTMapperInitializer

func NewKcpClusterClientInitializer added in v0.6.0

func NewKcpClusterClientInitializer(
	kcpClusterClient kcpclientset.ClusterInterface,
) *kcpClusterClientInitializer

NewKcpClusterClientInitializer returns an admission plugin initializer that injects a kcp cluster client into admission plugins.

func NewKcpInformersInitializer

func NewKcpInformersInitializer(
	local, global kcpinformers.SharedInformerFactory,
) *kcpInformersInitializer

NewKcpInformersInitializer returns an admission plugin initializer that injects both local and global kcp shared informer factories into admission plugins.

func NewKubeClusterClientInitializer added in v0.6.0

func NewKubeClusterClientInitializer(
	kubeClusterClient kcpkubernetesclientset.ClusterInterface,
) *kubeClusterClientInitializer

NewKubeClusterClientInitializer returns an admission plugin initializer that injects a kube cluster client into admission plugins.

func NewKubeInformersInitializer added in v0.11.0

func NewKubeInformersInitializer(
	local, global kcpkubernetesinformers.SharedInformerFactory,
) *kubeInformersInitializer

NewKubeInformersInitializer returns an admission plugin initializer that injects both local and global kube shared informer factories into admission plugins.

func NewKubeQuotaConfigurationInitializer added in v0.7.0

func NewKubeQuotaConfigurationInitializer(quotaConfiguration quota.Configuration) *kubeQuotaConfigurationInitializer

NewKubeQuotaConfigurationInitializer returns an admission plugin initializer that injects quota.Configuration into admission plugins.

func NewObjectCountRegistryInitializer added in v0.33.0

func NewObjectCountRegistryInitializer(registry *objectcount.Registry) *objectCountRegistryInitializer

NewObjectCountRegistryInitializer returns an admission plugin initializer that injects the per-logical-cluster object count registry into admission plugins.

func NewServerShutdownInitializer added in v0.7.0

func NewServerShutdownInitializer(ch <-chan struct{}) *serverShutdownChannelInitializer

NewServerShutdownInitializer returns an admission plugin initializer that injects the server's shutdown channel into admission plugins.

Types

type WantsClusterContextManager added in v0.32.4

type WantsClusterContextManager interface {
	SetClusterContextManager(*contextmanager.Manager[logicalcluster.Path])
}

WantsClusterContextManager interface should be implemented by admission plugins that need a per-logical-cluster context.

type WantsDeepSARClient added in v0.8.0

type WantsDeepSARClient interface {
	SetDeepSARClient(kcpkubernetesclientset.ClusterInterface)
}

WantsDeepSARClient interface should be implemented by admission plugins that want to have a client capable of deep SAR handling. See pkg/authorization.WithDeepSARConfig for details.

type WantsDynamicClusterClient added in v0.20.0

type WantsDynamicClusterClient interface {
	SetDynamicClusterClient(clusterInterface kcpdynamic.ClusterInterface)
}

WantsDynamicClusterClient is an interface that should be implemented by admission plugins that need a dynamic cluster client.

type WantsDynamicRESTMapper added in v0.30.0

type WantsDynamicRESTMapper interface {
	SetDynamicRESTMapper(dynRESTMapper *dynamicrestmapper.DynamicRESTMapper)
}

WantsDynamicRESTMapper is an interface that should be implemented by admission plugins that need the DynamicRESTMapper.

type WantsKcpClusterClient added in v0.6.0

type WantsKcpClusterClient interface {
	SetKcpClusterClient(kcpclientset.ClusterInterface)
}

WantsKcpClusterClient interface should be implemented by admission plugins that want to have a kcp cluster client injected.

type WantsKcpInformers

type WantsKcpInformers interface {
	SetKcpInformers(local, global kcpinformers.SharedInformerFactory)
}

WantsKcpInformers interface should be implemented by admission plugins that want to have both local and global kcp informer factories injected.

type WantsKubeClusterClient added in v0.6.0

type WantsKubeClusterClient interface {
	SetKubeClusterClient(kcpkubernetesclientset.ClusterInterface)
}

WantsKubeClusterClient interface should be implemented by admission plugins that want to have a kube cluster client injected.

type WantsKubeInformers added in v0.11.0

type WantsKubeInformers interface {
	SetKubeInformers(local, global kcpkubernetesinformers.SharedInformerFactory)
}

WantsKubeInformers interface should be implemented by admission plugins that want to have both local and global kube informer factories injected.

type WantsObjectCountRegistry added in v0.33.0

type WantsObjectCountRegistry interface {
	SetObjectCountRegistry(*objectcount.Registry)
}

WantsObjectCountRegistry interface should be implemented by admission plugins that want to have the per-logical-cluster object count registry injected.

type WantsServerShutdownChannel added in v0.7.0

type WantsServerShutdownChannel interface {
	SetServerShutdownChannel(<-chan struct{})
}

WantsServerShutdownChannel interface should be implemented by admission plugins that want to perform cleanup activities when the main server context/channel is done.

Jump to

Keyboard shortcuts

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