defaulting

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatacenterForClusterSpec added in v2.19.0

func DatacenterForClusterSpec(spec *kubermaticv1.ClusterSpec, seed *kubermaticv1.Seed) (*kubermaticv1.Datacenter, *field.Error)

func DefaultClusterSpec added in v2.19.0

func DefaultClusterSpec(spec *kubermaticv1.ClusterSpec, template *kubermaticv1.ClusterTemplate, seed *kubermaticv1.Seed, config *kubermaticv1.KubermaticConfiguration, cloudProvider provider.CloudProvider) error

DefaultClusterSpec defaults the cluster spec when creating a new cluster. Defaults are taken from, in order:

  1. ClusterTemplate (if given)
  2. Seed's spec.componentsOverrides
  3. KubermaticConfiguration's spec.userCluster
  4. Constants in pkg/controller/operator/defaults

This function assumes that the KubermaticConfiguration has already been defaulted (as the KubermaticConfigurationGetter does that automatically), but the Seed does not yet need to be defaulted (to the values of the KubermaticConfiguration).

func GetDefaultingClusterTemplate added in v2.19.0

func GetDefaultingClusterTemplate(ctx context.Context, client ctrlruntimeclient.Reader, seed *kubermaticv1.Seed) (*kubermaticv1.ClusterTemplate, error)

GetDefaultingClusterTemplate returns the ClusterTemplate that is referenced by the Seed. Note that this can return nil if no template is configured yet (this is not considered an error).

Types

This section is empty.

Jump to

Keyboard shortcuts

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