mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-01 17:09:45 +00:00
clean wrong notes. (#1036)
Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
@@ -86,7 +86,7 @@ func (cp *checkpoint) getPodEntries() error {
|
|||||||
return nil
|
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) {
|
func (cp *checkpoint) GetPodResourceMap(pod *v1.Pod) (map[string]*types.ResourceInfo, error) {
|
||||||
podID := string(pod.UID)
|
podID := string(pod.UID)
|
||||||
resourceMap := make(map[string]*types.ResourceInfo)
|
resourceMap := make(map[string]*types.ResourceInfo)
|
||||||
|
@@ -131,7 +131,7 @@ func (rc *kubeletClient) GetPodResourceMap(pod *v1.Pod) (map[string]*types.Resou
|
|||||||
ns := pod.Namespace
|
ns := pod.Namespace
|
||||||
|
|
||||||
if name == "" || ns == "" {
|
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 {
|
for _, pr := range rc.resources {
|
||||||
|
Reference in New Issue
Block a user