Documentation
¶
Index ¶
- func AppendVersion(crd apiextensionsv1.CustomResourceDefinition, ...) (*apiextensionsv1.CustomResourceDefinition, error)
- func ConversionConf(crd apiextensionsv1.CustomResourceDefinition, ...) *apiextensionsv1.CustomResourceDefinition
- func Get(ctx context.Context, kube client.Client, gvr schema.GroupVersionResource) (*apiextensionsv1.CustomResourceDefinition, error)
- func InferGroupResource(gk schema.GroupKind) schema.GroupResource
- func Install(ctx context.Context, kube client.Client, ...) error
- func Lookup(ctx context.Context, kube client.Client, gvr schema.GroupVersionResource) (bool, error)
- func SetServedStorage(crd *apiextensionsv1.CustomResourceDefinition, version string, ...)
- func Uninstall(ctx context.Context, kube client.Client, gr schema.GroupResource) error
- func Unmarshal(dat []byte) (*apiextensionsv1.CustomResourceDefinition, error)
- func Update(ctx context.Context, kube client.Client, name string, ...) error
- type VersionConf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendVersion ¶
func AppendVersion(crd apiextensionsv1.CustomResourceDefinition, toadd apiextensionsv1.CustomResourceDefinition) (*apiextensionsv1.CustomResourceDefinition, error)
AppendVersion appends the version of the toadd CRD to the crd CRD and sets the Storage and Served fields in the last version of the crd CRD.
func ConversionConf ¶
func ConversionConf(crd apiextensionsv1.CustomResourceDefinition, conf *apiextensionsv1.CustomResourceConversion) *apiextensionsv1.CustomResourceDefinition
func Get ¶
func Get(ctx context.Context, kube client.Client, gvr schema.GroupVersionResource) (*apiextensionsv1.CustomResourceDefinition, error)
func InferGroupResource ¶
func InferGroupResource(gk schema.GroupKind) schema.GroupResource
func Install ¶
func Install(ctx context.Context, kube client.Client, obj *apiextensionsv1.CustomResourceDefinition) error
func SetServedStorage ¶
func SetServedStorage(crd *apiextensionsv1.CustomResourceDefinition, version string, served, storage bool)
func Unmarshal ¶
func Unmarshal(dat []byte) (*apiextensionsv1.CustomResourceDefinition, error)
func Update ¶
func Update(ctx context.Context, kube client.Client, name string, newObj *apiextensionsv1.CustomResourceDefinition) error
Types ¶
type VersionConf ¶
Click to show internal directories.
Click to hide internal directories.