kubernetes

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL