Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToAPIExtensionsJSONSchemaProps ¶
func ConvertToAPIExtensionsJSONSchemaProps( schema *clusterv1.JSONSchemaProps, fldPath *field.Path, ) (*apiextensions.JSONSchemaProps, field.ErrorList)
convertToAPIExtensionsJSONSchemaProps 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( 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
Types ¶
This section is empty.