Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for createUsedPVCSet (0.25 sec)

  1. pkg/scheduler/internal/cache/snapshot.go

    	s.nodeInfoList = nodeInfoList
    	s.havePodsWithAffinityNodeInfoList = havePodsWithAffinityNodeInfoList
    	s.havePodsWithRequiredAntiAffinityNodeInfoList = havePodsWithRequiredAntiAffinityNodeInfoList
    	s.usedPVCSet = createUsedPVCSet(pods)
    
    	return s
    }
    
    // createNodeInfoMap obtains a list of pods and pivots that list into a map
    // where the keys are node names and the values are the aggregated information
    // for that node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. pkg/scheduler/internal/cache/snapshot_test.go

    			},
    			expected: sets.New("foo/pvc1", "bar/pvc2"),
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.name, func(t *testing.T) {
    			usedPVCs := createUsedPVCSet(test.pods)
    			if diff := cmp.Diff(test.expected, usedPVCs); diff != "" {
    				t.Errorf("Unexpected usedPVCs (-want +got):\n%s", diff)
    			}
    		})
    	}
    }
    
    func TestNewSnapshot(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 12K bytes
    - Viewed (0)
Back to top