kubernetes: k8s.io/kubernetes/pkg/api/resource Index | Files

package resource

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

Index

Package Files

helpers.go

func ExtractContainerResourceValue Uses

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

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

func PodRequestsAndLimits Uses

func PodRequestsAndLimits(pod *api.Pod) (reqs api.ResourceList, limits api.ResourceList)

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

Package resource imports 5 packages (graph) and is imported by 3263 packages. Updated 2018-08-21. Refresh now. Tools for package owners.