Help us shape the future of Go! Take the 2026 Go Developer Survey

annotations

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const NetworkAttachmentAnnot string = "k8s.v1.cni.cncf.io/networks"

NetworkAttachmentAnnot pod annotation for network-attachment-definition (mschuppert) for now specify the const from "github.com/k8snetworkplumbingwg/network-attachment-definition-client/pkg/apis/k8s.cni.cncf.io/v1" here to not have that dependency. If there is more we get from there could import it

Variables

This section is empty.

Functions

func GetNADAnnotation

func GetNADAnnotation(namespace string, nads []string) (map[string]string, error)

GetNADAnnotation returns pod annotation for network-attachment-definition e.g. k8s.v1.cni.cncf.io/networks: '[{"name": "internalapi", "namespace": "openstack"},{"name": "storage", "namespace": "openstack"}]' DEPRECATED in favor of CreateNetworksAnnotation from network pkg

Types

This section is empty.

Jump to

Keyboard shortcuts

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