Documentation ¶
Index ¶
- type DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) Build() (clientmap.ClientMap, error)
- func (b *DelegatingClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithGardenClientMapBuilder(builder *GardenClientMapBuilder) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithPlantClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithSeedClientMapBuilder(builder *SeedClientMapBuilder) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithShootClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
- func (b *DelegatingClientMapBuilder) WithShootClientMapBuilder(builder *ShootClientMapBuilder) *DelegatingClientMapBuilder
- type GardenClientMapBuilder
- func (b *GardenClientMapBuilder) Build(log logr.Logger) (clientmap.ClientMap, error)
- func (b *GardenClientMapBuilder) ForSeed(name string) *GardenClientMapBuilder
- func (b *GardenClientMapBuilder) WithRESTConfig(cfg *rest.Config) *GardenClientMapBuilder
- func (b *GardenClientMapBuilder) WithUncached(objs ...client.Object) *GardenClientMapBuilder
- type PlantClientMapBuilder
- type SeedClientMapBuilder
- type ShootClientMapBuilder
- func (b *ShootClientMapBuilder) Build(log logr.Logger) (clientmap.ClientMap, error)
- func (b *ShootClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *ShootClientMapBuilder
- func (b *ShootClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DelegatingClientMapBuilder ¶
type DelegatingClientMapBuilder struct {
// contains filtered or unexported fields
}
DelegatingClientMapBuilder can build a DelegatingClientMap which will delegate calls to different ClientMaps based on the type of the key (e.g. a call with keys.ForShoot() will be delegated to the ShootClientMap).
func NewDelegatingClientMapBuilder ¶
func NewDelegatingClientMapBuilder(log logr.Logger) *DelegatingClientMapBuilder
NewDelegatingClientMapBuilder creates a new DelegatingClientMapBuilder.
func (*DelegatingClientMapBuilder) Build ¶
func (b *DelegatingClientMapBuilder) Build() (clientmap.ClientMap, error)
Build builds the DelegatingClientMap using the provided attributes.
func (*DelegatingClientMapBuilder) WithGardenClientMap ¶
func (b *DelegatingClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
WithGardenClientMap sets the ClientMap that should be used for Garden clients.
func (*DelegatingClientMapBuilder) WithGardenClientMapBuilder ¶
func (b *DelegatingClientMapBuilder) WithGardenClientMapBuilder(builder *GardenClientMapBuilder) *DelegatingClientMapBuilder
WithGardenClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Garden clients.
func (*DelegatingClientMapBuilder) WithPlantClientMap ¶
func (b *DelegatingClientMapBuilder) WithPlantClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
WithPlantClientMap sets the ClientMap that should be used for Plant clients.
func (*DelegatingClientMapBuilder) WithSeedClientMap ¶
func (b *DelegatingClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
WithSeedClientMap sets the ClientMap that should be used for Seed clients.
func (*DelegatingClientMapBuilder) WithSeedClientMapBuilder ¶
func (b *DelegatingClientMapBuilder) WithSeedClientMapBuilder(builder *SeedClientMapBuilder) *DelegatingClientMapBuilder
WithSeedClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Seed clients.
func (*DelegatingClientMapBuilder) WithShootClientMap ¶
func (b *DelegatingClientMapBuilder) WithShootClientMap(clientMap clientmap.ClientMap) *DelegatingClientMapBuilder
WithShootClientMap sets the ClientMap that should be used for Shoot clients.
func (*DelegatingClientMapBuilder) WithShootClientMapBuilder ¶
func (b *DelegatingClientMapBuilder) WithShootClientMapBuilder(builder *ShootClientMapBuilder) *DelegatingClientMapBuilder
WithShootClientMapBuilder sets a ClientMap builder that should be used to build a ClientMap for Shoot clients.
type GardenClientMapBuilder ¶
type GardenClientMapBuilder struct {
// contains filtered or unexported fields
}
GardenClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing a client to the garden cluster. Most probably, this ClientMap will only contain one ClientSet, but this can be used to retrieve a client to the garden cluster via the same mechanisms as the other types of ClientSets (e.g. through a DelegatingClientMap).
func NewGardenClientMapBuilder ¶
func NewGardenClientMapBuilder() *GardenClientMapBuilder
NewGardenClientMapBuilder creates a new GardenClientMapBuilder.
func (*GardenClientMapBuilder) Build ¶
Build builds the GardenClientMap using the provided attributes.
func (*GardenClientMapBuilder) ForSeed ¶ added in v1.20.0
func (b *GardenClientMapBuilder) ForSeed(name string) *GardenClientMapBuilder
ForSeed sets the seed that will be used to construct a new client to the garden cluster.
func (*GardenClientMapBuilder) WithRESTConfig ¶
func (b *GardenClientMapBuilder) WithRESTConfig(cfg *rest.Config) *GardenClientMapBuilder
WithRESTConfig sets the restConfig attribute of the builder. This restConfig will be used to construct a new client to the garden cluster.
func (*GardenClientMapBuilder) WithUncached ¶ added in v1.21.0
func (b *GardenClientMapBuilder) WithUncached(objs ...client.Object) *GardenClientMapBuilder
WithUncached takes a list of runtime objects (plain or lists) that users don't want to cache for this client. This function can be called multiple times, it should append to an internal slice.
type PlantClientMapBuilder ¶
type PlantClientMapBuilder struct {
// contains filtered or unexported fields
}
PlantClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Plant clusters.
func NewPlantClientMapBuilder ¶
func NewPlantClientMapBuilder() *PlantClientMapBuilder
NewPlantClientMapBuilder constructs a new PlantClientMapBuilder.
func (*PlantClientMapBuilder) Build ¶
Build builds the PlantClientMap using the provided attributes.
func (*PlantClientMapBuilder) WithGardenReader ¶ added in v1.52.0
func (b *PlantClientMapBuilder) WithGardenReader(reader client.Reader) *PlantClientMapBuilder
WithGardenReader sets the reader that should be used for retrieving Plants' kubeconfig secrets.
type SeedClientMapBuilder ¶
type SeedClientMapBuilder struct {
// contains filtered or unexported fields
}
SeedClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Seed clusters.
func NewSeedClientMapBuilder ¶
func NewSeedClientMapBuilder() *SeedClientMapBuilder
NewSeedClientMapBuilder constructs a new SeedClientMapBuilder.
func (*SeedClientMapBuilder) WithClientConnectionConfig ¶
func (b *SeedClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *SeedClientMapBuilder
WithClientConnectionConfig sets the ClientConnectionConfiguration that should be used by ClientSets created by this ClientMap.
type ShootClientMapBuilder ¶
type ShootClientMapBuilder struct {
// contains filtered or unexported fields
}
ShootClientMapBuilder can build a ClientMap which can be used to construct a ClientMap for requesting and storing clients for Shoot clusters.
func NewShootClientMapBuilder ¶
func NewShootClientMapBuilder() *ShootClientMapBuilder
NewShootClientMapBuilder constructs a new ShootClientMapBuilder.
func (*ShootClientMapBuilder) Build ¶
Build builds the ShootClientMap using the provided attributes.
func (*ShootClientMapBuilder) WithClientConnectionConfig ¶
func (b *ShootClientMapBuilder) WithClientConnectionConfig(cfg *baseconfig.ClientConnectionConfiguration) *ShootClientMapBuilder
WithClientConnectionConfig sets the ClientConnectionConfiguration that should be used by ClientSets created by this ClientMap.
func (*ShootClientMapBuilder) WithGardenClientMap ¶
func (b *ShootClientMapBuilder) WithGardenClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
WithGardenClientMap sets the ClientMap that should be used to retrieve Garden clients.
func (*ShootClientMapBuilder) WithGardenClientSet ¶
func (b *ShootClientMapBuilder) WithGardenClientSet(clientSet kubernetes.Interface) *ShootClientMapBuilder
WithGardenClientSet sets the ClientSet that should be used as the Garden client.
func (*ShootClientMapBuilder) WithSeedClientMap ¶
func (b *ShootClientMapBuilder) WithSeedClientMap(clientMap clientmap.ClientMap) *ShootClientMapBuilder
WithSeedClientMap sets the ClientMap that should be used to retrieve Seed clients.