Documentation ¶
Index ¶
- func BootstrapCluster(ctx context.Context, k8sGardenClient kubernetes.Interface, ...) error
- func ReadGardenSecrets(ctx context.Context, c client.Reader, namespace string, log logrus.FieldLogger, ...) (map[string]*corev1.Secret, error)
- type Builder
- func (b *Builder) Build(ctx context.Context) (*Garden, error)
- func (b *Builder) WithDefaultDomains(defaultDomains []*Domain) *Builder
- func (b *Builder) WithDefaultDomainsFromSecrets(secrets map[string]*corev1.Secret) *Builder
- func (b *Builder) WithInternalDomain(internalDomain *Domain) *Builder
- func (b *Builder) WithInternalDomainFromSecrets(secrets map[string]*corev1.Secret) *Builder
- func (b *Builder) WithProject(project *gardencorev1beta1.Project) *Builder
- func (b *Builder) WithProjectFrom(reader client.Reader, namespace string) *Builder
- type Domain
- type Garden
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCluster ¶
func BootstrapCluster(ctx context.Context, k8sGardenClient kubernetes.Interface, secretsManager secretsmanager.Interface) error
BootstrapCluster bootstraps the Garden cluster and deploys various required manifests.
func ReadGardenSecrets ¶
func ReadGardenSecrets(ctx context.Context, c client.Reader, namespace string, log logrus.FieldLogger, enforceInternalDomainSecret bool) (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.
Types ¶
type Builder ¶ added in v1.4.0
type Builder struct {
// contains filtered or unexported fields
}
Builder is an object that builds Garden objects.
func (*Builder) WithDefaultDomains ¶ added in v1.4.0
WithDefaultDomains sets the defaultDomainsFunc attribute at the Builder.
func (*Builder) WithDefaultDomainsFromSecrets ¶ added in v1.4.0
WithDefaultDomainsFromSecrets sets the defaultDomainsFunc attribute at the Builder based on the given secrets map.
func (*Builder) WithInternalDomain ¶ added in v1.4.0
WithInternalDomain sets the internalDomainFunc attribute at the Builder.
func (*Builder) WithInternalDomainFromSecrets ¶ added in v1.4.0
WithInternalDomainFromSecrets sets the internalDomainFunc attribute at the Builder based on the given secrets map.
func (*Builder) WithProject ¶ added in v1.4.0
func (b *Builder) WithProject(project *gardencorev1beta1.Project) *Builder
WithProject sets the projectFunc attribute at the Builder.
type Domain ¶
type Domain struct { Domain string Provider string Zone 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 ¶
DomainIsDefaultDomain identifies whether the given domain is a default domain.
func GetDefaultDomains ¶
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.