Documentation ¶
Index ¶
- func DatacenterForClusterSpec(spec *kubermaticv1.ClusterSpec, seed *kubermaticv1.Seed) (*kubermaticv1.Datacenter, *field.Error)
- func DefaultClusterSpec(spec *kubermaticv1.ClusterSpec, template *kubermaticv1.ClusterTemplate, ...) error
- func GetDefaultingClusterTemplate(ctx context.Context, client ctrlruntimeclient.Reader, seed *kubermaticv1.Seed) (*kubermaticv1.ClusterTemplate, error)
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 *operatorv1alpha1.KubermaticConfiguration, cloudProvider provider.CloudProvider) error
DefaultClusterSpec defaults the cluster spec when creating a new cluster. Defaults are taken from, in order:
- ClusterTemplate (if given)
- Seed's spec.componentsOverrides
- KubermaticConfiguration's spec.userCluster
- 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.
Click to show internal directories.
Click to hide internal directories.