shootflavors

package
v0.0.0-...-7d92a45 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 (*ExtendedFlavorInstance) New

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

func (f *Flavors) GetShoots() []*common.Shoot

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

Jump to

Keyboard shortcuts

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