[cri] add pod annotations to CNI call
Signed-off-by: Michael Crosby <michael@thepasture.io>
This commit is contained in:
@@ -370,6 +370,7 @@ func (c *criService) setupPodNetwork(ctx context.Context, sandbox *sandboxstore.
|
||||
func cniNamespaceOpts(id string, config *runtime.PodSandboxConfig) ([]cni.NamespaceOpts, error) {
|
||||
opts := []cni.NamespaceOpts{
|
||||
cni.WithLabels(toCNILabels(id, config)),
|
||||
cni.WithCapability(annotations.PodAnnotations, config.Annotations),
|
||||
}
|
||||
|
||||
portMappings := toCNIPortMappings(config.GetPortMappings())
|
||||
|
||||
Reference in New Issue
Block a user