forked from kubernetes/autoscaler
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
17 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
0001-Update-vertical-pod-autoscaler-pkg-admission-control.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
From dd8c42bb486ad6aaa96dde56eab34786d10fd418 Mon Sep 17 00:00:00 2001 | ||
From: David Benque <[email protected]> | ||
Date: Mon, 28 Aug 2023 11:07:24 +0200 | ||
Subject: [PATCH] Update | ||
vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider_test.go | ||
|
||
Co-authored-by: Joachim <[email protected]> | ||
--- | ||
.../pod/recommendation/recommendation_provider_test.go | 3 +-- | ||
1 file changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider_test.go b/vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider_test.go | ||
index f58e98f1a..36e64fad9 100644 | ||
--- a/vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider_test.go | ||
+++ b/vertical-pod-autoscaler/pkg/admission-controller/resource/pod/recommendation/recommendation_provider_test.go | ||
@@ -311,8 +311,7 @@ func TestUpdateResourceRequests(t *testing.T) { | ||
return | ||
} | ||
|
||
- _, foundEmpty := resources[0].Requests[""] | ||
- assert.Equal(t, foundEmpty, false, "empty resourceKey have not been purged") | ||
+ assert.Contains(t, resources, "", "expected empty resource to be removed") | ||
|
||
cpuRequest := resources[0].Requests[apiv1.ResourceCPU] | ||
assert.Equal(t, tc.expectedCPU.Value(), cpuRequest.Value(), "cpu request doesn't match") | ||
-- | ||
2.37.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters