- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for normalizedImageName (0.39 sec)
-
pkg/scheduler/framework/plugins/imagelocality/image_locality.go
var sum int64 for _, container := range pod.Spec.InitContainers { if state, ok := nodeInfo.ImageStates[normalizedImageName(container.Image)]; ok { sum += scaledImageScore(state, totalNumNodes) } } for _, container := range pod.Spec.Containers { if state, ok := nodeInfo.ImageStates[normalizedImageName(container.Image)]; ok { sum += scaledImageScore(state, totalNumNodes) } } return sum }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 06:17:57 UTC 2024 - 5K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/imagelocality/image_locality_test.go
{Name: "keep it as is 2", Input: "root@" + getImageFakeDigest("root"), Output: "root@" + getImageFakeDigest("root")}, } { t.Run(testCase.Name, func(t *testing.T) { image := normalizedImageName(testCase.Input) if image != testCase.Output { t.Errorf("expected image reference: %q, got %q", testCase.Output, image) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 19 06:17:57 UTC 2024 - 10.3K bytes - Viewed (0)