Merge pull request #1157 from jterry75/fix_a_few_typos

Minor typo in toCNIBandWidth
This commit is contained in:
Mike Brown 2019-05-30 21:35:26 +02:00 committed by GitHub
commit 0ab79ff849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) 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) { func toCNIBandWidth(annotations map[string]string) (*cni.BandWidth, error) {
ingress, egress, err := bandwidth.ExtractPodBandwidthResources(annotations) ingress, egress, err := bandwidth.ExtractPodBandwidthResources(annotations)
if err != nil { 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{} bandWidth := &cni.BandWidth{}