Documentation ¶
Index ¶
- Constants
- func AsCRD(o *unstructured.Unstructured) (*apiextensionsv1beta1.CustomResourceDefinition, status.Error)
- func AsV1CRD(o *unstructured.Unstructured) (*apiextensionsv1.CustomResourceDefinition, status.Error)
- func GetCRDs(decoder decode.Decoder, clusterConfig *v1.ClusterConfig) ([]..., status.Error)
- func MalformedCRDError(err error, obj client.Object) status.Error
- func V1Beta1ToV1CRD(o *apiextensionsv1beta1.CustomResourceDefinition) (*apiextensionsv1.CustomResourceDefinition, status.Error)
Constants ¶
View Source
const MalformedCRDErrorCode = "1065"
MalformedCRDErrorCode is the error code for MalformedCRDError.
Variables ¶
This section is empty.
Functions ¶
func AsCRD ¶
func AsCRD(o *unstructured.Unstructured) (*apiextensionsv1beta1.CustomResourceDefinition, status.Error)
AsCRD returns the typed version of the CustomResourceDefinition passed in.
func AsV1CRD ¶
func AsV1CRD(o *unstructured.Unstructured) (*apiextensionsv1.CustomResourceDefinition, status.Error)
AsV1CRD returns the typed version of the CustomResourceDefinition passed in.
func GetCRDs ¶
func GetCRDs(decoder decode.Decoder, clusterConfig *v1.ClusterConfig) ([]*apiextensionsv1beta1. CustomResourceDefinition, status.Error)
GetCRDs returns the names and CustomResourceDefinitions of the CRDs in ClusterConfig.
func MalformedCRDError ¶
MalformedCRDError reports a malformed CRD.
func V1Beta1ToV1CRD ¶
func V1Beta1ToV1CRD(o *apiextensionsv1beta1.CustomResourceDefinition) (*apiextensionsv1.CustomResourceDefinition, status.Error)
V1Beta1ToV1CRD converts a v1beta1 CRD to a v1 CRD.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.