Documentation ¶
Index ¶
- func DefaultShootMachineArchitecture(workers []common.ShootWorkerFlavor)
- func MachineImageVersion(version string, architectures []string) gardencorev1beta1.MachineImageVersion
- func MachineImageVersions(versions map[string][]string) []gardencorev1beta1.MachineImageVersion
- func ParseKubernetesVersions(versions common.ShootKubernetesVersionFlavor) ([]gardencorev1beta1.ExpirableVersion, error)
- func SetupWorker(cloudprofile gardencorev1beta1.CloudProfile, ...) ([]gardencorev1beta1.Worker, error)
- func Validate(identifier string, flavor *common.ShootFlavor) error
- func ValidateExtendedFlavor(identifier string, flavor *common.ExtendedShootFlavor) error
- type ExtendedFlavorInstance
- type ExtendedFlavors
- type Flavors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultShootMachineArchitecture ¶
func DefaultShootMachineArchitecture(workers []common.ShootWorkerFlavor)
DefaultShootMachineArchitecture defaults machine architecture of a worker pool to `amd64` if it is not set.
func MachineImageVersion ¶
func MachineImageVersion(version string, architectures []string) gardencorev1beta1.MachineImageVersion
MachineImageVersion creates a new machine image version
func MachineImageVersions ¶
func MachineImageVersions(versions map[string][]string) []gardencorev1beta1.MachineImageVersion
MachineImageVersions creates a new list of machine image versions
func ParseKubernetesVersions ¶
func ParseKubernetesVersions(versions common.ShootKubernetesVersionFlavor) ([]gardencorev1beta1.ExpirableVersion, error)
ParseKubernetesVersions parses kubernetes versions flavor and returns a list of kubernetes versions. This function will not read from cloudprofile as it is meant to be used in the full gardener tests where there is no landscape to fetch versions at this point in time.
func SetupWorker ¶
func SetupWorker(cloudprofile gardencorev1beta1.CloudProfile, workers []gardencorev1beta1.Worker) ([]gardencorev1beta1.Worker, error)
func Validate ¶
func Validate(identifier string, flavor *common.ShootFlavor) error
Validate validates a shoot flavor and checks if all necessary attributes are set
func ValidateExtendedFlavor ¶
func ValidateExtendedFlavor(identifier string, flavor *common.ExtendedShootFlavor) error
ValidateExtendedFlavor validates extended a shoot flavors.
Types ¶
type ExtendedFlavorInstance ¶
type ExtendedFlavorInstance struct {
// contains filtered or unexported fields
}
ExtendedFlavorInstance defines a instance of a shoot flavor
func NewExtendedFlavorInstance ¶
func NewExtendedFlavorInstance(shoot *common.ExtendedShoot) *ExtendedFlavorInstance
func (*ExtendedFlavorInstance) Get ¶
func (i *ExtendedFlavorInstance) Get() *common.ExtendedShoot
func (*ExtendedFlavorInstance) New ¶
func (i *ExtendedFlavorInstance) New() *common.ExtendedShoot
New creates a new unique ExtendedFlavor shoot instance
type ExtendedFlavors ¶
type ExtendedFlavors struct { Info []*common.ExtendedShootFlavor // contains filtered or unexported fields }
Flavors represents the internal versions of a extended shoot flavor. Has be to be initiated by NewExtended
func NewExtended ¶
func NewExtended(k8sClient client.Client, rawFlavors []*common.ExtendedShootFlavor, shootPrefix string, filterPatchVersions bool) (*ExtendedFlavors, error)
NewExtended creates an internal representation of raw extended shoot flavors. It also parses the flavors and creates the resulting extended shoots.
func (*ExtendedFlavors) GetShoots ¶
func (f *ExtendedFlavors) GetShoots() []*ExtendedFlavorInstance
GetShoots returns a list of all shoots that are defined by the given flavors.
func (*ExtendedFlavors) GetUsedKubernetesVersions ¶
func (f *ExtendedFlavors) GetUsedKubernetesVersions() map[common.CloudProvider]gardencorev1beta1.KubernetesSettings
GetUsedKubernetesVersions returns a list of unique kubernetes versions used across all shoots.
type Flavors ¶
type Flavors struct { Info []*common.ShootFlavor // contains filtered or unexported fields }
Flavors represents the internal versions of a shoot flavor. Has be to be initiated by New
func New ¶
func New(rawFlavors []*common.ShootFlavor) (*Flavors, error)
New creates an internal representation of raw shoot flavors. It also parses the flavors and creates the resulting shoots.
func (*Flavors) GetShoots ¶
GetShoots returns a list of all shoots that are defined by the given flavors.
func (*Flavors) GetUsedKubernetesVersions ¶
func (f *Flavors) GetUsedKubernetesVersions() map[common.CloudProvider]gardencorev1beta1.KubernetesSettings
GetUsedKubernetesVersions returns a list of unique kubernetes versions used across all shoots.
func (*Flavors) GetUsedMachineImages ¶
func (f *Flavors) GetUsedMachineImages() map[common.CloudProvider][]gardencorev1beta1.MachineImage