utils

package
v4.3.942+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespacedNameKey

func GetNamespacedNameKey(namespace, name string) string

GetNamespacedNameKey returns string "namespaced/name"

func GetNodeInfoDefaultStorageSizeBytes added in v0.9.166

func GetNodeInfoDefaultStorageSizeBytes() string

func GetTotalResourceFromContainers

func GetTotalResourceFromContainers(containers []corev1.Container) corev1.ResourceRequirements

func ParseResourceLinkForTopController added in v0.3.0

func ParseResourceLinkForTopController(resourceLink string) (*ApiResources.Controller, error)

ParseResourceLinkForTopController parses resourcelink string to get top controller information

func ServerHasOpenshiftAPIAppsV1 added in v0.9.1

func ServerHasOpenshiftAPIAppsV1() (bool, error)

ServerHasOpenshiftAPIAppsV1 returns true if the api-server has apiGroup named in "apps.openshift.io"

Types

type VolumeCapacity

type VolumeCapacity struct {
	Total int64
	PVC   int64
}

func GetVolumeCapacityUsedByPod

func GetVolumeCapacityUsedByPod(ctx context.Context, k8sClient client.Client, pod corev1.Pod) (VolumeCapacity, error)

func (*VolumeCapacity) Add

func (v *VolumeCapacity) Add(in VolumeCapacity)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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