defaulting

package
v2.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 15 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 DefaultClusterNetwork added in v2.21.0

func DefaultClusterNetwork(specClusterNetwork kubermaticv1.ClusterNetworkingConfig, provider kubermaticv1.ProviderType) kubermaticv1.ClusterNetworkingConfig

func DefaultClusterSpec added in v2.19.0

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 DefaultExternalClusterSpec added in v2.21.0

func DefaultExternalClusterSpec(ctx context.Context, spec *kubermaticv1.ExternalClusterSpec) error

DefaultExternalClusterSpec defaults the cluster spec when creating a new external cluster. This function assumes that the KubermaticConfiguration has already been defaulted (as the KubermaticConfigurationGetter does that automatically).

func DefaultUserSSHKey added in v2.21.0

func DefaultUserSSHKey(key *kubermaticv1.UserSSHKey, oldKey *kubermaticv1.UserSSHKey) (*kubermaticv1.UserSSHKey, error)

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