Documentation
¶
Index ¶
- Constants
- func GenerateDynamicClientForGVK(resourceType metav1.GroupVersionKind, namespace string, config *rest.Config) (k8sdynamic.ResourceInterface, error)
- func GetGVKsRelevantForScaling() []metav1.GroupVersionKind
- func ListResourcesByGVK(resourceType metav1.GroupVersionKind, namespace string, config *rest.Config) (*unstructured.UnstructuredList, k8sdynamic.ResourceInterface, error)
- func ScaleDownGivenResources(namespaces []string, ...) error
- func ScaleReplicas(namespace string, activate bool, printFunc func(string, string), ...)
- func ScaleUpResourcesInNamespace(namespace string, dryRun bool, config *rest.Config) (map[metav1.GroupVersionKind]map[string]string, error)
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 ScaleReplicas ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.