Documentation ¶
Index ¶
- func DatacenterForClusterSpec(spec *kubermaticv1.ClusterSpec, seed *kubermaticv1.Seed) (*kubermaticv1.Datacenter, *field.Error)
- func DefaultClusterNetwork(specClusterNetwork kubermaticv1.ClusterNetworkingConfig, ...) kubermaticv1.ClusterNetworkingConfig
- func DefaultClusterSpec(ctx context.Context, spec *kubermaticv1.ClusterSpec, ...) error
- func DefaultExternalClusterSpec(ctx context.Context, spec *kubermaticv1.ExternalClusterSpec) error
- func DefaultUserSSHKey(key *kubermaticv1.UserSSHKey, oldKey *kubermaticv1.UserSSHKey) (*kubermaticv1.UserSSHKey, 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 DefaultClusterNetwork ¶ added in v2.21.0
func DefaultClusterNetwork(specClusterNetwork kubermaticv1.ClusterNetworkingConfig, provider kubermaticv1.ProviderType) kubermaticv1.ClusterNetworkingConfig
func DefaultClusterSpec ¶ added in v2.19.0
func DefaultClusterSpec(ctx context.Context, 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:
- 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 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.