Change pod annotation name to 'v1.multus-cni.io/default-network'

This commit is contained in:
Peng Liu
2018-11-30 11:07:59 +08:00
committed by Tomofumi Hayashi
parent c3be74d7d6
commit 96217dd16e
2 changed files with 3 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ func NewFakePod(name string, netAnnotation string, defaultNetAnnotation string)
}
if defaultNetAnnotation != "" {
annotations["multus-cni.io/default-network"] = defaultNetAnnotation
annotations["v1.multus-cni.io/default-network"] = defaultNetAnnotation
}
pod.ObjectMeta.Annotations = annotations