customresourcedefinitions

package
v0.0.0-...-351f9be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CustomResourceDefinitions = schema.GroupVersionResource{
	Group:    "apiextensions.k8s.io",
	Version:  "v1",
	Resource: "customresourcedefinitions",
}

Functions

func BatchDeleteCustomResourceDefinition

func BatchDeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, list []string) error

deletes a list of custom resource definitions by name

func DeleteCustomResourceDefinition

func DeleteCustomResourceDefinition(client *rancher.Client, clusterID string, namespace string, name string) error

deletes a single custom resource definition by name

func GetCustomResourceDefinitionsListByName

func GetCustomResourceDefinitionsListByName(CRDList *unstructured.UnstructuredList, name string) []string

gets a list of names of custom resource definitions that contain the input string name from an Unstructured List

func ListCustomResourceDefinitions

func ListCustomResourceDefinitions(client *rancher.Client, clusterID string, namespace string) (*unstructured.UnstructuredList, error)

helper function that returns a pointer to an unstructured list of custom resource definitions

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL