- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for imageListFunc (0.12 sec)
-
pkg/kubelet/nodestatus/setters.go
return nil } } // Images returns a Setter that updates the images on the node. // imageListFunc is expected to return a list of images sorted in descending order by image size. // nodeStatusMaxImages is ignored if set to -1. func Images(nodeStatusMaxImages int32, imageListFunc func() ([]kubecontainer.Image, error), // typically Kubelet.imageManager.GetImageList ) Setter {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 12:12:04 UTC 2024 - 30.5K bytes - Viewed (0) -
pkg/kubelet/nodestatus/setters_test.go
}, } for _, tc := range cases { t.Run(tc.desc, func(t *testing.T) { ctx := context.Background() imageListFunc := func() ([]kubecontainer.Image, error) { // today, imageListFunc is expected to return a sorted list, // but we may choose to sort in the setter at some future point // (e.g. if the image cache stopped sorting for us)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 21:47:24 UTC 2024 - 76.1K bytes - Viewed (0)