gardener: github.com/gardener/gardener/pkg/operation/seed Index | Files

package seed

import "github.com/gardener/gardener/pkg/operation/seed"

Index

Package Files

seed.go types.go

func BootstrapCluster Uses

func BootstrapCluster(k8sGardenClient kubernetes.Interface, seed *Seed, config *config.GardenletConfiguration, secrets map[string]*corev1.Secret, imageVector imagevector.ImageVector) error

BootstrapCluster bootstraps a Seed cluster and deploys various required manifests.

func DesiredExcessCapacity Uses

func DesiredExcessCapacity() 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) 2 cores of CPU and 6Gi of RAM. This roughly corresponds to a single, moderately large control-plane. The logic for computation of desired excess capacity corresponds to deploying 2 such shoot control planes. This excess capacity can be used for hosting new control planes or newly vertically scaled old control-planes.

func GetFluentdReplicaCount Uses

func GetFluentdReplicaCount(k8sSeedClient kubernetes.Interface) (int32, error)

GetFluentdReplicaCount returns fluentd stateful set replica count if it exists, otherwise - the default (1). As fluentd HPA manages the number of replicas, we have to make sure to do not override HPA scaling.

func GetSeedClient Uses

func GetSeedClient(ctx context.Context, gardenClient client.Client, clientConnection componentbaseconfig.ClientConnectionConfiguration, inCluster bool, seedName string) (kubernetes.Interface, error)

GetSeedClient returns the Kubernetes client for the seed cluster. If `inCluster` is set to true then the in-cluster client is returned, otherwise the secret reference of the given `seedName` is read and a client with the stored kubeconfig is created.

func GetWildcardCertificate Uses

func GetWildcardCertificate(ctx context.Context, c client.Client) (*corev1.Secret, error)

GetWildcardCertificate gets the wildcard certificate for the seed's ingress domain. Nil is returned if no wildcard certificate is configured.

type Seed Uses

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

Seed is an object containing information about a Seed cluster.

func List Uses

func List(k8sGardenClient kubernetes.Interface, k8sGardenCoreInformers gardencoreinformers.Interface) ([]*Seed, error)

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

func New Uses

func New(k8sGardenClient kubernetes.Interface, k8sGardenCoreInformers gardencoreinformers.Interface, seed *gardencorev1beta1.Seed) (*Seed, error)

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

func NewFromName Uses

func NewFromName(k8sGardenClient kubernetes.Interface, k8sGardenCoreInformers gardencoreinformers.Interface, seedName string) (*Seed, error)

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

func (*Seed) CheckMinimumK8SVersion Uses

func (s *Seed) CheckMinimumK8SVersion(ctx context.Context, k8sGardenClient client.Client, clientConnection componentbaseconfig.ClientConnectionConfiguration, inCluster bool) (string, error)

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

func (*Seed) GetIngressFQDN Uses

func (s *Seed) GetIngressFQDN(subDomain 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) GetIngressFQDNDeprecated Uses

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

GetIngressFQDNDeprecated returns the fully qualified domain name of ingress sub-resource for the Seed cluster. The end result is '<subDomain>.<shootName>.<projectName>.<seed-ingress-domain>'. Only necessary to renew certificates for Alertmanager, Grafana, Kibana, Prometheus TODO: (timuthy) remove in future version.

func (*Seed) GetValidVolumeSize Uses

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 Uses

func (s *Seed) MustReserveExcessCapacity(must bool)

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

Package seed imports 32 packages (graph) and is imported by 6 packages. Updated 2020-02-20. Refresh now. Tools for package owners.