Minor typo in toCNIBandWidth
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
parent
35e9f39991
commit
b8ea1fa177
@ -572,11 +572,11 @@ func (c *criService) setupPod(id string, path string, config *runtime.PodSandbox
|
||||
return "", result, errors.Errorf("failed to find network info for sandbox %q", id)
|
||||
}
|
||||
|
||||
// toCNIPortMappings converts CRI annotations to CNI bandwidth.
|
||||
// toCNIBandWidth converts CRI annotations to CNI bandwidth.
|
||||
func toCNIBandWidth(annotations map[string]string) (*cni.BandWidth, error) {
|
||||
ingress, egress, err := bandwidth.ExtractPodBandwidthResources(annotations)
|
||||
if err != nil {
|
||||
return nil, errors.Errorf("reaing pod bandwidth annotations: %v", err)
|
||||
return nil, errors.Errorf("reading pod bandwidth annotations: %v", err)
|
||||
}
|
||||
|
||||
bandWidth := &cni.BandWidth{}
|
||||
|
Loading…
Reference in New Issue
Block a user