Documentation ¶
Index ¶
- Constants
- func SafeStorageVersionUpgrade(existingCRD runtime.Object, newCRD runtime.Object) (bool, error)
- func UnmarshalV1(manifest string) (*apiextensionsv1.CustomResourceDefinition, error)
- func UnmarshalV1Beta1(manifest string) (*apiextensionsv1beta1.CustomResourceDefinition, error)
- func Version(manifest *string) (string, error)
Constants ¶
const ( Kind = "CustomResourceDefinition" Group = "apiextensions.k8s.io/" )
const V1Beta1Version string = "v1beta1"
V1Beta1 refers to the deprecated v1beta1 APIVersion of CRD objects
const V1Version string = "v1"
V1 refers to the new v1 APIVersion of CRD objects
Variables ¶
This section is empty.
Functions ¶
func SafeStorageVersionUpgrade ¶
SafeStorageVersionUpgrade determines whether the new CRD spec includes all the storage versions of the existing on-cluster CRD. For each stored version in the status of the CRD on the cluster (there will be at least one) - each version must exist in the spec of the new CRD that is being installed. See https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definition-versioning/#upgrade-existing-objects-to-a-new-stored-version.
func UnmarshalV1 ¶
func UnmarshalV1(manifest string) (*apiextensionsv1.CustomResourceDefinition, error)
UnmarshalV1 takes in a CRD manifest and returns a v1 versioned CRD object.
func UnmarshalV1Beta1 ¶
func UnmarshalV1Beta1(manifest string) (*apiextensionsv1beta1.CustomResourceDefinition, error)
UnmarshalV1 takes in a CRD manifest and returns a v1beta1 versioned CRD object.
Types ¶
This section is empty.