# Functions
CalculateNodeRes calculate unallocated cpu, memory and left cpu, mem, pods for given node and its allocated cpu, memory.
GetAllNamespacesFromCache get all namespaces name list by k8s client with cache.
GetAllProjectsDisplayNameFromCache get all projects in org and return a project id to project display name map with cache.
GetImpersonateClient authenticate user by steve server and return an impersonate k8s client.
GetWorkloadAgeAndImage get age and image for workloads from .metadata.fields.
IsDeepEqual return true if objA and objB is deep equal.
IsJsonEqual return true if objA and objB is same after marshal by json.
No description provided by the author
ParseWorkloadID get workloadKind, namespace and name from id.
ParseWorkloadStatus get status for workloads from .metadata.fields.
ResourceToString return resource with unit Only support resource.DecimalSI and resource.BinarySI format Original unit is m (for DecimalSI) or B (for resource.BinarySI) Accurate to 1 decimal places.
# Constants
No description provided by the author
No description provided by the author
# Variables
PodStatus is a map of pod status to normal status.