package
0.4.0
Repository: https://github.com/druppelt/kuota-calc.git
Documentation: pkg.go.dev

# Functions

ConvertToResources converts a kubernetes/openshift ResourceRequirements struct to a Resources struct.
ResourceQuotaFromYaml decodes a single yaml document into a k8s object.
Total calculates the sum of all usages.

# Variables

ErrResourceNotSupported is returned if a k8s resource is not supported by kuota-calc.

# Structs

CalculationError is an error implementation that includes a k8s Kind/Version.
Details contains a few details of a k8s resource, which are needed to generate a detailed resource usage report.
PodResources contain the sum of the resources required by the initContainer, the normal containers and the maximum the pod can require at any time for each resource quantity.
Resources contains the limits and requests for cpu and memory that are typically used in kubernetes and openshift.
ResourceUsage summarizes the usage of compute resources for a k8s resource.