shoot

package
v0.0.0-...-133fb1b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shoot

type Shoot struct {
	Info                  *gardenv1beta1.Shoot
	Secret                *corev1.Secret
	CloudProfile          *gardenv1beta1.CloudProfile
	CloudProvider         gardenv1beta1.CloudProvider
	SeedNamespace         string
	InternalClusterDomain string
	ExternalClusterDomain *string
}

Shoot is an object containing information about a Shoot cluster.

func New

func New(k8sGardenClient kubernetes.Client, k8sGardenInformers gardeninformers.Interface, shoot *gardenv1beta1.Shoot, internalDomain string) (*Shoot, error)

New takes a <k8sGardenClient>, the <k8sGardenInformers> and a <shoot> manifest, and creates a new Shoot representation. It will add the CloudProfile, the cloud provider secret, compute the internal cluster domain and identify the cloud provider.

func (*Shoot) GetIngressFQDN

func (s *Shoot) GetIngressFQDN(subDomain string) (string, error)

GetIngressFQDN returns the fully qualified domain name of ingress sub-resource for the Shoot cluster. The end result is '<subDomain>.ingress.<clusterDomain>'. It must not exceed 64 characters in length (see RFC-5280 for details).

func (*Shoot) GetNodeCount

func (s *Shoot) GetNodeCount() int

GetNodeCount returns the sum of all 'autoScalerMax' fields of all worker groups of the Shoot.

func (*Shoot) GetNodeNetwork

func (s *Shoot) GetNodeNetwork() gardenv1beta1.CIDR

GetNodeNetwork returns the node network CIDR for the Shoot cluster.

func (*Shoot) GetPodNetwork

func (s *Shoot) GetPodNetwork() gardenv1beta1.CIDR

GetPodNetwork returns the pod network CIDR for the Shoot cluster.

func (*Shoot) GetServiceNetwork

func (s *Shoot) GetServiceNetwork() gardenv1beta1.CIDR

GetServiceNetwork returns the service network CIDR for the Shoot cluster.

func (*Shoot) GetWorkerNames

func (s *Shoot) GetWorkerNames() []string

GetWorkerNames returns a list of names of the worker groups in the Shoot manifest.

Jump to

Keyboard shortcuts

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