mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-30 15:01:24 +00:00
clean wrong notes. (#1036)
Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
parent
e692127d19
commit
f5b64339bf
@ -86,7 +86,7 @@ func (cp *checkpoint) getPodEntries() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// GetComputeDeviceMap returns an instance of a map of ResourceInfo
|
||||
// GetPodResourceMap returns an instance of a map of ResourceInfo
|
||||
func (cp *checkpoint) GetPodResourceMap(pod *v1.Pod) (map[string]*types.ResourceInfo, error) {
|
||||
podID := string(pod.UID)
|
||||
resourceMap := make(map[string]*types.ResourceInfo)
|
||||
|
@ -131,7 +131,7 @@ func (rc *kubeletClient) GetPodResourceMap(pod *v1.Pod) (map[string]*types.Resou
|
||||
ns := pod.Namespace
|
||||
|
||||
if name == "" || ns == "" {
|
||||
return nil, logging.Errorf("GetPodResourcesMap: Pod name or namespace cannot be empty")
|
||||
return nil, logging.Errorf("GetPodResourceMap: Pod name or namespace cannot be empty")
|
||||
}
|
||||
|
||||
for _, pr := range rc.resources {
|
||||
|
Loading…
Reference in New Issue
Block a user