kubernetesk8s.io/kubernetes/pkg/api/resource Index | Files

package resource

import "k8s.io/kubernetes/pkg/api/resource"

Index

Functions

func ExtractContainerResourceValue

func ExtractContainerResourceValue(fs *api.ResourceFieldSelector, container *api.Container) (string, error)

ExtractContainerResourceValue extracts the value of a resource in an already known container

func PodRequestsAndLimits

func PodRequestsAndLimits(pod *api.Pod) (reqs map[api.ResourceName]resource.Quantity, limits map[api.ResourceName]resource.Quantity)

PodRequestsAndLimits returns a dictionary of all defined resources summed up for all containers of the pod.

Source Files

helpers.go

Version
v1.10.0-beta.2
Published
Mar 7, 2018
Platform
js/wasm
Imports
5 packages
Last checked
6 minutes ago

Tools for package owners.