package kubernetes
import "github.com/intel/goresctrl/pkg/kubernetes"
Index ¶
Types ¶
type ClassOrigin ¶
type ClassOrigin int
ClassOrigin type indicates the source of container's class information: whether it is found from CRI level container annotations, Kubernetes' pod annotations, or it has not been found at all.
const ( ClassOriginNotFound ClassOrigin = iota ClassOriginContainerAnnotation ClassOriginPodAnnotation )
func ContainerClassFromAnnotations ¶
func ContainerClassFromAnnotations(containerAnnotation, podAnnotation, podAnnotationContainerPrefix string, containerName string, containerAnnotations, podAnnotations map[string]string) (string, ClassOrigin)
ContainerClassFromAnnotations determines the effective class of a container from the Pod annotations and CRI level container annotations of a container.
func (ClassOrigin) String ¶
func (c ClassOrigin) String() string
Source Files ¶
- Version
- v0.8.0 (latest)
- Published
- Sep 19, 2024
- Platform
- linux/amd64
- Last checked
- 2 days ago –
Tools for package owners.