initializers

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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 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 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 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 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