resourceutils

package
v1.4.1-0...-77b30eb Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StashCRLabel         = "stash-cr"
	StashedCMOwnedPVCKey = "ownedPVCs"
	StashedCMCRKey       = "cr-runtime-object"
)

Variables

This section is empty.

Functions

func GenerateDynamicClientForGVK

func GenerateDynamicClientForGVK(resourceType metav1.GroupVersionKind, namespace string, config *rest.Config) (k8sdynamic.ResourceInterface, error)

func GetGVKsRelevantForScaling

func GetGVKsRelevantForScaling() []metav1.GroupVersionKind

func ListResourcesByGVK

func ListResourcesByGVK(resourceType metav1.GroupVersionKind, namespace string, config *rest.Config) (*unstructured.UnstructuredList, k8sdynamic.ResourceInterface, error)

func ScaleDownGivenResources

func ScaleDownGivenResources(namespaces []string, resourceMap map[string]map[metav1.GroupVersionKind]map[string]string, config *rest.Config) error

func ScaleReplicas

func ScaleReplicas(namespace string, activate bool, printFunc func(string, string), config *rest.Config)

func ScaleUpResourcesInNamespace

func ScaleUpResourcesInNamespace(namespace string, dryRun bool, config *rest.Config) (map[metav1.GroupVersionKind]map[string]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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