Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AnnotationDomain is the domain used for NRI-specific annotations. AnnotationDomain = "noderesource.dev" // RequiredPluginsAnnotation can be used to annotate pods with a list // of pod- or container-specific plugins which must process containers // during creation. If enabled, the default validator checks for this // and rejects the creation of containers which fail this check. RequiredPluginsAnnotation = "required-plugins." + AnnotationDomain )
Variables ¶
This section is empty.
Functions ¶
func GetEffectiveAnnotation ¶
func GetEffectiveAnnotation(pod *api.PodSandbox, key, container string) (string, bool)
GetEffectiveAnnotation retrieves a custom annotation from a pod which applies to given container. The syntax allows both pod- and container- scoped annotations. Container-scoped annotations take precedence over pod-scoped ones. The key syntax defines the scope of the annotation.
- container-scope: <key>/container.<container-name>
- pod-scope: <key>/pod, or just <key>
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.