seed

package
v0.0.0-...-be4dc66 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2019 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapCluster

func BootstrapCluster(seed *Seed, secrets map[string]*corev1.Secret, imageVector imagevector.ImageVector, numberOfAssociatedShoots int) error

BootstrapCluster bootstraps a Seed cluster and deploys various required manifests.

func DesiredExcessCapacity

func DesiredExcessCapacity(numberOfAssociatedShoots int) int

DesiredExcessCapacity computes the required resources (CPU and memory) required to deploy new shoot control planes (on the seed) in terms of reserve-excess-capacity deployment replicas. Each deployment replica currently corresponds to resources of (request/limits) 500m of CPU and 1200Mi of Memory. ReplicasRequiredToSupportSingleShoot is 4 which is 2000m of CPU and 4800Mi of RAM. The logic for computation of desired excess capacity corresponds to either deploying 3 new shoot control planes or 5% of existing shoot control planes of current number of shoots deployed in seed (5 if current shoots are 100), whichever of the two is larger

Types

type Seed

type Seed struct {
	Info          *gardenv1beta1.Seed
	Secret        *corev1.Secret
	CloudProvider gardenv1beta1.CloudProvider
	CloudProfile  *gardenv1beta1.CloudProfile
	// contains filtered or unexported fields
}

Seed is an object containing information about a Seed cluster.

func List

func List(k8sGardenClient kubernetes.Interface, k8sGardenInformers gardeninformers.Interface) ([]*Seed, error)

List returns a list of Seed clusters (along with the referenced secrets).

func New

func New(k8sGardenClient kubernetes.Interface, k8sGardenInformers gardeninformers.Interface, seed *gardenv1beta1.Seed) (*Seed, error)

New takes a <k8sGardenClient>, the <k8sGardenInformers> and a <seed> manifest, and creates a new Seed representation. It will add the CloudProfile and identify the cloud provider.

func NewFromName

func NewFromName(k8sGardenClient kubernetes.Interface, k8sGardenInformers gardeninformers.Interface, seedName string) (*Seed, error)

NewFromName creates a new Seed object based on the name of a Seed manifest.

func (*Seed) CheckMinimumK8SVersion

func (s *Seed) CheckMinimumK8SVersion() error

CheckMinimumK8SVersion checks whether the Kubernetes version of the Seed cluster fulfills the minimal requirements.

func (*Seed) GetIngressFQDN

func (s *Seed) GetIngressFQDN(subDomain, shootName, projectName string) string

GetIngressFQDN returns the fully qualified domain name of ingress sub-resource for the Seed cluster. The end result is '<subDomain>.<shootName>.<projectName>.<seed-ingress-domain>'.

func (*Seed) GetValidVolumeSize

func (s *Seed) GetValidVolumeSize(size string) string

GetValidVolumeSize is to get a valid volume size. If the given size is smaller than the minimum volume size permitted by cloud provider on which seed cluster is running, it will return the minimum size.

func (*Seed) MustReserveExcessCapacity

func (s *Seed) MustReserveExcessCapacity(must bool)

MustReserveExcessCapacity configures whether we have to reserve excess capacity in the Seed cluster.

Jump to

Keyboard shortcuts

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