Documentation ¶
Index ¶
- func BootstrapCluster(k8sGardenClient kubernetes.Interface, gardenNamespace string, ...) error
- func ReadGardenSecrets(k8sInformers kubeinformers.SharedInformerFactory) (map[string]*corev1.Secret, error)
- func VerifyInternalDomainSecret(k8sGardenClient kubernetes.Interface, numberOfShoots int, ...) error
- type DefaultDomain
- type Garden
- type InternalDomain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCluster ¶
func BootstrapCluster(k8sGardenClient kubernetes.Interface, gardenNamespace string, secrets map[string]*corev1.Secret) error
BootstrapCluster bootstraps the Garden cluster and deploys various required manifests.
func ReadGardenSecrets ¶
func ReadGardenSecrets(k8sInformers kubeinformers.SharedInformerFactory) (map[string]*corev1.Secret, error)
ReadGardenSecrets reads the Kubernetes Secrets from the Garden cluster which are independent of Shoot clusters. The Secret objects are stored on the Controller in order to pass them to created Garden objects later.
func VerifyInternalDomainSecret ¶
func VerifyInternalDomainSecret(k8sGardenClient kubernetes.Interface, numberOfShoots int, internalDomainSecret *corev1.Secret) error
VerifyInternalDomainSecret verifies that the internal domain secret matches to the internal domain secret used for existing Shoot clusters. It is not allowed to change the internal domain secret if there are existing Shoot clusters.
Types ¶
type DefaultDomain ¶
DefaultDomain contains information about a default domain configured in the garden cluster.
func DomainIsDefaultDomain ¶
func DomainIsDefaultDomain(domain string, defaultDomains []*DefaultDomain) *DefaultDomain
DomainIsDefaultDomain identifies whether a the given domain is a default domain.
func GetDefaultDomains ¶
func GetDefaultDomains(secrets map[string]*corev1.Secret) ([]*DefaultDomain, error)
GetDefaultDomains finds all the default domain secrets within the given map and returns a list of objects that contains all relevant information about the default domains.
type Garden ¶
type Garden struct { Project *gardenv1beta1.Project DefaultDomains []*DefaultDomain InternalDomain *InternalDomain }
Garden is an object containing Garden cluster specific data.
func New ¶
func New(projectLister gardenlisters.ProjectLister, namespace string, secrets map[string]*corev1.Secret) (*Garden, error)
New creates a new Garden object (based on a Shoot object).
type InternalDomain ¶
InternalDomain contains information about the internal domain configured in the garden cluster.
func GetInternalDomain ¶
func GetInternalDomain(secrets map[string]*corev1.Secret) (*InternalDomain, error)
GetInternalDomain finds the internal domain secret within the given map and returns the object that contains all relevant information about the internal domain.