Documentation
¶
Index ¶
- func ConvertJSONSchemaPropsToAPIExtensions(schema *clusterv1.JSONSchemaProps, fldPath *field.Path) (*apiextensions.JSONSchemaProps, field.ErrorList)
- func ValidateClusterVariable[T any](value *clusterv1.ClusterVariable, definition *clusterv1.ClusterClassVariable, ...) field.ErrorList
- func ValidateClusterVariableUpdate[T any](value, oldValue *clusterv1.ClusterVariable, ...) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertJSONSchemaPropsToAPIExtensions ¶ added in v0.8.0
func ConvertJSONSchemaPropsToAPIExtensions( schema *clusterv1.JSONSchemaProps, fldPath *field.Path, ) (*apiextensions.JSONSchemaProps, field.ErrorList)
ConvertJSONSchemaPropsToAPIExtensions converts a clusterv1.JSONSchemaProps to apiextensions.JSONSchemaProp. NOTE: This is used whenever we want to use one of the upstream libraries, as they use apiextensions.JSONSchemaProp. NOTE: If new fields are added to clusterv1.JSONSchemaProps (e.g. to support complex types), the corresponding schema validation must be added to validateRootSchema too. See: https://github.com/kubernetes-sigs/cluster-api/blob/v1.5.1/internal/topology/variables/schema.go#L35
func ValidateClusterVariable ¶
func ValidateClusterVariable[T any]( value *clusterv1.ClusterVariable, definition *clusterv1.ClusterClassVariable, fldPath *field.Path, ) field.ErrorList
ValidateClusterVariable validates a clusterVariable. See: https://github.com/kubernetes-sigs/cluster-api/blob/v1.5.1/internal/topology/variables/cluster_variable_validation.go#L118
func ValidateClusterVariableUpdate ¶ added in v0.30.0
func ValidateClusterVariableUpdate[T any]( value, oldValue *clusterv1.ClusterVariable, definition *clusterv1.ClusterClassVariable, fldPath *field.Path, ) field.ErrorList
ValidateClusterVariableUpdate validates an update to a clusterVariable.
Types ¶
This section is empty.