Documentation
¶
Index ¶
- Variables
- func DeleteObjectsList(c kube.CLIClient, dryRun bool, log clog.Logger, ...) error
- func DeleteResource(kc kube.CLIClient, dryRun bool, _ clog.Logger, obj *unstructured.Unstructured) error
- func GetRemovedResources(kc kube.CLIClient, dopName, dopNamespace string, includeClusterResources bool) ([]*unstructured.UnstructuredList, error)
- func NamespacedResources() []schema.GroupVersionKind
- func PrunedResourcesSchemas() []schema.GroupVersionKind
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ClusterResources = []schema.GroupVersionKind{ {Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRole"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleBinding"}, } ClusterControlPlaneResources = []schema.GroupVersionKind{ {Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRole"}, {Group: "rbac.authorization.k8s.io", Version: "v1", Kind: "ClusterRoleBinding"}, } AllClusterResources = append(ClusterResources, gvk.CustomResourceDefinition.Kubernetes(), ) )
Functions ¶
func DeleteObjectsList ¶
func DeleteObjectsList(c kube.CLIClient, dryRun bool, log clog.Logger, objectsList []*unstructured.UnstructuredList) error
func DeleteResource ¶
func DeleteResource(kc kube.CLIClient, dryRun bool, _ clog.Logger, obj *unstructured.Unstructured) error
func GetRemovedResources ¶
func GetRemovedResources(kc kube.CLIClient, dopName, dopNamespace string, includeClusterResources bool) ([]*unstructured.UnstructuredList, error)
func NamespacedResources ¶
func NamespacedResources() []schema.GroupVersionKind
func PrunedResourcesSchemas ¶
func PrunedResourcesSchemas() []schema.GroupVersionKind
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.