initializers

package
v0.6.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 *kcpclientset.Cluster,
) *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 *kubernetes.Cluster,
) *kubeClusterClientInitializer

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

Types

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(kubeClusterClient *kcpclientset.Cluster)
}

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

type WantsKcpInformers

type WantsKcpInformers interface {
	SetKcpInformers(informers 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(kubeClusterClient *kubernetes.Cluster)
}

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

type WantsShardBaseURL added in v0.6.0

type WantsShardBaseURL interface {
	SetShardBaseURL(shardBaseURL string)
}

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

Jump to

Keyboard shortcuts

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