plugin

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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