customresourcedefinitions

package
v0.0.0-...-98e341c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

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