initializers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 6 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 kubernetesclient.ClusterInterface,
) *clientConfigInitializer

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

func NewExternalAddressInitializer added in v0.6.0

func NewExternalAddressInitializer(
	externalAddressProvider func() string,
) *externalAddressInitializer

NewExternalAddressInitializer returns an admission plugin initializer that injects an external address provider into the admission plugin.

func NewKcpClusterClientInitializer added in v0.6.0

func NewKcpClusterClientInitializer(
	kcpClusterClient kcpclient.ClusterInterface,
) *kcpClusterClientInitializer

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

func NewKcpInformersInitializer

func NewKcpInformersInitializer(
	kcpInformers kcpinformers.SharedInformerFactory,
) *kcpInformersInitializer

NewKcpInformersInitializer returns an admission plugin initializer that injects kcp shared informer factories into admission plugins.

func NewKubeClusterClientInitializer added in v0.6.0

func NewKubeClusterClientInitializer(
	kubeClusterClient kubernetesclient.ClusterInterface,
) *kubeClusterClientInitializer

NewKubeClusterClientInitializer returns an admission plugin initializer that injects a kube cluster client 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.

func NewShardBaseURLInitializer added in v0.6.0

func NewShardBaseURLInitializer(shardBaseURL string) *shardBaseURLInitializer

NewShardBaseURLInitializer returns an admission plugin initializer that injects the default shard base URL provider into the admission plugin.

func NewShardExternalURLInitializer added in v0.6.0

func NewShardExternalURLInitializer(shardExternalURL string) *shardExternalURLInitializer

NewShardExternalURLInitializer returns an admission plugin initializer that injects the default shard external URL provider into the admission plugin.

Types

type WantsDeepSARClient added in v0.8.0

type WantsDeepSARClient interface {
	SetDeepSARClient(kubernetesclient.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 WantsExternalAddressProvider added in v0.6.0

type WantsExternalAddressProvider interface {
	SetExternalAddressProvider(externalAddressProvider func() string)
}

WantsExternalAddressProvider interface should be implemented by admission plugins that want to have an external address provider injected.

type WantsKcpClusterClient added in v0.6.0

type WantsKcpClusterClient interface {
	SetKcpClusterClient(kcpclient.ClusterInterface)
}

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

type WantsKcpInformers

type WantsKcpInformers interface {
	SetKcpInformers(kcpinformers.SharedInformerFactory)
}

WantsKcpInformers interface should be implemented by admission plugins that want to have a kcp informer factory injected.

type WantsKubeClusterClient added in v0.6.0

type WantsKubeClusterClient interface {
	SetKubeClusterClient(kubernetesclient.ClusterInterface)
}

WantsKubeClusterClient interface should be implemented by admission plugins that want to have a kube cluster client 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.

type WantsShardBaseURL added in v0.6.0

type WantsShardBaseURL interface {
	SetShardBaseURL(string)
}

WantsShardBaseURL interface should be implemented by admission plugins that want to have the default shard base url injected.

type WantsShardExternalURL added in v0.6.0

type WantsShardExternalURL interface {
	SetShardExternalURL(string)
}

WantsShardExternalURL interface should be implemented by admission plugins that want to have the shard external url injected.

Jump to

Keyboard shortcuts

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