Documentation
¶
Index ¶
- Constants
- func GetCRDs(decoder decode.Decoder, clusterConfig *v1.ClusterConfig) ([]*apiextensionsv1.CustomResourceDefinition, status.Error)
- func MalformedCRDError(err error, obj client.Object) status.Error
- func ToCRD(o *unstructured.Unstructured, scheme *runtime.Scheme) (*apiextensionsv1.CustomResourceDefinition, status.Error)
Constants ¶
View Source
const MalformedCRDErrorCode = "1065"
MalformedCRDErrorCode is the error code for MalformedCRDError.
Variables ¶
This section is empty.
Functions ¶
func GetCRDs ¶
func GetCRDs(decoder decode.Decoder, clusterConfig *v1.ClusterConfig) ([]*apiextensionsv1.CustomResourceDefinition, status.Error)
GetCRDs returns the names and CustomResourceDefinitions of the CRDs in ClusterConfig.
func MalformedCRDError ¶
MalformedCRDError reports a malformed CRD.
func ToCRD ¶ added in v1.21.0
func ToCRD(o *unstructured.Unstructured, scheme *runtime.Scheme) (*apiextensionsv1.CustomResourceDefinition, status.Error)
ToCRD converts an Unstructured object into a v1.CustomResourceDefinition using conversions registered with the specified scheme.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.