Documentation
¶
Overview ¶
Package variables implements validation and defaulting for ClusterClass variables.
Index ¶
- func DefaultClusterVariables(values []clusterv1.ClusterVariable, ...) ([]clusterv1.ClusterVariable, field.ErrorList)
- func DefaultMachineVariables(values []clusterv1.ClusterVariable, ...) ([]clusterv1.ClusterVariable, field.ErrorList)
- func ValidateClusterClassVariables(ctx context.Context, clusterClassVariables []clusterv1.ClusterClassVariable, ...) field.ErrorList
- func ValidateClusterVariable(value *clusterv1.ClusterVariable, definition *clusterv1.ClusterClassVariable, ...) field.ErrorList
- func ValidateClusterVariables(values []clusterv1.ClusterVariable, ...) field.ErrorList
- func ValidateMachineVariables(values []clusterv1.ClusterVariable, ...) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultClusterVariables ¶
func DefaultClusterVariables(values []clusterv1.ClusterVariable, definitions []clusterv1.ClusterClassStatusVariable, fldPath *field.Path) ([]clusterv1.ClusterVariable, field.ErrorList)
DefaultClusterVariables defaults ClusterVariables.
func DefaultMachineVariables ¶ added in v1.6.0
func DefaultMachineVariables(values []clusterv1.ClusterVariable, definitions []clusterv1.ClusterClassStatusVariable, fldPath *field.Path) ([]clusterv1.ClusterVariable, field.ErrorList)
DefaultMachineVariables defaults MachineDeploymentVariables and MachinePoolVariables.
func ValidateClusterClassVariables ¶
func ValidateClusterClassVariables(ctx context.Context, clusterClassVariables []clusterv1.ClusterClassVariable, fldPath *field.Path) field.ErrorList
ValidateClusterClassVariables validates clusterClassVariable.
func ValidateClusterVariable ¶
func ValidateClusterVariable(value *clusterv1.ClusterVariable, definition *clusterv1.ClusterClassVariable, fldPath *field.Path) field.ErrorList
ValidateClusterVariable validates a clusterVariable.
func ValidateClusterVariables ¶
func ValidateClusterVariables(values []clusterv1.ClusterVariable, definitions []clusterv1.ClusterClassStatusVariable, fldPath *field.Path) field.ErrorList
ValidateClusterVariables validates ClusterVariables based on the definitions in ClusterClass `.status.variables`.
func ValidateMachineVariables ¶ added in v1.6.0
func ValidateMachineVariables(values []clusterv1.ClusterVariable, definitions []clusterv1.ClusterClassStatusVariable, fldPath *field.Path) field.ErrorList
ValidateMachineVariables validates MachineDeployment and MachinePool variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.