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

package garden

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

Index

Package Files

garden.go types.go

func BootstrapCluster Uses

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 Uses

func ReadGardenSecrets(k8sInformers kubeinformers.SharedInformerFactory, k8sGardenCoreInformers gardencoreinformers.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 Uses

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.

type Builder Uses

type Builder struct {
    // contains filtered or unexported fields
}

Builder is an object that builds Garden objects.

func NewBuilder Uses

func NewBuilder() *Builder

NewBuilder returns a new Builder.

func (*Builder) Build Uses

func (b *Builder) Build() (*Garden, error)

Build initializes a new Garden object.

func (*Builder) WithDefaultDomains Uses

func (b *Builder) WithDefaultDomains(defaultDomains []*Domain) *Builder

WithDefaultDomains sets the defaultDomainsFunc attribute at the Builder.

func (*Builder) WithDefaultDomainsFromSecrets Uses

func (b *Builder) WithDefaultDomainsFromSecrets(secrets map[string]*corev1.Secret) *Builder

WithDefaultDomains sets the defaultDomainsFunc attribute at the Builder based on the given secrets map.

func (*Builder) WithInternalDomain Uses

func (b *Builder) WithInternalDomain(internalDomain *Domain) *Builder

WithInternalDomain sets the internalDomainFunc attribute at the Builder.

func (*Builder) WithInternalDomainFromSecrets Uses

func (b *Builder) WithInternalDomainFromSecrets(secrets map[string]*corev1.Secret) *Builder

WithInternalDomainFromSecrets sets the internalDomainFunc attribute at the Builder based on the given secrets map.

func (*Builder) WithProject Uses

func (b *Builder) WithProject(project *gardencorev1beta1.Project) *Builder

WithProject sets the projectFunc attribute at the Builder.

func (*Builder) WithProjectFromLister Uses

func (b *Builder) WithProjectFromLister(projectLister gardencorelisters.ProjectLister, namespace string) *Builder

WithProjectFromLister sets the projectFunc attribute after fetching it from the lister.

type Domain Uses

type Domain struct {
    Domain         string
    Provider       string
    SecretData     map[string][]byte
    IncludeDomains []string
    ExcludeDomains []string
    IncludeZones   []string
    ExcludeZones   []string
}

Domain contains information about a domain configured in the garden cluster.

func DomainIsDefaultDomain Uses

func DomainIsDefaultDomain(domain string, defaultDomains []*Domain) *Domain

DomainIsDefaultDomain identifies whether the given domain is a default domain.

func GetDefaultDomains Uses

func GetDefaultDomains(secrets map[string]*corev1.Secret) ([]*Domain, 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.

func GetInternalDomain Uses

func GetInternalDomain(secrets map[string]*corev1.Secret) (*Domain, error)

GetInternalDomain finds the internal domain secret within the given map and returns the object that contains all relevant information about the internal domain.

type Garden Uses

type Garden struct {
    Project        *gardencorev1beta1.Project
    DefaultDomains []*Domain
    InternalDomain *Domain
}

Garden is an object containing Garden cluster specific data.

Package garden imports 19 packages (graph) and is imported by 6 packages. Updated 2020-06-02. Refresh now. Tools for package owners.