Kubernetes Prow Robot
c4ec31684f
Merge pull request #1802 from ingvagabund/global-node-selector-as-indexer
...
feat: register a node indexer for the global node selector instead of listing nodes with the selector
2026-01-12 15:08:13 +05:30
Kubernetes Prow Robot
7d2c31cd39
Merge pull request #1808 from ingvagabund/profile-instance-id
...
feat(profile): inject a plugin instance ID to each built plugin
2026-01-09 15:33:43 +05:30
Jan Chaloupka
cf9edca33c
feat(profile): inject a plugin instance ID to each built plugin
2026-01-06 12:26:35 +01:00
Kubernetes Prow Robot
f164943257
Merge pull request #1807 from ingvagabund/docs
...
doc(Design Decisions FAQ): Why doesn't the framework provide helpers for registering and retrieving indexers for plugins
2026-01-05 21:20:39 +05:30
Jan Chaloupka
1fe9e2c345
doc(Design Decisions FAQ): Why doesn't the framework provide helpers for registering and retrieving indexers for plugins
2026-01-05 16:10:39 +01:00
Kubernetes Prow Robot
16ccff8ed8
Merge pull request #1806 from ingvagabund/profile-refactoring
...
refactor(pkg/framework/profile): dedup unit test code
2026-01-05 15:12:37 +05:30
Jan Chaloupka
38f0f15787
chore: make gen
2026-01-04 20:23:13 +01:00
Jan Chaloupka
52f2aea444
refactor(pkg/framework/profile): add registerDefaultEvictor helper function
2026-01-04 19:43:47 +01:00
Jan Chaloupka
f3c63011cc
refactor(pkg/framework/profile): add fake plugin registration helpers
2026-01-04 19:43:29 +01:00
Jan Chaloupka
47b939dd86
refactor(pkg/framework/profile): build a profile through a shared function to reduce code duplication
2026-01-04 19:42:30 +01:00
Kubernetes Prow Robot
89c88f483b
Merge pull request #1800 from ingvagabund/readnodes-unit-test
...
fix(TestReadyNodesWithNodeSelector): make sure nodeLister.List always returns a non-empty list so the lister is always tested
2025-12-26 20:48:31 +05:30
Kubernetes Prow Robot
d558fa3a5b
Merge pull request #1804 from ingvagabund/refactorings
...
refactor(plugins): simplify the way pods are created
2025-12-21 14:38:30 -08:00
Jan Chaloupka
7ef3673d4c
refactor: inline single-statement apply functions in BuildTestPod calls
2025-12-21 21:41:59 +01:00
Jan Chaloupka
988e0b8868
refactor: replace pod.Spec.Volumes with test.SetHostPathEmptyDirVolumeSource in plugin tests
2025-12-21 21:36:24 +01:00
Jan Chaloupka
fc8ae3b4e8
refactor: replace pod.Spec.Priority with test.SetPodPriority in plugin tests
2025-12-21 21:36:05 +01:00
Kubernetes Prow Robot
6d7fedc982
Merge pull request #1803 from ingvagabund/refactor-defaultevictir-test
...
refactor(TestDefaultEvictor): de-dup code and use helpers
2025-12-20 06:54:31 -08:00
Jan Chaloupka
769ded35f1
make fmt
2025-12-20 15:24:37 +01:00
Jan Chaloupka
3283635149
refactor(defaultevictor_test): move newProtectedStorageClassesConfig to package level
...
Move the newProtectedStorageClassesConfig helper function from local scope
to package level so it can be reused by both TestDefaultEvictorFilter and
Test_protectedPVCStorageClasses, eliminating code duplication.
2025-12-20 15:17:06 +01:00
Jan Chaloupka
994ce3e2f7
refactor(TestDefaultEvictor): add setPodPVCVolumeWithFooClaimName helper function
2025-12-20 14:36:10 +01:00
Jan Chaloupka
90e4115b78
refactor(TestDefaultEvictor): add setPodLocalStorage helper function
2025-12-20 14:29:19 +01:00
Jan Chaloupka
8913d79d14
refactor(TestDefaultEvictor): replace mirror pod annotation assignments with test.SetMirrorPodAnnotation
2025-12-20 14:28:08 +01:00
Jan Chaloupka
9a5d7e8286
refactor(TestDefaultEvictor): replace system critical priority assignments with test.SetPodPriority
2025-12-20 14:27:18 +01:00
Jan Chaloupka
674e463bc2
refactor(TestDefaultEvictor): replace manual owner reference assignments with test utilities
2025-12-20 14:25:58 +01:00
Jan Chaloupka
1df3ef5030
refactor(TestDefaultEvictor): add setPodEvictAnnotation helper function
2025-12-20 14:22:28 +01:00
Jan Chaloupka
3068f8431a
refactor(TestDefaultEvictor): add setPodNodeSelector helper function
2025-12-20 14:11:46 +01:00
Jan Chaloupka
dfd2b95d2d
refactor(TestDefaultEvictor): add setNodeLabel helper function
2025-12-20 14:08:11 +01:00
Jan Chaloupka
3bb4529c34
refactor(TestDefaultEvictor): use test.SetNormalOwnerRef
2025-12-20 14:00:40 +01:00
Jan Chaloupka
b8765bd8ee
refactor(TestDefaultEvictor): add setNodeTaint helper function
2025-12-20 13:54:50 +01:00
Jan Chaloupka
d666e4b830
refactor(TestDefaultEvictor): add buildTestPod helper function
2025-12-20 13:43:00 +01:00
Jan Chaloupka
08f733863e
refactor(TestDefaultEvictor): add buildTestNode helper function
2025-12-20 13:25:39 +01:00
Jan Chaloupka
93a516a58a
feat: register a node indexer for the global node selector instead of listing nodes with the selector
...
To avoid iterating through every node every time a list of nodes is
requested. This is a prerequisition work for introducing profile level
node selectors.
2025-12-19 23:25:24 +01:00
Jan Chaloupka
60da931e0e
fix(TestReadyNodesWithNodeSelector): make sure nodeLister.List always returns a non-empty list so the lister is always tested
...
The case of an empty list of nodes from the lister is not easy to catch.
This change makes sure one more initial condition is met.
2025-12-18 17:06:25 +01:00
Kubernetes Prow Robot
12a9db4da0
Merge pull request #1798 from ingvagabund/contriburing-descheduler
...
doc: introduce contributing guidelines specific to the project
2025-12-15 12:43:47 -08:00
Jan Chaloupka
41da7497c3
doc: introduce contributing guidelines specific to the project
...
The document is to be extended on the fly
2025-12-15 21:11:50 +01:00
Kubernetes Prow Robot
b56f3cdae9
Merge pull request #1797 from ingvagabund/nodetaint-unit-test
...
refactor(TestDeletePodsViolatingNodeTaints): inline object creation
2025-12-15 09:51:45 -08:00
Jan Chaloupka
162a2d14b7
refactor(TestRemovePodsHavingTooManyRestarts): remove leftover comments
2025-12-15 18:20:38 +01:00
Jan Chaloupka
78788d72de
refactor(node_taint_test): inline p15
2025-12-15 18:19:04 +01:00
Jan Chaloupka
956eeefede
refactor(node_taint_test): inline p14
2025-12-15 18:18:59 +01:00
Jan Chaloupka
1f7bd1fba9
refactor(node_taint_test): inline p13
2025-12-15 18:18:56 +01:00
Jan Chaloupka
5fdf368593
refactor(node_taint_test): inline p12
2025-12-15 18:18:51 +01:00
Jan Chaloupka
50b6e178c1
refactor(node_taint_test): inline p11
2025-12-15 18:18:47 +01:00
Jan Chaloupka
c1ad532c46
refactor(node_taint_test): inline p10
2025-12-15 18:18:43 +01:00
Jan Chaloupka
7e40aae2dc
refactor(node_taint_test): inline p9
2025-12-15 18:18:39 +01:00
Jan Chaloupka
e09bd976f5
refactor(node_taint_test): inline p8
2025-12-15 18:18:35 +01:00
Jan Chaloupka
ffb1f44144
refactor(node_taint_test): inline p7
2025-12-15 18:18:24 +01:00
Jan Chaloupka
cb595f2524
refactor(node_taint_test): inline p6
2025-12-15 18:17:34 +01:00
Jan Chaloupka
c46817f6df
refactor(node_taint_test): inline p5
2025-12-15 18:17:30 +01:00
Jan Chaloupka
032db38d6c
refactor(node_taint_test): inline p4
2025-12-15 18:17:26 +01:00
Jan Chaloupka
c1cd3ae794
refactor(node_taint_test): inline p3
2025-12-15 18:17:21 +01:00
Jan Chaloupka
060d9c8573
refactor(node_taint_test): inline p2
2025-12-15 18:17:17 +01:00
Jan Chaloupka
51bcf60ccf
refactor(node_taint_test): inline p1
2025-12-15 18:17:12 +01:00
Jan Chaloupka
b472549cf6
refactor(node_taint_test): add withKubeSystemCriticalPod helper
2025-12-15 18:16:58 +01:00
Jan Chaloupka
c68e8a6d06
refactor(node_taint_test): add withTestTaintXToleration1 helper
2025-12-15 18:16:19 +01:00
Jan Chaloupka
68d9d4d044
refactor(node_taint_test): add datacenter label constants
2025-12-15 18:16:14 +01:00
Jan Chaloupka
452b1ff7d9
refactor(node_taint_test): add SetPodVolumes and withLocalStorageVolume helpers
2025-12-15 18:16:08 +01:00
Jan Chaloupka
f123f78b44
refactor: add SetSystemCriticalPriority helper function
2025-12-15 18:15:31 +01:00
Jan Chaloupka
ca0f7535fb
refactor: add SetMirrorPodAnnotation helper function
2025-12-15 17:41:46 +01:00
Jan Chaloupka
78ff3fe92a
refactor(node_taint_test): add withTestTaintToleration1 helper
2025-12-15 17:37:45 +01:00
Jan Chaloupka
0269283185
refactor(node_taint_test): add buildTestPodWithNormalOwnerRef helper
2025-12-15 17:34:18 +01:00
Jan Chaloupka
57ed329feb
refactor(node_taint_test): inline node7
2025-12-15 17:26:04 +01:00
Jan Chaloupka
b96a41a745
refactor(node_taint_test): inline node6
2025-12-15 17:25:27 +01:00
Jan Chaloupka
6b6f7ba5c7
refactor(node_taint_test): inline node5
2025-12-15 17:24:53 +01:00
Jan Chaloupka
a3ca65ea14
refactor(node_taint_test): inline node4
2025-12-15 17:24:17 +01:00
Jan Chaloupka
d81580c93e
refactor(node_taint_test): inline node3
2025-12-15 17:23:42 +01:00
Jan Chaloupka
0f7ff8a2b7
refactor(node_taint_test): inline node2
2025-12-15 17:23:08 +01:00
Jan Chaloupka
d27afd0319
refactor(node_taint_test): inline node1
2025-12-15 17:21:25 +01:00
Jan Chaloupka
3d48efdff4
refactor(node_taint_test): add dedicated functions for remaining nodes
2025-12-15 17:14:06 +01:00
Jan Chaloupka
e5d5cf2229
refactor(node_taint_test): create dedicated functions for taint configurations
2025-12-15 17:11:54 +01:00
Jan Chaloupka
f65209d4fa
refactor(node_taint_test): inline addTaintsToNode
2025-12-15 17:08:50 +01:00
Jan Chaloupka
b9ceb9144f
refactor(node_taint_test): remove default false settings for evict flags
2025-12-15 17:01:43 +01:00
Jan Chaloupka
2bbec0cbc6
refactor(node_taint_test): apply pod single creation convention for p15
2025-12-15 16:55:21 +01:00
Jan Chaloupka
a363da9806
refactor(node_taint_test): apply pod single creation convention for p14
2025-12-15 16:55:02 +01:00
Jan Chaloupka
63b3bd3b4d
refactor(node_taint_test): apply pod single creation convention for p13
2025-12-15 16:54:44 +01:00
Jan Chaloupka
7fb935c650
refactor(node_taint_test): replace GetNormalPodOwnerRefList with SetNormalOwnerRef
2025-12-15 16:52:42 +01:00
Kubernetes Prow Robot
f85b2f8d4d
Merge pull request #1796 from ingvagabund/nodeaffinity-unit-test
...
refactor(TestRemovePodsViolatingNodeAffinity): inline object creation
2025-12-15 07:45:47 -08:00
Jan Chaloupka
0580b5942c
refactor(node_taint_test): apply pod single creation convention for p12
2025-12-15 16:44:46 +01:00
Jan Chaloupka
4171af7e8a
refactor(node_taint_test): apply pod single creation convention for p11
2025-12-15 16:44:19 +01:00
Jan Chaloupka
a1678cd464
refactor(node_taint_test): apply pod single creation convention for p10
2025-12-15 16:44:01 +01:00
Jan Chaloupka
2f90d1dd01
refactor(node_taint_test): apply pod single creation convention for p9
2025-12-15 16:43:32 +01:00
Jan Chaloupka
f0cda32b6e
refactor(node_taint_test): apply pod single creation convention for p8
2025-12-15 16:43:01 +01:00
Jan Chaloupka
43523113ff
refactor(node_taint_test): apply pod single creation convention for p7
2025-12-15 16:42:34 +01:00
Jan Chaloupka
1b7889f4a3
refactor(node_taint_test): apply pod single creation convention for p6
2025-12-15 16:42:00 +01:00
Jan Chaloupka
b86315f097
refactor(node_taint_test): apply pod single creation convention for p5
2025-12-15 16:41:39 +01:00
Jan Chaloupka
0d496dfc5d
refactor(node_taint_test): apply pod single creation convention for p4
2025-12-15 16:41:19 +01:00
Jan Chaloupka
d6b35eaed6
refactor(node_taint_test): apply pod single creation convention for p3
2025-12-15 16:40:41 +01:00
Jan Chaloupka
dc18f9f330
refactor(node_taint_test): apply pod single creation convention for p2
2025-12-15 16:39:54 +01:00
Jan Chaloupka
39212419e6
refactor(node_taint_test): apply pod single creation convention for p1
2025-12-15 16:38:35 +01:00
Jan Chaloupka
64f77ce6ee
refactor(node_taint_test): apply node single creation convention for node7
2025-12-15 16:35:38 +01:00
Jan Chaloupka
ca5326c5c4
refactor(node_taint_test): apply node single creation convention for node6
2025-12-15 16:35:12 +01:00
Jan Chaloupka
9cf075ffc4
refactor(node_taint_test): apply node single creation convention for node5
2025-12-15 16:34:47 +01:00
Jan Chaloupka
3325fe0b8b
refactor(node_taint_test): apply node single creation convention for node2
2025-12-15 16:33:28 +01:00
Jan Chaloupka
6c41ebd8f3
refactor(node_taint_test): apply node single creation convention for node1
2025-12-15 16:33:12 +01:00
Jan Chaloupka
ba034d6e0e
refactor(node_taint_test): add node name constants
2025-12-15 16:23:38 +01:00
Jan Chaloupka
3289554f90
refactor(node_taint_test): add buildTestPod helper function
2025-12-15 16:20:01 +01:00
Jan Chaloupka
72575c2f23
refactor(node_taint_test): add buildTestNode helper function
2025-12-15 16:17:49 +01:00
Jan Chaloupka
07616c3fc0
refactor(TestRemovePodsHavingTooManyRestarts): make fmt
2025-12-15 16:14:50 +01:00
Jan Chaloupka
cad120881f
refactor(TestRemovePodsViolatingNodeAffinity): apply pod single creation convention
2025-12-15 16:02:37 +01:00
Jan Chaloupka
aec4416099
refactor(TestRemovePodsViolatingNodeAffinity): add buildUnschedulableNodeWithLabels function
2025-12-15 15:59:01 +01:00
Jan Chaloupka
7b9d5d2539
refactor(TestRemovePodsViolatingNodeAffinity): inline nodeWithoutLabels
2025-12-15 15:50:25 +01:00
Jan Chaloupka
9f7629136f
refactor(TestRemovePodsViolatingNodeAffinity): inline nodeWithLabels
2025-12-15 15:48:00 +01:00
Jan Chaloupka
42d255fd95
refactor(TestRemovePodsViolatingNodeAffinity): update addPodsToNode to accept nodeName
2025-12-15 15:33:58 +01:00
Jan Chaloupka
183a138d82
refactor(TestRemovePodsViolatingNodeAffinity): add constants for node names
2025-12-15 15:28:03 +01:00
Kubernetes Prow Robot
f669c45892
Merge pull request #1795 from ingvagabund/podantiaffinity-unit-test
...
refactor(TestPodAntiAffinity): inline object creation
2025-12-15 05:53:45 -08:00
Jan Chaloupka
a2ffbc1261
refactor(TestRemovePodsViolatingNodeAffinity): apply unit test convention for podWithNodeAffinity
2025-12-15 14:35:05 +01:00
Jan Chaloupka
2cda1bd89d
refactor(TestRemovePodsViolatingNodeAffinity): deduplicate pod creation with buildTestPod helper
2025-12-15 14:35:03 +01:00
Jan Chaloupka
691a1da43b
refactor(TestRemovePodsViolatingNodeAffinity): apply unit test convention for unschedulableNodeWithLabels
2025-12-15 14:34:59 +01:00
Jan Chaloupka
8fe74c7a0c
refactor(TestRemovePodsViolatingNodeAffinity): apply unit test convention for nodeWithLabels
2025-12-15 14:34:54 +01:00
Jan Chaloupka
102bd6a91d
refactor(TestRemovePodsViolatingNodeAffinity): deduplicate node creation with buildTestNode helper
2025-12-15 14:34:44 +01:00
Jan Chaloupka
3d1e15bb82
refactor(TestPodAntiAffinity): apply gofumpt formatting
2025-12-15 14:21:32 +01:00
Jan Chaloupka
3c02d9029c
refactor(TestPodAntiAffinity): inline p1, p2, p4 builders
2025-12-15 14:13:51 +01:00
Jan Chaloupka
57a3e610a7
refactor(TestPodAntiAffinity): deduplicate p1, p3, p4 builders
2025-12-15 14:06:05 +01:00
Jan Chaloupka
7cec27d467
refactor(TestPodAntiAffinity): inline nonEvictablePod
2025-12-15 13:56:37 +01:00
Jan Chaloupka
688b45011a
refactor(TestPodAntiAffinity): inline p11
2025-12-15 13:56:07 +01:00
Jan Chaloupka
a96451030c
refactor(TestPodAntiAffinity): inline p10
2025-12-15 13:55:36 +01:00
Jan Chaloupka
a4930ebc83
refactor(TestPodAntiAffinity): inline p9
2025-12-15 13:55:11 +01:00
Jan Chaloupka
ad872f8b77
refactor(TestPodAntiAffinity): inline p8
2025-12-15 13:54:40 +01:00
Jan Chaloupka
a0654df270
refactor(TestPodAntiAffinity): inline p7
2025-12-15 13:54:07 +01:00
Jan Chaloupka
03b5a9a967
refactor(TestPodAntiAffinity): inline p6
2025-12-15 13:53:43 +01:00
Jan Chaloupka
9f2d22c1f7
refactor(TestPodAntiAffinity): inline p5
2025-12-15 13:53:19 +01:00
Jan Chaloupka
cbe1c1e559
refactor(TestPodAntiAffinity): inline p4
2025-12-15 13:52:21 +01:00
Jan Chaloupka
87182c5e8f
refactor(TestPodAntiAffinity): inline p3
2025-12-15 13:51:58 +01:00
Jan Chaloupka
2765e31048
refactor(TestPodAntiAffinity): inline p2
2025-12-15 13:51:00 +01:00
Jan Chaloupka
87f675a2cd
refactor(TestPodAntiAffinity): inline p1
2025-12-15 13:48:01 +01:00
Jan Chaloupka
a400a66d51
refactor(TestPodAntiAffinity): create dedicated builders for p1-p4 and nonEvictablePod
2025-12-15 13:43:11 +01:00
Jan Chaloupka
fa427a2b37
refactor(TestPodAntiAffinity): deduplicate setting Labels for foo1-bar1
2025-12-15 13:38:58 +01:00
Jan Chaloupka
90672630da
refactor(TestPodAntiAffinity): deduplicate setting Labels for foo-bar
2025-12-15 13:37:55 +01:00
Jan Chaloupka
6a00214457
refactor(TestPodAntiAffinity): deduplicate setPodAntiAffinity for foo1-bar1
2025-12-15 13:36:27 +01:00
Jan Chaloupka
9413b0c654
refactor(TestPodAntiAffinity): deduplicate setPodAntiAffinity for foo-bar
2025-12-15 13:34:05 +01:00
Jan Chaloupka
3072a59ea0
refactor(TestPodAntiAffinity): ensure nonEvictablePod is created only through apply argument
2025-12-15 13:25:04 +01:00
Jan Chaloupka
0e56823865
refactor(TestPodAntiAffinity): ensure p11 is created only through apply argument
2025-12-15 13:24:09 +01:00
Jan Chaloupka
ea80f7d307
refactor(TestPodAntiAffinity): ensure p10 is created only through apply argument
2025-12-15 13:23:46 +01:00
Jan Chaloupka
6638b976ad
refactor(TestPodAntiAffinity): ensure p9 is created only through apply argument
2025-12-15 13:23:10 +01:00
Jan Chaloupka
116385718f
refactor(TestPodAntiAffinity): ensure p8 is created only through apply argument
2025-12-15 13:22:35 +01:00
Jan Chaloupka
5ad695166a
refactor(TestPodAntiAffinity): ensure p7 is created only through apply argument
2025-12-15 13:22:12 +01:00
Jan Chaloupka
d5e0ec597f
refactor(TestPodAntiAffinity): ensure p6 is created only through apply argument
2025-12-15 13:21:32 +01:00
Jan Chaloupka
4b86cdd31a
refactor(TestPodAntiAffinity): ensure p5 is created only through apply argument
2025-12-15 13:20:53 +01:00
Jan Chaloupka
99527292e0
refactor(TestPodAntiAffinity): ensure p4 is created only through apply argument
2025-12-15 13:20:06 +01:00
Jan Chaloupka
cf79af6fba
refactor(TestPodAntiAffinity): ensure p3 is created only through apply argument
2025-12-15 13:19:38 +01:00
Jan Chaloupka
da55c779f2
refactor(TestPodAntiAffinity): ensure p2 is created only through apply argument
2025-12-15 13:18:50 +01:00
Kubernetes Prow Robot
bc6500d917
Merge pull request #1794 from ingvagabund/toomanyrestarts-unit-test
...
refactor(TestRemovePodsHavingTooManyRestarts): inline object creation
2025-12-15 03:59:45 -08:00
Jan Chaloupka
c5b9debe56
refactor(TestPodAntiAffinity): ensure p1 is created only through apply argument
2025-12-15 12:57:19 +01:00
Jan Chaloupka
18f847bbe8
refactor(TestPodAntiAffinity): create buildTestPodForNode1 to deduplicate nodeName1
2025-12-15 12:54:42 +01:00
Jan Chaloupka
6e753ac5fb
refactor(TestPodAntiAffinity): create buildTestPod helper to deduplicate 100 and 0 literals
2025-12-15 12:52:02 +01:00
Jan Chaloupka
b797ca6ba2
refactor(TestPodAntiAffinity): inline node2, node3, node4, and node5
2025-12-15 12:48:50 +01:00
Jan Chaloupka
4ffabad669
refactor(TestPodAntiAffinity): create buildTestNode1 and inline node1
2025-12-15 12:45:07 +01:00
Jan Chaloupka
bba62ccb93
refactor(TestPodAntiAffinity): extract setNodeMainRegionLabel helper
2025-12-15 12:40:46 +01:00
Jan Chaloupka
1f856595f5
refactor(TestPodAntiAffinity): add nodeName constants
...
refactor(TestPodAntiAffinity): replace node.Name with nodeName constants
2025-12-15 12:36:23 +01:00
Jan Chaloupka
993162dd44
refactor(TestPodAntiAffinity): replace test.BuildTestNode with buildTestNode helper
2025-12-15 12:30:30 +01:00
Jan Chaloupka
ee73336fd8
refactor(TestRemovePodsHavingTooManyRestarts): inline node5
2025-12-15 12:25:03 +01:00
Jan Chaloupka
75f655e271
refactor(TestRemovePodsHavingTooManyRestarts): inline node4
2025-12-15 12:24:46 +01:00
Jan Chaloupka
76895273f9
refactor(TestRemovePodsHavingTooManyRestarts): inline node3
2025-12-15 12:11:09 +01:00
Jan Chaloupka
35d2103fcf
refactor(TestRemovePodsHavingTooManyRestarts): inline node2
2025-12-15 12:10:34 +01:00
Jan Chaloupka
b069ae009a
refactor(TestRemovePodsHavingTooManyRestarts): inline node1
2025-12-15 12:08:58 +01:00
Jan Chaloupka
be275deea5
refactor(TestRemovePodsHavingTooManyRestarts): node3 as a constant
2025-12-15 12:06:47 +01:00
Jan Chaloupka
a5d3241a54
refactor(TestRemovePodsHavingTooManyRestarts): replace test.BuildTestNode with buildTestNode helpers
2025-12-15 12:05:44 +01:00
Jan Chaloupka
2af9ea8449
refactor(TestRemovePodsHavingTooManyRestarts): remove applyFunc and apply modifications in initPods
2025-12-15 12:04:20 +01:00
Jan Chaloupka
60fa5aa228
refactor(TestRemovePodsHavingTooManyRestarts): create all the pods as part of a unit test definition
2025-12-15 12:04:10 +01:00
Jan Chaloupka
a94d22fd1b
refactor(TestRemovePodsHavingTooManyRestarts): create all testing pods under initPods
2025-12-15 12:03:59 +01:00
Jan Chaloupka
8c70b02088
refactor(TestRemovePodsHavingTooManyRestarts): single testing pods creation
2025-12-15 12:03:22 +01:00
Jan Chaloupka
ec58fed521
refactor(TestRemovePodsHavingTooManyRestarts): create each init container through a single invocation
2025-12-15 12:03:08 +01:00
Jan Chaloupka
bf9cf0ee1c
refactor(TestRemovePodsHavingTooManyRestarts): use test.Set...OwnerRef instead
2025-12-15 11:03:45 +01:00
Jan Chaloupka
6ebb0b7aa7
refactor(TestRemovePodsHavingTooManyRestarts): extract setPodContainerStatusRestartCount helper
2025-12-15 00:23:03 +01:00
Kubernetes Prow Robot
bb01360776
Merge pull request #1793 from ingvagabund/duplicates-unit-test
...
refactor(TestRemoveDuplicates): reduce test code duplication
2025-12-14 08:35:44 -08:00
Jan Chaloupka
c8bc668e04
refactor(TestRemoveDuplicatesUniformly): reduce duplication in setTolerations
2025-12-14 17:05:42 +01:00
Jan Chaloupka
b64426888b
refactor(TestRemoveDuplicatesUniformly): reduce duplication in setWorkerLabelSelector
2025-12-14 17:05:21 +01:00
Jan Chaloupka
1306cf38a1
refactor(TestRemoveDuplicatesUniformly): reduce duplication in setNotMasterNodeSelector
2025-12-14 17:04:18 +01:00
Jan Chaloupka
bc06d1be83
refactor: replace test.BuildTestPod with buildTestPodForNode
2025-12-14 16:40:55 +01:00
Jan Chaloupka
c9e87bb97d
Merge pull request #1792 from ingvagabund/duplicates-unit-test
...
refactor(TestFindDuplicatePods): reduce duplicates and inline
2025-12-14 17:27:11 +02:00
Jan Chaloupka
05b6d5e343
refactor(TestFindDuplicatePods): remove leftover comments
2025-12-14 16:16:24 +01:00
Jan Chaloupka
044f75dcec
refactor(TestFindDuplicatePods): inline node6 creation
2025-12-14 16:16:22 +01:00
Jan Chaloupka
6e62af3dbf
refactor(TestFindDuplicatePods): inline node5 creation
2025-12-14 16:16:20 +01:00
Jan Chaloupka
2fac727be3
refactor(TestFindDuplicatePods): inline node4 creation
2025-12-14 16:16:17 +01:00
Jan Chaloupka
babc4137a4
refactor(TestFindDuplicatePods): inline node3 creation
2025-12-14 16:16:12 +01:00
Jan Chaloupka
fc033caf21
refactor(TestFindDuplicatePods): inline node2 creation
2025-12-14 16:16:10 +01:00
Jan Chaloupka
fd524f2172
refactor(TestFindDuplicatePods): inline node1 creation
2025-12-14 16:07:27 +01:00
Jan Chaloupka
47275831ab
refactor(TestFindDuplicatePods): apply buildTestNode helper to node variables
...
refactor(TestRemoveDuplicatesUniformly): apply buildTestNode helper
2025-12-14 16:00:50 +01:00
Jan Chaloupka
b8b0fa0565
refactor(TestFindDuplicatePods): inline p20 pod creation
2025-12-14 14:27:05 +01:00
Jan Chaloupka
daaa5896a9
refactor(TestFindDuplicatePods): inline p19 pod creation
2025-12-14 14:26:23 +01:00
Jan Chaloupka
e27864717d
refactor(TestFindDuplicatePods): inline p17 pod creation
2025-12-14 14:25:26 +01:00
Jan Chaloupka
e8cf01591e
refactor(TestFindDuplicatePods): inline p16 pod creation
2025-12-14 14:24:36 +01:00
Jan Chaloupka
d7766cccfd
refactor(TestFindDuplicatePods): inline p15 pod creation
2025-12-14 14:22:22 +01:00
Jan Chaloupka
3ebffe5a86
refactor(TestFindDuplicatePods): inline p13 pod creation
2025-12-14 14:20:48 +01:00
Jan Chaloupka
4e758c18e8
refactor(TestFindDuplicatePods): inline p12 pod creation
2025-12-14 14:19:19 +01:00
Jan Chaloupka
1c494f9c44
refactor(TestFindDuplicatePods): inline p11 pod creation
2025-12-14 14:17:37 +01:00
Jan Chaloupka
45dfe3011c
refactor(TestFindDuplicatePods): inline p10 pod creation
2025-12-14 14:11:13 +01:00
Jan Chaloupka
eeb459d6d4
refactor(TestFindDuplicatePods): inline p9 pod creation
2025-12-14 14:10:18 +01:00
Jan Chaloupka
f3d91fc69f
refactor(TestFindDuplicatePods): inline p8 pod creation
2025-12-14 14:04:23 +01:00
Jan Chaloupka
e9dcd4e54d
refactor(TestFindDuplicatePods): inline p7 pod creation
2025-12-14 14:03:22 +01:00
Jan Chaloupka
8490ed9c8f
refactor(TestFindDuplicatePods): inline p6 pod creation
2025-12-14 14:01:21 +01:00
Jan Chaloupka
01fb826bd3
refactor(TestFindDuplicatePods): inline p5 pod creation
2025-12-14 13:58:38 +01:00
Jan Chaloupka
9b50aa91f8
refactor(TestFindDuplicatePods): inline p4 pod creation
2025-12-14 13:44:24 +01:00
Jan Chaloupka
7a5bf8c2f0
refactor(TestFindDuplicatePods): inline p3 pod creation
2025-12-14 13:43:34 +01:00
Jan Chaloupka
df06442830
refactor(TestFindDuplicatePods): inline p2 pod creation
2025-12-14 13:39:56 +01:00
Jan Chaloupka
180548cc1a
refactor(TestFindDuplicatePods): inline p1 pod creation
2025-12-14 13:37:23 +01:00
Jan Chaloupka
0aee6cff48
refactor(TestFindDuplicatePods): introduce buildTestPodWithRSOwnerRefWithNamespaceForNode1 helper
2025-12-14 13:33:56 +01:00
Jan Chaloupka
7a0257a682
refactor(TestFindDuplicatePods): introduce buildTestPodWithRSOwnerRefForNode1 helper
2025-12-14 13:25:40 +01:00
Jan Chaloupka
f5253faeb0
refactor(TestFindDuplicatePods): set owner refs through a dedicated function
2025-12-14 13:25:34 +01:00
Jan Chaloupka
59f499e2cd
refactor(TestFindDuplicatePods): replace direct ownerRef assignment with test.SetRSOwnerRef
2025-12-14 13:25:14 +01:00
Jan Chaloupka
008265db9b
refactor(TestFindDuplicatePods): consolidate ownerRef as all the cases produce the same owner reference
2025-12-14 13:25:09 +01:00
Jan Chaloupka
61190b805b
refactor(TestFindDuplicatePods): buildTestPodForNode1 for default testing configuration
2025-12-14 13:24:03 +01:00
Jan Chaloupka
8c83840bf9
Merge pull request #1791 from ingvagabund/duplicates-unit-test
...
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 14:05:17 +02:00
Jan Chaloupka
e46b5db6d5
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:35 +01:00
Jan Chaloupka
b21fb4a655
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:35 +01:00
Jan Chaloupka
8f3c5f4978
refactor(TestFindDuplicatePods): drop unused variable
2025-12-14 12:49:27 +01:00
Jan Chaloupka
6f94e19385
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
3bb99512d8
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
56f49bc78f
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:49:27 +01:00
Jan Chaloupka
800dd280cd
refactor(TestFindDuplicatePods): drop unused variable
2025-12-14 12:49:17 +01:00
Jan Chaloupka
8dada79593
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:05 +01:00
Jan Chaloupka
660e2dba40
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:03 +01:00
Jan Chaloupka
294ce39231
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:46:01 +01:00
Jan Chaloupka
f2031ddcb0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:59 +01:00
Jan Chaloupka
7435b5d474
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:56 +01:00
Jan Chaloupka
b5f177efa0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:54 +01:00
Jan Chaloupka
4a4ec4afb7
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:52 +01:00
Jan Chaloupka
0c33be962d
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:50 +01:00
Jan Chaloupka
511ed214b0
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:48 +01:00
Jan Chaloupka
3d4263bf5e
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:45 +01:00
Jan Chaloupka
96171413ba
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:43 +01:00
Jan Chaloupka
5578211253
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:38 +01:00
Jan Chaloupka
08c2fc7621
refactor(TestFindDuplicatePods): have a pod fully created through BuildTestPod without any edits
2025-12-14 12:45:35 +01:00
Kubernetes Prow Robot
9e45259399
Merge pull request #1790 from ingvagabund/podlifetime-unit-tests
...
refactor(TestPodLifeTime): split the unit tests into smaller semantically close groups
2025-12-14 02:19:43 -08:00
Jan Chaloupka
e5bbedb602
refactor(TestPodLifeTime): extract generic filtering tests
2025-12-13 14:27:13 +01:00
Jan Chaloupka
2710fd3781
refactor(TestPodLifeTime): extract evictor configuration tests
2025-12-13 14:06:24 +01:00
Jan Chaloupka
2658864ac0
refactor(TestPodLifeTime): extract eviction limits tests
2025-12-13 14:06:18 +01:00
Jan Chaloupka
e05de87368
refactor(TestPodLifeTime): extract pod status reason tests
2025-12-13 14:06:10 +01:00
Jan Chaloupka
293a9ca4b7
refactor(TestPodLifeTime): extract container waiting reason tests
2025-12-13 14:06:04 +01:00
Jan Chaloupka
83151219e7
refactor(TestPodLifeTime): extract pod phase state tests
2025-12-13 14:05:18 +01:00
Jan Chaloupka
fb0bddf85d
refactor(TestPodLifeTime): extract age threshold tests
2025-12-13 14:04:26 +01:00
Jan Chaloupka
286f2848fc
refactor(TestPodLifeTime): add shared test infrastructure
2025-12-13 14:03:21 +01:00
Jan Chaloupka
d8d997a25d
refactor(TestPodLifeTime): extract helper functions to package level
2025-12-13 13:58:26 +01:00
Kubernetes Prow Robot
5d7a483dc8
Merge pull request #1789 from ingvagabund/refactorings
...
feat(PodLifeTime): document the plugin with details that can be used for reasoning during reviews and design discussions
2025-12-12 04:54:12 -08:00
Jan Chaloupka
58076dd162
feat(PodLifeTime): document the plugin with details that can be used for
...
reasoning during reviews and design discussions
2025-12-12 11:55:27 +01:00
Kubernetes Prow Robot
b6e81fdd4b
Merge pull request #1787 from ingvagabund/refactorings
...
feat(TestPodLifeTime): check only expected pods are evicted
2025-12-11 11:37:31 -08:00
Jan Chaloupka
59dfd041a8
feat(TestPodLifeTime): check only expected pods are evicted
2025-12-11 17:08:25 +01:00
Kubernetes Prow Robot
7bf29ce56d
Merge pull request #1785 from ingvagabund/refactorings
...
refactor(TestPodLifeTime): update unit test names and simplify pod creation
2025-12-11 04:35:30 -08:00
Jan Chaloupka
c77f1a4ed2
refactor(TestPodLifeTime): update test names to better correspond to their purpose
2025-12-11 13:04:33 +01:00
Jan Chaloupka
7e14c6c7c4
refactor(TestPodLifeTime): drop applyPodsFunc function
2025-12-11 13:03:47 +01:00
Jan Chaloupka
b4a0b8dbac
fix(TestPodLifeTime): rename dev ns to default
2025-12-11 13:03:40 +01:00
Kubernetes Prow Robot
680b10099d
Merge pull request #1784 from ingvagabund/refactorings
...
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 09:15:41 -08:00
Jan Chaloupka
e92dda1a37
Merge pull request #1783 from ingvagabund/refactorings
...
refactor(TestPodLifeTime): consolidations, simplifications and node instance for each unit test
2025-12-10 17:38:21 +02:00
Jan Chaloupka
07dc0c61c5
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:33:28 +01:00
Jan Chaloupka
cab310e55c
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:32:54 +01:00
Jan Chaloupka
822a1d4c40
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:32:30 +01:00
Jan Chaloupka
1d7368b58d
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:32:05 +01:00
Jan Chaloupka
70a71f54bc
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:31:31 +01:00
Jan Chaloupka
3ea0eadcb3
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:31:25 +01:00
Jan Chaloupka
41a0a9c994
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:30:30 +01:00
Jan Chaloupka
c707f53cec
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 16:28:20 +01:00
Jan Chaloupka
9be42e50cc
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:55:12 +01:00
Jan Chaloupka
bed39d70f0
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:54:04 +01:00
Jan Chaloupka
8a0fd10315
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:53:19 +01:00
Jan Chaloupka
5e6cd6057b
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:52:24 +01:00
Jan Chaloupka
b857869371
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:47:08 +01:00
Jan Chaloupka
3e764eb564
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:45:53 +01:00
Jan Chaloupka
2648749eb8
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:45:10 +01:00
Jan Chaloupka
ff43002060
refactor(TestPodLifeTime): inline pod creation in each unit test to avoid accidental pod spec updates
2025-12-10 15:43:07 +01:00
Jan Chaloupka
4f42a7ae9b
refactor(TestPodLifeTime): consolidate defaults when building a test pod with RS owner reference
2025-12-10 15:34:48 +01:00
Jan Chaloupka
7d84b68556
refactor(TestPodLifeTime): consolidate defaults when building a test pod
2025-12-10 15:29:12 +01:00
Jan Chaloupka
5b4719634c
refactor(TestPodLifeTime): the default pod namespace will work the same way as the 'dev' one
2025-12-10 15:29:03 +01:00
Jan Chaloupka
94a0fbdcbb
refactor(TestPodLifeTime): inline node creation in each unit test to avoid accidental node spec updates
2025-12-10 15:28:57 +01:00
Jan Chaloupka
bbc3eef1c9
refactor(TestPodLifeTime): replace test.GetReplicaSetOwnerRefList with test.SetRSOwnerRef
...
To make the assigment shorter and unified
2025-12-10 15:28:51 +01:00
Jan Chaloupka
3a3e72e9c2
refactor(TestPodLifeTime): consolidate all owner references
...
test.GetReplicaSetOwnerRefList produces the same value everything it's
invoked.
2025-12-10 15:28:45 +01:00
Kubernetes Prow Robot
e6c14a365f
Merge pull request #1782 from ingvagabund/refactorings
...
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 06:23:30 -08:00
Kubernetes Prow Robot
2b2ab0b9ad
Merge pull request #1781 from ingvagabund/podlifetime-unittest-dry
...
refactor(TestPodLifeTime): remove ineffective owner references assignments
2025-12-10 05:39:30 -08:00
Jan Chaloupka
16b9311e9e
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:13:23 +01:00
Jan Chaloupka
1a61470e81
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:13:14 +01:00
Jan Chaloupka
c02779b6a5
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:13:09 +01:00
Jan Chaloupka
ff6363692c
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:13:04 +01:00
Jan Chaloupka
34540c3c95
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:13:00 +01:00
Jan Chaloupka
ee40f7ff30
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:12:55 +01:00
Jan Chaloupka
cece2ee3cc
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:12:50 +01:00
Jan Chaloupka
fbdf86fdfd
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:12:39 +01:00
Jan Chaloupka
7bfd4088ce
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:12:05 +01:00
Jan Chaloupka
18f61b5e64
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:11:12 +01:00
Jan Chaloupka
769b4fe34a
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:11:07 +01:00
Jan Chaloupka
6ffc7e3975
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:11:03 +01:00
Jan Chaloupka
31af0d8223
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:10:59 +01:00
Jan Chaloupka
0c80f3689d
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:10:53 +01:00
Jan Chaloupka
9722018847
refactor(TestPodLifeTime): have a pod fully created through BuildTestPod without any edits
2025-12-10 14:10:48 +01:00
Jan Chaloupka
47cfdf7057
refactor(TestPodLifeTime): remove ineffective owner references assignments
...
Pods p5 and p6 already have an owner assigned. Also,
test.GetReplicaSetOwnerRefList() produces the same list of owner references.
2025-12-10 14:08:06 +01:00
Kubernetes Prow Robot
db6d460677
Merge pull request #1764 from abelfodil/master
...
Fix "Current requires cgo or $USER set in environment" error
2025-11-15 00:25:38 -08:00
Anes Belfodil
237d9c1a7b
fix: provide USER env var to correctly initialize tracing
...
This is done to prevent "Current requires cgo or $USER set in environment" error during
tracing initialization.
2025-11-15 01:40:08 -05:00
Kubernetes Prow Robot
5b66733ada
Merge pull request #1772 from Sycrosity/master
...
docs: fix README.md link to kubernetes bot commands
2025-11-07 20:52:51 -08:00
Kubernetes Prow Robot
eb1b91d085
Merge pull request #1773 from petersalas/update-readme
...
docs: fix incorrect gracePeriodSeconds default in README.md
2025-11-07 20:22:52 -08:00
Peter Salas
058056d965
docs: fix incorrect gracePeriodSeconds default in README.md
2025-11-04 12:11:02 -08:00
Sycrosity
f9aa969791
docs: fix link to kubernetes bot commands page
2025-11-03 00:29:17 +00:00
Sycrosity
4bbfa08dfb
docs: Have kustomize suggested commands use latest release
2025-11-03 00:25:22 +00:00
Kubernetes Prow Robot
4b7c2c90ea
Merge pull request #1771 from a7i/native-sidecar
...
fix: pod resource calculation to consider native sidecars
2025-11-02 02:06:02 -08:00
Amir Alavi
06cab8e2aa
fix: pod resource calculation to consider native sidecars
...
previously, descheduler code had copied an old version of PodRequestsAndLimits which does not consider native sidecars
it will now rely on resourcehelper libs, which will continue to get upstream updates
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-11-01 10:48:00 -04:00
Kubernetes Prow Robot
582641c2e9
Merge pull request #1752 from ricardomaraschini/create-protection-for-pods-using-storage-class
...
feat: enable pod protection based on storage classes
2025-10-30 14:18:03 -07:00
Kubernetes Prow Robot
4d78cd49a0
Merge pull request #1770 from a7i/descheduler-chart-v0.34.0
...
[v0.34.0] update helm chart
2025-10-30 06:56:05 -07:00
Amir Alavi
ce56624cea
[v0.34.0] update helm chart
2025-10-29 22:02:10 -04:00
Kubernetes Prow Robot
dd7b76f2c4
Merge pull request #1768 from a7i/v0.34.0-docs-manifests
...
[v0.34.0] update docs and manifests
2025-10-29 17:54:01 -07:00
Amir Alavi
bc4f17194b
[v0.34.0] update docs and manifests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-10-29 12:20:31 -04:00
Ricardo Maraschini
d9d6ca64e9
feat: enable pod protection based on storage classes
...
this commit introduces a new customization on the existing PodsWithPVC
protection. this new customization allow users to make pods that refer
to a given storage class unevictable.
for example, to protect pods referring to `storage-class-0` and
`storage-class-1` this configuration can be used:
```yaml
apiVersion: "descheduler/v1alpha2"
kind: "DeschedulerPolicy"
profiles:
- name: ProfileName
pluginConfig:
- name: "DefaultEvictor"
args:
podProtections:
extraEnabled:
- PodsWithPVC
config:
PodsWithPVC:
protectedStorageClasses:
- name: storage-class-0
- name: storage-class-1
```
changes introduced by this pr:
1. the descheduler starts to observe persistent volume claims.
1. a new api field was introduced to allow per pod protection config.
1. rbac had to be adjusted (+persistentvolumeclaims).
2025-10-29 11:21:10 +01:00
Kubernetes Prow Robot
ebaf155e23
Merge pull request #1765 from googs1025/helm_chart
...
docs: use podProtections args in helm chart
2025-10-29 01:02:01 -07:00
googs1025
781572fed5
use podProtections args
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-10-28 10:29:52 +08:00
Kubernetes Prow Robot
e3503d22f4
Merge pull request #1751 from rstribrn/fix/#1750_chart_livenessprobe
...
helm: Fix liveness probe timeout for descheduler chart
2025-10-21 12:00:39 -07:00
Kubernetes Prow Robot
564c2c29d8
Merge pull request #1759 from ricardomaraschini/add-myself-as-approver
...
chore: update approvers
2025-10-21 08:02:43 -07:00
Kubernetes Prow Robot
bbb915e003
Merge pull request #1744 from a7i/amir/k8s-1.34
...
[v0.34.0] bump to kubernetes 1.34 deps
2025-10-21 07:32:47 -07:00
Amir Alavi
1db6b615d1
[v0.34.0] bump to kubernetes 1.34 deps
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-10-21 09:14:13 -04:00
Kubernetes Prow Robot
e9188852ef
Merge pull request #1762 from tiraboschi/test_1.34
...
test: run by default with kind 0.30.0 and kubevirt v1.6.2
2025-10-21 05:28:40 -07:00
Simone Tiraboschi
c36466bb1c
test: run by default with kind 0.30.0 and kubevirt v1.6.2
...
bump kind and kubevirt versions to unblock the k8s 1.34
e2e test lane.
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com >
2025-10-21 13:44:34 +02:00
Ricardo Maraschini
841fd29282
chore: update approvers
...
add myself as an approver on this repository.
2025-10-17 14:59:21 +02:00
Kubernetes Prow Robot
79b2e04199
Merge pull request #1753 from tiraboschi/annotate_eviction_requests
...
feat(eviction): add annotations to eviction requests for observability
2025-10-13 04:26:57 -07:00
Simone Tiraboschi
3a608a590a
feat(eviction): add annotations to eviction requests for observability
...
Although eviction requests (policy/v1) are not persisted long term,
their API still implements the full metav1.ObjectMeta struct. While
name and namespace refer to the pod being evicted, eviction requests
can still carry annotations.
This change adds annotations to descheduler-initiated evictions,
including the requester, reason, and the strategy or plugin that
triggered them.
While these details are already logged by the descheduler, exposing them
as annotations allows external webhooks or controllers to provide
clearer context about each eviction request, both for tracking and
prioritization purposes.
Signed-off-by: Simone Tiraboschi <stirabos@redhat.com >
2025-10-13 12:49:03 +02:00
Kubernetes Prow Robot
07b1c4e681
Merge pull request #1755 from tsj-30/fix/handle-single-node
...
descheduler: handle single-node clusters gracefully
2025-10-13 01:36:56 -07:00
S J Tharun
7d6f6fedec
fix gofmt error
2025-10-13 08:29:27 +05:30
S J Tharun
3033aec6a0
descheduler: handle single-node clusters gracefully
2025-10-11 07:53:41 +05:30
Rostislav Stříbrný
9eb582cd67
helm: Fix liveness probe timeout for descheduler chart
2025-09-30 14:52:40 +02:00
Kubernetes Prow Robot
925b388702
Merge pull request #1746 from eminaktas/fix/correct-function-comment
...
fix: correct comment for HaveNoEvictionAnnotation
2025-09-30 03:10:18 -07:00
Kubernetes Prow Robot
e599018adb
Merge pull request #1747 from ricardomaraschini/fix-context-cancellation
...
chore: give tracing.Shutdown() its own context
2025-09-25 07:54:18 -07:00
Ricardo Maraschini
f9a3be8cde
chore: give tracing.Shutdown() its own context
...
the tracing.Shutdown() uses the context so we must guarantee that the
context we use is valid regardless if the original context being
cancelled already.
this change introduces an exclusive context for the shutdown process
with an arbitrary timeout.
2025-09-24 12:37:54 +02:00
Emin Aktas
d47e077897
fix: correct comment for HaveNoEvictionAnnotation
2025-09-20 12:53:56 +03:00
Kubernetes Prow Robot
483c9c1499
Merge pull request #1741 from anthosz/deploy-annotation
...
helm chart - Allow to add custom annotations for deployment
2025-09-18 12:24:11 -07:00
Anthony SCHWARTZ
d841a2d913
helm chart - Allow to add custom annotations for deployment
...
Revamp code
2025-09-17 22:27:18 +02:00
Kubernetes Prow Robot
f7f86ed075
Merge pull request #1743 from ingvagabund/test-e2e-new-args
...
feat(test/e2e): introduce new flags to override RunAsUser and RunAsGroup security context setting
2025-09-17 02:54:13 -07:00
Kubernetes Prow Robot
46f55b5221
Merge pull request #1742 from ricardomaraschini/add-pull-request-template
...
chore: add pull request template
2025-09-17 01:28:13 -07:00
Jan Chaloupka
fa9fa70ed7
feat(test/e2e): introduce new flags to override RunAsUser and RunAsGroup security context setting
...
So RunAsUser and RunAsGroup can be either omitted and set to different values
2025-09-17 10:23:57 +02:00
Ricardo Maraschini
43dc9a9616
chore: add pull request template
...
adds a list of things to be checked by the pr creator and reviewers.
2025-09-16 12:12:15 +02:00
Kubernetes Prow Robot
f8c8d9a385
Merge pull request #1736 from n2h9/chore-1732-chart-add-cronjob-job-annotations-and-labels
...
[1732] chore: add cronjob/job labels and annotations to helm chart
2025-08-29 09:09:11 -07:00
Nikita B
b5bb15ae10
[1732] chore: add cronjob/job labels and annotations to helm chart
...
Signed-off-by: Nikita B <n2h9z4@gmail.com >
2025-08-23 14:49:28 +02:00
Kubernetes Prow Robot
94d1825c68
Merge pull request #1725 from googs1025/chore/evictionConstraints
...
standardize protectionEnabled param across eviction constraints
2025-08-19 05:53:36 -07:00
googs1025
257bd55909
standardize protectionEnabled param
2025-08-19 17:52:54 +08:00
Kubernetes Prow Robot
fd2febbfe1
Merge pull request #1641 from jmederer/master
...
feat(token): automountServiceAccountToken set hard to true on deployment
2025-08-15 05:05:11 -07:00
Kubernetes Prow Robot
63ecaec0ef
Merge pull request #1729 from googs1025/validate/improve
...
Improves the validation logic in the plugins
2025-08-15 03:31:07 -07:00
Kubernetes Prow Robot
4740bc3e27
Merge pull request #1728 from googs1025/chore/podprotections/readme
...
update readme for PodProtections
2025-08-15 02:35:07 -07:00
googs1025
8f521bb6f7
update readme for PodProtections
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-15 13:26:25 +08:00
Jan Mederer
d641488ea1
feat(token): automountServiceAccountToken - The Option can now be controlled via values.yaml or VolumeMounts
...
Signed-off-by: Jan Mederer <jan@mederer.it >
2025-08-14 08:34:55 +02:00
Kubernetes Prow Robot
e5c57a759b
Merge pull request #1603 from googs1025/feature/add_dra_arg
...
feature: add PodsWithResourceClaims parameter in DefaultEvictorArgs PodProtections
2025-08-13 06:57:10 -07:00
googs1025
9c7e01de67
feature: add PodsWithResourceClaims parameter in DefaultEvictorArgs PodProtections
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-13 20:35:36 +08:00
Kubernetes Prow Robot
eb4c7d102f
Merge pull request #1733 from googs1025/namesapce_includes
...
add ValidateHighNodeUtilizationPluginConfig unit test
2025-08-13 05:03:08 -07:00
googs1025
e5ea03ce75
add ValidateHighNodeUtilizationPluginConfig unit test
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-13 17:15:21 +08:00
googs1025
2cce141feb
Improves the validation logic in the plugins
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-07 17:21:01 +08:00
Kubernetes Prow Robot
f2211e1cef
Merge pull request #1665 from googs1025/refator/evict_arg
...
add PodProtections for DefaultEvictorArgs
2025-08-05 02:59:40 -07:00
googs1025
d9697591d5
add EvictionProtection filed for DefaultEvictorArgs
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-08-04 19:34:16 +08:00
Kubernetes Prow Robot
419fe74702
Merge pull request #1723 from ingvagabund/default-evictor-no-eviction-policy
...
Default evictor no eviction policy
2025-07-31 05:13:16 -07:00
Jan Chaloupka
7380aa6e0a
DefaultEvictor: introduce no-eviction policy
...
NoEvictionPolicy dictates whether a no-eviction policy is prefered or mandatory.
Needs to be used with caution as this will give users ability to protect their pods
from eviction. Which might work against enfored policies. E.g. plugins evicting pods
violating security policies.
2025-07-24 15:47:05 +02:00
Kubernetes Prow Robot
b84b2623b9
Merge pull request #1722 from ingvagabund/minor-refactoring
...
Test code refactorings
2025-07-24 06:38:28 -07:00
Jan Chaloupka
d0548b75d7
TestSortPodsBasedOnPriorityLowToHigh: check the whole sorted list of pods
2025-07-24 12:48:03 +02:00
Jan Chaloupka
6e9d8891c5
defaultevictor_test.go: replace descheduler.alpha.kubernetes.io/evict literal with evictPodAnnotationKey const
2025-07-24 12:48:00 +02:00
Jan Chaloupka
5cc9e68127
Drop assignment if default test values
2025-07-24 12:04:07 +02:00
Kubernetes Prow Robot
bf6a51f733
Merge pull request #1660 from schahal/chore/run-policies-thru-tpl
...
feat(helm): run descedulerPolicy thru tpl func for more chart control
2025-07-17 02:30:24 -07:00
Kubernetes Prow Robot
f15d8d0d54
Merge pull request #1647 from dongjiang1989/fix-secure-port-0-panic
...
fix: Fix panic in descheduler when using `--secure-port=0`
2025-07-15 03:54:22 -07:00
Kubernetes Prow Robot
a177744169
Merge pull request #1719 from a7i/amir/fix-sort-evictable
...
fix: removepodsviolatingtopologyspreadconstraint to favor evictable pods when balancing domains
2025-07-15 00:48:24 -07:00
Amir Alavi
eadfe4a546
fix: topologyspreadconstraint plugin to not add PodNodeAffinity unless the inclusion policy is honor
2025-07-10 17:42:57 -04:00
Amir Alavi
fbf11df729
fix: topologyspreadconstraint to prefer evictable before sorting domains
...
Sort pods that are above ideal avg based on the criteria that they fit on other nodes that are below avg
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-07-10 17:42:12 -04:00
Kubernetes Prow Robot
e5ab156a99
Merge pull request #1717 from ricardomaraschini/remove-unecessary-assignments
...
chore: stop with no-op default evictor settings
2025-07-09 18:21:27 -07:00
Ricardo Maraschini
6e714a2134
chore: stop with no-op default evictor settings
...
we have been carrying these no-op for quite a while now. we should only
set defaults when they are different from what they are being provided
by the user.
2025-07-07 15:31:49 +02:00
Kubernetes Prow Robot
a01fa87de8
Merge pull request #1709 from googs1025/add/field
...
add activeDeadlineSeconds field for cronjob
2025-06-30 07:12:32 -07:00
googs1025
ba694cfac1
add activeDeadlineSeconds field for cronjob
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-06-30 21:45:44 +08:00
Kubernetes Prow Robot
2570bedd52
Merge pull request #1708 from ingvagabund/minor-adjustments
...
logger: Align with the previous logger verbosity
2025-06-25 00:56:29 -07:00
Jan Chaloupka
89eab59d82
logger: Align with the previous logger verbosity
2025-06-25 09:27:57 +02:00
Kubernetes Prow Robot
ace001c618
Merge pull request #1655 from googs1025/feature/contextual_logging
...
feature: use contextal logging for plugins
2025-06-25 00:16:29 -07:00
googs1025
33894afe2b
feature: use contextal logging for plugins
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-06-13 19:45:55 +08:00
Kubernetes Prow Robot
528aff2d42
Merge pull request #1705 from ricardomaraschini/allow-prometheus-over-http
...
feat(prometheus): allow different url schemes
2025-06-12 03:44:55 -07:00
Ricardo Maraschini
a2b899aa15
feat(prometheus): allow different url schemes
...
as per prometheus golang client implementation: the only url validation
done is by means of an `url.Parse()` call. we should do the same and not
enforce the usage of https scheme.
our readme even shows an example of descheduler config using http
prometheus url scheme.
2025-06-12 11:23:09 +02:00
Kubernetes Prow Robot
a1ddb3f28f
Merge pull request #1232 from dragon-flyings/metrics
...
metrics name refact
2025-06-11 09:44:56 -07:00
lowang-bh
b63b09089e
metrics name refact and mark old one deprecated
...
Signed-off-by: lowang-bh <lhui_wang@163.com >
2025-06-02 14:13:46 +08:00
Kubernetes Prow Robot
2d7528411a
Merge pull request #1696 from doctapp/PodLifeTimeAllStates
...
*1677 Allow Succeeded and Failed states in PodLifeTime
2025-05-25 12:32:35 -07:00
Martin Tapp
e06443ef40
*1677 Allow Succeeded and Failed states in PodLifeTime
2025-05-23 15:56:37 -04:00
Kubernetes Prow Robot
9f918371a2
Merge pull request #1694 from ingvagabund/plugins-new-context
...
Extend plugin's New with a context.Context
2025-05-19 05:31:14 -07:00
Kubernetes Prow Robot
c8912acfb7
Merge pull request #1693 from googs1025/constraints_refactor
...
refactor: separate eviction constraints to constraints.go
2025-05-19 03:31:15 -07:00
Jan Chaloupka
1974c12e0f
Extend plugin's New with a context.Context
...
The new context.Context can be later used for passing a contextualized
logger. Or, other initialization steps that require the context.
2025-05-19 12:23:44 +02:00
googs1025
b3aeca73db
refactor: separate eviction constraints to constraints.go
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-05-19 18:02:41 +08:00
Kubernetes Prow Robot
d34848086c
Merge pull request #1691 from googs1025/fix/listall
...
fix(example): list only active pod
2025-05-12 10:55:14 -07:00
Kubernetes Prow Robot
9aa6d79c21
Merge pull request #1688 from ingvagabund/plugins-taints-do-not-list-all-pods
...
RemovePodsViolatingNodeTaints: list only pods that are not failed/suceeded
2025-05-12 06:55:18 -07:00
googs1025
7a76d9f0d3
fix(RemovePodsViolatingNodeTaints): list only active pod
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-05-12 21:45:57 +08:00
Kubernetes Prow Robot
71746262b1
Merge pull request #1684 from googs1025/refactor_topology
...
chore: move namespaces filtering logic to New()
2025-05-11 12:29:14 -07:00
Kubernetes Prow Robot
8b0ae7ce52
Merge pull request #1686 from googs1025/add_sort
...
feature: sort pods by restarts count in RemovePodsHavingTooManyRestarts plugin
2025-05-11 08:49:15 -07:00
Jan Chaloupka
6691720da5
RemovePodsViolatingNodeTaints: list only pods that are not failed/suceeded
...
Listing pods was incorrectly changed to listing all pods during code
refactoring.
2025-05-10 21:12:06 +02:00
googs1025
0a691debfb
feature: sort pods by restarts count in RemovePodsHavingTooManyRestarts plugin
2025-05-09 13:15:38 +08:00
googs1025
fbc875fac1
chore: move namespaces filtering logic to New()
2025-05-07 19:47:30 +08:00
Kubernetes Prow Robot
e466307d7c
Merge pull request #1681 from googs1025/use_priorityclasslister
...
optimize: NodeFit function by reordering checks for performance
2025-05-07 01:01:16 -07:00
dongjiang
9fed73148c
Merge branch 'kubernetes-sigs:master' into fix-secure-port-0-panic
2025-05-06 10:06:37 +08:00
googs1025
957c5bc8e0
optimize: NodeFit function by reordering checks for performance
2025-05-05 21:09:14 +08:00
Kubernetes Prow Robot
5ce857b3fd
Merge pull request #1680 from a7i/amir/helm-0.33
...
v0.33.0: bump helm chart
2025-05-04 09:43:56 -07:00
Amir Alavi
1f4d20dd6b
v0.33.0: bump helm chart
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-05-04 12:17:05 -04:00
Kubernetes Prow Robot
75d9800baf
Merge pull request #1674 from meroupatate/patch-1
...
Remove reference to obsolete deschedulerPolicy fields in chart values
2025-05-03 17:23:56 -07:00
Kubernetes Prow Robot
045fbb6a04
Merge pull request #1678 from a7i/v0.33.0-docs-manifests
...
[v0.33.0] update docs and manifests
2025-05-02 18:35:59 -07:00
Kubernetes Prow Robot
035849c721
Merge pull request #1679 from kubernetes-sigs/dependabot/go_modules/github.com/golang/glog-1.2.4
...
chore(deps): bump github.com/golang/glog from 1.2.2 to 1.2.4
2025-05-01 20:03:55 -07:00
dependabot[bot]
a3ca3093e5
chore(deps): bump github.com/golang/glog from 1.2.2 to 1.2.4
...
Bumps [github.com/golang/glog](https://github.com/golang/glog ) from 1.2.2 to 1.2.4.
- [Release notes](https://github.com/golang/glog/releases )
- [Commits](https://github.com/golang/glog/compare/v1.2.2...v1.2.4 )
---
updated-dependencies:
- dependency-name: github.com/golang/glog
dependency-version: 1.2.4
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-05-02 02:23:03 +00:00
Kubernetes Prow Robot
ee376e12ac
Merge pull request #1672 from googs1025/add_miss_doc
...
add miss evictDaemonSetPods param in README.md
2025-05-01 19:17:57 -07:00
Amir Alavi
4750dc19e6
[v0.33.0] update docs and manifests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-05-01 22:06:04 -04:00
googs1025
6bf75bedef
add miss evictDaemonSetPods param in README.md
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-05-01 08:45:59 +08:00
Kubernetes Prow Robot
2b450c15b8
Merge pull request #1676 from sanposhiho/email-address-mailing-list
...
fix: update the mailing list address
2025-04-30 11:23:55 -07:00
Kensei Nakada
2a27d1be90
fix: update the mailing list address
2025-04-30 17:40:53 +02:00
Kubernetes Prow Robot
6e1832b1af
Merge pull request #1675 from dongjiang1989/update-k8s-v1.33
...
chore: Bump to official kubernetes v0.33.0 deps
2025-04-30 08:19:59 -07:00
dongjiang
a249c9baf0
update k8s to v1.33
...
Signed-off-by: dongjiang <dongjiang1989@126.com >
2025-04-30 22:07:02 +08:00
dongjiang
5d4dc6604a
Update run-e2e-tests.sh
2025-04-30 21:51:12 +08:00
Alice Zhen
96652f3c28
Remove reference to invalid deschedulerPolicy fields in chart values
...
Since the removal of v1alpha1 descheduler config type https://github.com/kubernetes-sigs/descheduler/pull/1482 , some values are now obsolete
2025-04-25 12:36:13 +02:00
Kubernetes Prow Robot
6e9622bf41
Merge pull request #1667 from ricardomaraschini/update-owners
...
chore: update owners to add me as reviewer
2025-04-16 04:05:07 -07:00
Ricardo Maraschini
f66804396e
chore: update owners to add me as reviewer
...
adding myself as a reviewer.
2025-04-16 11:20:11 +02:00
tspearconquest
3a5c651136
Move values.yaml comment about defining your own configmap to a NOTES.txt output instead ( #1582 )
...
* Move values.yaml comment about defining your own configmap to a NOTES.txt output instead
Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com >
* Stop a blank line from being rendered when leader election is not enabled
Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com >
* Remove 'default' from the language of the new note
Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com >
---------
Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com >
2025-04-14 08:25:06 -07:00
Kubernetes Prow Robot
68207da9c8
Merge pull request #1663 from ricardomaraschini/strict-pod-eviction
...
feat: introduce strict eviction policy
2025-04-10 01:30:46 -07:00
Ricardo Maraschini
35a7178df6
feat: introduce strict eviction policy
...
with strict eviction policy the descheduler only evict pods if the pod
contains a request for the given threshold. for example, if using a
threshold for an extended resource called `example.com/gpu` only pods
who request such a resource will be evicted.
2025-04-09 16:48:32 +02:00
Kubernetes Prow Robot
cca28f7bbe
Merge pull request #1651 from freedomchurl/readme-metric-update
...
docs: add histogram metric README.md
2025-04-07 04:48:40 -07:00
Kubernetes Prow Robot
38b1f5c1a8
Merge pull request #1661 from ingvagabund/e2e-TestLowNodeUtilizationKubernetesMetrics-set-the-right-cpu
...
TestLowNodeUtilizationKubernetesMetrics: set the right -cpu value for the cpu stressor
2025-04-07 02:20:38 -07:00
Jan Chaloupka
c2ed7eb575
TestLowNodeUtilizationKubernetesMetrics: set the right -cpu value for the cpu stressor
2025-04-07 10:49:04 +02:00
Satbir Chahal
603473839a
chore(helm): run descedulerPolicy thru tpl func for more chart control
2025-04-03 05:30:17 -07:00
Kubernetes Prow Robot
17b90969cf
Merge pull request #1629 from googs1025/fix_sortDomains
...
fix removepodsviolatingtopologyspreadconstraint plugin sort logic
2025-03-28 09:06:44 -07:00
Kubernetes Prow Robot
2cce60dc2b
Merge pull request #1657 from ricardomaraschini/log
...
chore: log average and assessed thresholds
2025-03-28 06:52:40 -07:00
googs1025
b4b203cc60
chore: add unit test for sortDomains func
2025-03-28 20:58:54 +08:00
googs1025
59d1d5d1b9
making isEvictable and hasSelectorOrAffinity invoked only once
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-03-28 20:57:02 +08:00
Ricardo Maraschini
98e6ed6587
chore: log average and assessed thresholds
...
when calculating the average an applying the deviations it would be nice
to also see the assessed values.
this commit makes the descheduler logs these values when using level 3.
2025-03-28 10:16:20 +01:00
googs1025
4548723dea
fix(removepodsviolatingtopologyspreadconstraint): fix removepodsviolatingtopologyspreadconstraint plugin sort logic
...
Signed-off-by: googs1025 <googs1025@gmail.com >
2025-03-27 23:49:45 +08:00
Kubernetes Prow Robot
7542cac9d0
Merge pull request #1654 from googs1025/add_reviewer
...
nominate googs1025 for descheduler reviewers
2025-03-24 02:16:35 -07:00
googs1025
8871272d35
nominate googs1025 for descheduler reviewers
2025-03-24 10:16:08 +08:00
Kubernetes Prow Robot
a31a3b5e85
Merge pull request #1580 from tspearconquest/docs/add_cmdOptions_details_to_readme
...
Mention cmdOptions.dry-run in the helm chart readme
2025-03-23 18:22:32 -07:00
Kubernetes Prow Robot
9b9ae9a3be
Merge pull request #1650 from ingvagabund/nodeutilization-deviation-skip-nodes-without-extended-resource
...
[nodeutilization]: skip nodes without extended resource when computing the average utilization
2025-03-20 05:58:31 -07:00
Jan Chaloupka
c22d773200
[nodeutilization] test nodes without extended resource when computing the average utilization
2025-03-20 13:22:28 +01:00
Kubernetes Prow Robot
9ba0f9b410
Merge pull request #1653 from ricardomaraschini/new-classifier
...
feat: move classifier to its own package
2025-03-20 05:20:31 -07:00
Ricardo Maraschini
95a631f6a5
feat: move classifier to its own package
...
move the classifier to its own package. introduces a generic way of
classifying usages against thresholds.
2025-03-20 11:02:47 +01:00
Kubernetes Prow Robot
89535b9b9b
Merge pull request #1649 from ricardomaraschini/normalizer
...
feat: refactoring thresholds and usage assessment
2025-03-20 02:34:31 -07:00
Ricardo Maraschini
54d0a22ad1
chore: comment the code and simplify some things
...
this commit comments the low and high utilization plugins. this also
simplifies a little bit where it was possible without affecting too
much.
2025-03-20 10:06:45 +01:00
Ricardo Maraschini
87ba84b2ad
feat: refactoring thresholds and usage assessment
...
this commit refactors the thresholds and usage assessment for the node
utilization plugins. both high and low plugins are affected by this
change.
2025-03-19 17:38:41 +01:00
Kubernetes Prow Robot
b300faece0
Merge pull request #1652 from ingvagabund/nodeutili-refactor
...
[nodeutilization]: produce node utilization of resources that are listed in the list of resources
2025-03-19 05:58:30 -07:00
Jan Chaloupka
04ebdbee32
[nodeutilization]: produce node utilization of resources that are listed in the list of resources
2025-03-19 12:35:19 +01:00
LeeCheol
bda785f7dc
add histogram metric docs
2025-03-18 17:37:02 +09:00
Kubernetes Prow Robot
6ab73d6ac5
Merge pull request #1533 from ingvagabund/node-utilization-util-snapshot
...
[lownodeutilization]: Actual utilization: integration with Prometheus
2025-03-17 08:53:49 -07:00
Jan Chaloupka
e283c31030
[nodeutilization]: prometheus usage client with prometheus metrics
2025-03-17 16:25:17 +01:00
Jan Chaloupka
aed345994f
Update vendor for prometheus deps
2025-03-14 10:26:00 +01:00
Kubernetes Prow Robot
be4abe1727
Merge pull request #1614 from ingvagabund/nodeutilization-metrics-source
...
[nodeutilization]: allow to set a metrics source as a string so it can be later extended for exclusive configuration
2025-03-14 01:57:47 -07:00
Jan Chaloupka
e14b86eb8c
[nodeutilization]: allow to set a metrics source as a string so it can be later extended for exclusive configuration
2025-03-13 18:00:27 +01:00
Kubernetes Prow Robot
a4d6119bcd
Merge pull request #1645 from ingvagabund/nodeutilization-refactoring
...
nodeutilization: make the node classification more generic
2025-03-13 03:21:46 -07:00
Jan Chaloupka
57bb31de78
nodeutilization: make the classification more generic
2025-03-12 15:02:22 +01:00
dongjiang
581d997379
fix panic
...
Signed-off-by: dongjiang <dongjiang1989@126.com >
2025-03-12 18:04:33 +08:00
Kubernetes Prow Robot
17d9b152a2
Merge pull request #1644 from ingvagabund/nodeutilization-arg-validation
...
nodeutilization: invoke ValidateLowNodeUtilizationArgs instead of validateLowNodeUtilizationThresholds to make the test more generic
2025-03-12 01:53:46 -07:00
Jan Chaloupka
b935c7d82c
nodeutilization: invoke ValidateLowNodeUtilizationArgs instead of validateLowNodeUtilizationThresholds to make the test more generic
2025-03-11 10:04:39 +01:00
Kubernetes Prow Robot
b8e3c0bba3
Merge pull request #1642 from ingvagabund/unconstrainedevictions
...
lownodeutilization: evictionLimits to limit the evictions per plugin
2025-03-10 08:43:47 -07:00
Jan Chaloupka
5bf11813e6
lownodeutilization: evictionLimits to limit the evictions per plugin
...
In some cases it might be usefull to limit how many evictions per a
domain can be performed. To avoid burning the whole per descheduling
cycle budget. Limiting the number of evictions per node is a
prerequisite for evicting pods whose usage can't be easily subtracted
from overall node resource usage to predict the final usage. E.g. when a
pod is evicted due to high PSI pressure which takes into account many
factors which can be fully captured by the current predictive resource
model.
2025-03-07 15:31:02 +01:00
Kubernetes Prow Robot
d883c8a9e1
Merge pull request #1640 from ingvagabund/referenced-resource-list
...
ReferencedResourceList: alias for map[v1.ResourceName]*resource.Quantity to avoid the type definition duplication
2025-03-07 05:05:46 -08:00
Jan Chaloupka
50dd3b8971
ReferencedResourceList: alias for map[v1.ResourceName]*resource.Quantity to avoid the type definition duplication
2025-03-07 13:13:00 +01:00
Kubernetes Prow Robot
fd9f2b4614
Merge pull request #1637 from googs1025/chore/fix
...
chore: add setDefaultEvictor return an error
2025-03-05 00:47:45 -08:00
googs1025
655ab516c7
chore: add error handle for setDefaultEvictor func
2025-02-26 22:34:57 +08:00
googs1025
0d5301ead2
chore: add continue for GetNodeWeightGivenPodPreferredAffinity func
2025-02-25 09:26:02 +08:00
Kubernetes Prow Robot
d97f1c9057
Merge pull request #1636 from ricardomaraschini/plugin-sample
...
chore: add descheduler plugin example
2025-02-24 10:40:31 -08:00
Ricardo Maraschini
57a04aae9f
chore: add descheduler plugin example
...
This commit adds a sample plugin implementation as follow:
This directory provides an example plugin for the Kubernetes Descheduler,
demonstrating how to evict pods based on custom criteria. The plugin targets
pods based on:
* **Name Regex:** Pods matching a specified regular expression.
* **Age:** Pods older than a defined duration.
* **Namespace:** Pods within or outside a given list of namespaces (inclusion
or exclusion).
To incorporate this plugin into your Descheduler build, you must register it
within the Descheduler's plugin registry. Follow these steps:
1. **Register the Plugin:**
* Modify the `pkg/descheduler/setupplugins.go` file.
* Add the following registration line to the end of the
`RegisterDefaultPlugins()` function:
```go
pluginregistry.Register(
example.PluginName,
example.New,
&example.Example{},
&example.ExampleArgs{},
example.ValidateExampleArgs,
example.SetDefaults_Example,
registry,
)
```
2. **Generate Code:**
* If you modify the plugin's code, execute `make gen` before rebuilding the
Descheduler. This ensures generated code is up-to-date.
3. **Rebuild the Descheduler:**
* Build the descheduler with your changes.
Configure the plugin's behavior using the Descheduler's policy configuration.
Here's an example:
```yaml
apiVersion: descheduler/v1alpha2
kind: DeschedulerPolicy
profiles:
- name: LifecycleAndUtilization
plugins:
deschedule:
enabled:
- Example
pluginConfig:
- name: Example
args:
regex: ^descheduler-test.*$
maxAge: 3m
namespaces:
include:
- default
```
- `regex: ^descheduler-test.*$`: Evicts pods whose names match the regular
expression `^descheduler-test.*$`.
- `maxAge: 3m`: Evicts pods older than 3 minutes.
- `namespaces.include: - default`: Evicts pods within the default namespace.
This configuration will cause the plugin to evict pods that meet all three
criteria: matching the `regex`, exceeding the `maxAge`, and residing in the
specified namespace.
2025-02-24 18:36:13 +01:00
Kubernetes Prow Robot
f3abaf48ae
Merge pull request #1632 from jandai/master
...
PodMatchNodeSelector: Replaced PodMatchNodeSelector implementation wi…
2025-02-18 07:00:27 -08:00
Jandai
88af72b907
PodMatchNodeSelector: Replaced PodMatchNodeSelector implementation with k8s.io/component-helpers to reduce code size and optimize
2025-02-16 16:48:21 +08:00
Kubernetes Prow Robot
fa3fb4e954
Merge pull request #1612 from LukeCarrier/fix-otel-tracing
...
tracing: test for and address semconv/SDK version conflicts
2025-01-24 11:09:23 -08:00
Luke Carrier
d5b609b34a
tracing: bump otel semconv to 1.26
...
Fix:
E0122 20:09:35.824338 267288 tracing.go:130] "failed to create traceable resource" err=<
1 errors occurred detecting resource:
* conflicting Schema URL: https://opentelemetry.io/schemas/1.24.0 and https://opentelemetry.io/schemas/1.26.0
>
E0122 20:09:35.824366 267288 server.go:108] "failed to create tracer provider" err=<
1 errors occurred detecting resource:
* conflicting Schema URL: https://opentelemetry.io/schemas/1.24.0 and https://opentelemetry.io/schemas/1.26.0
>
2025-01-22 21:14:04 +00:00
Luke Carrier
9c6604fc51
tracing: test for semconv/SDK version conflicts
2025-01-22 21:12:09 +00:00
Kubernetes Prow Robot
1a49e116df
Merge pull request #1599 from linuxmaniac/vseva/1597
...
charts: add needed perms if metricsCollector is enabled
2025-01-10 05:54:31 -08:00
Victor Seva
4775db9e2f
charts: add needed perms if metricsCollector is enabled
2025-01-10 11:58:56 +01:00
Kubernetes Prow Robot
52d5d6398c
Merge pull request #1606 from googs1025/revise/e2e_test_for_flake
...
flake: rollback gracePeriod for evict pod in e2e test
2025-01-09 08:06:32 -08:00
googs1025
6100c914b4
fix: rollback gracePeriod for evict pod in e2e test
2025-01-09 22:29:05 +08:00
Kubernetes Prow Robot
0b3c022c32
Merge pull request #1596 from linuxmaniac/vseva/1595
...
charts: add missing permission for policy
2025-01-07 18:48:29 +01:00
Kubernetes Prow Robot
335c698b38
Merge pull request #1538 from googs1025/feature/grace_period_seconds
...
feature(descheduler): add grace_period_seconds for DeschedulerPolicy
2025-01-07 10:42:30 +01:00
Kubernetes Prow Robot
e39ae80628
Merge pull request #1602 from googs1025/chore/ut_test
...
chore: add ignorePvcPods param in default evictor filter unit test
2025-01-07 09:12:29 +01:00
googs1025
3440abfa41
chore: add ignorePvcPods flag in default evictor filter unit test
2025-01-07 15:27:28 +08:00
googs1025
e6d0caa1bc
feature(descheduler): add grace_period_seconds for DeschedulerPolicy
2025-01-07 10:16:47 +08:00
Kubernetes Prow Robot
e085610bfd
Merge pull request #1578 from googs1025/readme/update
...
chore: update README.md for DeschedulerPolicy
2025-01-06 13:38:16 +01:00
googs1025
03246d6843
chore: update README.md for DeschedulerPolicy
2025-01-06 20:08:35 +08:00
Victor Seva
5a201a32d9
charts: add missing permission for policy at ClusterRole
...
fixes 1595
2025-01-03 12:35:21 +01:00
Kubernetes Prow Robot
fc484030b9
Merge pull request #1591 from a7i/CVE-2024-45337
...
bump x/net and x/crypto deps for CVE-2024-45337 and CVE-2024-45338
2025-01-03 00:54:15 +01:00
Kubernetes Prow Robot
8e6be70ff9
Merge pull request #1592 from a7i/chart-image
...
[release v0.32.0] bump chart and images
2025-01-03 00:26:13 +01:00
Kubernetes Prow Robot
d536cf8ed0
Merge pull request #1593 from a7i/license-2025
...
update license to year 2025
2025-01-02 22:54:15 +01:00
Amir Alavi
48aede9fde
update license to year 2025
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-01-02 13:36:59 -05:00
Amir Alavi
bd5b95dbf9
[release v0.32.0] bump chart and images
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-01-02 13:31:18 -05:00
Amir Alavi
c02c889734
chore: update license (2024 to 2025)
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-01-02 10:07:49 -05:00
Amir Alavi
ca7afd60b9
bump x/net and x/crypto deps for CVE-2024-45337 and CVE-2024-45338
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2025-01-02 09:54:11 -05:00
Kubernetes Prow Robot
71726c8c85
Merge pull request #1588 from a7i/docs-1.32
...
[release v0.32] update docs/readme
2024-12-30 06:48:13 +01:00
Amir Alavi
32e29973d8
[release v0.32] update docs/readme
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-12-29 23:19:16 -06:00
Kubernetes Prow Robot
d0fd115747
Merge pull request #1587 from a7i/k8s-1.32
...
[release v0.32] update kubernetes kind version to 1.32
2024-12-29 17:42:12 +01:00
Amir Alavi
da65808f77
[release v0.32] update kubernetes kind version to 1.32
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-12-27 12:07:32 -06:00
Thomas D. Spear
7369b1291e
Mention cmdOptions.dry-run
...
Signed-off-by: Thomas D. Spear <81998567+tspearconquest@users.noreply.github.com >
2024-12-18 10:26:45 -06:00
Kubernetes Prow Robot
29ff28cbb5
Merge pull request #1536 from googs1025/test
...
feature(eviction): add event when EvictPod failed
2024-12-17 13:18:53 +01:00
Kubernetes Prow Robot
d653537ee6
Merge pull request #1575 from a7i/bump-k8s-1.32
...
bump to official kubernetes v0.32.0 deps
2024-12-17 11:17:00 +01:00
Kubernetes Prow Robot
c3b9c97827
Merge pull request #1564 from pipo02mix/improve-defaults
...
Improve chart default values
2024-12-17 11:16:53 +01:00
Kubernetes Prow Robot
75c5c75e13
Merge pull request #1576 from seanmalloy/bump-kind-0.26.0
...
Bump kind to v0.26.0
2024-12-17 10:38:52 +01:00
Sean Malloy
b66b5d35f0
Bump kind to v0.26.0
...
The new kind version defaults to k8s v1.32.0 version when creating
new clusters.
2024-12-16 22:28:54 -06:00
Kubernetes Prow Robot
5c3a3bdcf1
Merge pull request #1573 from icloudnote/charts
...
Fixed the issue when successfulJobsHistoryLimit and failedJobsHistoryLimit variables are 0.
2024-12-14 19:32:42 +01:00
Kubernetes Prow Robot
46fa370ede
Merge pull request #1570 from felipewnp/patch-1
...
docs: Removing deschedulerPolicy.strategies since it does not exist
2024-12-14 19:02:44 +01:00
Amir Alavi
4e8c7e6702
bump to official kubernetes v0.32.0 deps
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-12-13 20:03:43 -06:00
changjun
bc6323611b
Fixed the issue when successfulJobsHistoryLimit and failedJobsHistoryLimit variables are 0.
2024-12-11 21:44:01 +08:00
Kubernetes Prow Robot
51a004c848
Merge pull request #1569 from a7i/bump-v0.32.0-rc.2
...
bump to kubernetes v0.32.0-rc.2
2024-12-11 06:48:02 +00:00
Kubernetes Prow Robot
44bde42b63
Merge pull request #1572 from seanmalloy/golangci-lint-verbose
...
Enable golangci-lint Verbose Output
2024-12-11 02:52:02 +00:00
googs1025
bbffb830b9
feature(eviction): add event when EvictPod failed
2024-12-07 19:38:20 +08:00
Sean Malloy
73fecfb7c4
Enable golangci-lint Verbose Output
...
The golangci-lint tool gets stuck for a variety of reasons when
running in Prow CI. Enabling verbose output in an attempt to make
debugging easier.
ref: https://golangci-lint.run/contributing/debug/
2024-12-06 22:44:28 -06:00
Amir Alavi
f4c3fdf418
bump to kubernetes v0.32.0-rc.2
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-12-06 16:25:40 -05:00
Kubernetes Prow Robot
2c11481856
Merge pull request #1571 from seanmalloy/bump-golangci-lint-timeout
...
Bump golangci-lint timeout from 2m to 5m
2024-12-06 19:38:01 +00:00
Sean Malloy
e6deb65299
Bump golangci-lint timeout from 2m to 5m
...
Sometimes golangci-lint timesout when running in CI. Bump the timeout
from 2 minutes to 5 minutes to reduce flakey CI failures.
ref: https://golangci-lint.run/usage/configuration/#run-configurationhttps://golangci-lint.run/usage/configuration/#run-configuration
2024-12-06 13:03:40 -06:00
felipewnp
677c6a60ce
docs: Removing deschedulerPolicy.strategies since it does not exist
...
Since the parameter strategies don't exist anywhere in the code or docs, I'm removing it from the chart readme as a possible option.
It just makes things more confusing.
2024-12-06 12:49:43 -03:00
Kubernetes Prow Robot
a2fd3aa1eb
Merge pull request #1568 from seanmalloy/bump-kind-v0.25.0
...
Bump kind version to v0.25.0
2024-12-06 09:34:01 +00:00
Sean Malloy
697ecc79e4
Bump kind version to v0.25.0
2024-12-05 22:32:46 -06:00
Kubernetes Prow Robot
e619ec6c41
Merge pull request #1567 from seanmalloy/golangci-lint-bump-1.62.2
...
Bump golangci-lint to 1.62.2
2024-12-05 14:12:01 +00:00
Sean Malloy
be9e971cda
Bump golangci-lint to 1.62.2
2024-12-04 16:02:41 -06:00
Kubernetes Prow Robot
a8e14ec14d
Merge pull request #1565 from seanmalloy/go-bump-1.23.3
...
Bump to Go 1.23.3
2024-12-04 16:45:02 +00:00
Sean Malloy
00b6e3528f
Bump to Go 1.23.3
...
The k/k repo was bumped to Go 1.23.3. See below PR for reference.
https://github.com/kubernetes/kubernetes/pull/128852
2024-12-03 22:58:23 -06:00
pipo02mix
18e3d17c29
Improve chart default values
2024-12-03 14:42:14 +01:00
Kubernetes Prow Robot
a962cca90d
Merge pull request #1555 from ingvagabund/actual-utilization-kubernetes-metrics
...
Use actual node resource utilization by consuming kubernetes metrics
2024-11-20 13:58:54 +00:00
Jan Chaloupka
6567f01e86
[nodeutilization]: actual usage client through kubernetes metrics
2024-11-20 14:30:46 +01:00
Jan Chaloupka
c86416612e
go mod tidy/vendor k8s.io/metrics
2024-11-19 16:08:14 +01:00
Kubernetes Prow Robot
a4c09bf560
Merge pull request #1466 from ingvagabund/eviction-in-background-code
...
Introduce RequestEviction feature for evicting pods in background (KEP-1397)
2024-11-19 14:54:54 +00:00
Jan Chaloupka
7d4ec60e2d
bump(vendor)
2024-11-19 15:28:49 +01:00
Jan Chaloupka
3a1a3ff9d8
Introduce RequestEviction feature for evicting pods in background
...
When the feature is enabled each pod with descheduler.alpha.kubernetes.io/request-evict-only
annotation will have the eviction API error examined for a specific
error code/reason and message. If matched eviction of such a pod will be interpreted
as initiation of an eviction in background.
2024-11-19 15:28:37 +01:00
Kubernetes Prow Robot
343ebb9ff9
Merge pull request #1545 from ingvagabund/node-utilization-refactoring-III
...
nodeutilization: separate code responsible for requested resource extraction into a dedicated usage client
2024-11-15 14:34:53 +00:00
Jan Chaloupka
d1c64c48cd
nodeutilization: separate code responsible for requested resource extraction into a dedicated usage client
...
Turning a usage client into an interface allows to implement other kinds
of usage clients like actual usage or prometheus based resource
collection.
2024-11-15 11:23:49 +01:00
Kubernetes Prow Robot
7b1178be9f
Merge pull request #1551 from ingvagabund/bump-golangci-lint
...
bump(golangci-lint)=v1.62.0
2024-11-14 15:32:51 +00:00
Kubernetes Prow Robot
23a6d26209
Merge pull request #1549 from ingvagabund/usageKeysAndValues
...
nodeutilization: usage2KeysAndValues for constructing a key:value list for InfoS printing resource usage
2024-11-14 14:30:52 +00:00
Jan Chaloupka
cd408dd785
bump(golangci-lint)=v1.62.0
2024-11-14 15:03:03 +01:00
Jan Chaloupka
9950b8a55d
nodeutilization: usage2KeysAndValues for constructing a key:value list for InfoS printing resource usage
2024-11-14 14:15:26 +01:00
Jan Chaloupka
f115e780d8
Define EvictionsInBackground feature gate
2024-11-14 13:29:59 +01:00
Kubernetes Prow Robot
af8a7445a4
Merge pull request #1544 from ingvagabund/node-utilization-refactoring-II
...
nodeutilization: evictPodsFromSourceNodes: iterate through existing resources
2024-11-13 22:00:47 +00:00
Kubernetes Prow Robot
5ba11e09c7
Merge pull request #1543 from ingvagabund/node-utilization-refactoring-I
...
nodeutilization: NodeUtilization: make pod utilization extraction configurable
2024-11-13 21:34:47 +00:00
Kubernetes Prow Robot
d41981644a
Merge pull request #1546 from ingvagabund/sortNodesByUsage-extended
...
sortNodesByUsage: drop extended resources as they are already counted in
2024-11-13 20:50:47 +00:00
Jan Chaloupka
67d3d52de8
sortNodesByUsage: drop extended resources as they are already counted in
2024-11-13 21:31:02 +01:00
Jan Chaloupka
e9f43856a9
nodeutilization: iterate through existing resources
2024-11-13 15:31:48 +01:00
Jan Chaloupka
e655a7eb27
nodeutilization: NodeUtilization: make pod utilization extraction configurable
2024-11-13 14:21:32 +01:00
Kubernetes Prow Robot
da52983b27
Merge pull request #1542 from ingvagabund/descheduler-server-apply
...
DeschedulerServer: new Apply function for applying configuration
2024-11-13 13:10:47 +00:00
Kubernetes Prow Robot
1e48cfe6f8
Merge pull request #1541 from ingvagabund/sortNodesByUsage-dont-hardcode-resource-names
...
Update nodes sorting function to respect available resources
2024-11-13 12:46:46 +00:00
Jan Chaloupka
fb4b8746ec
Move RunE code under Run
2024-11-12 15:46:12 +01:00
Jan Chaloupka
269f16cf73
DeschedulerServer: new Apply function for applying configuration
2024-11-12 15:43:14 +01:00
Jan Chaloupka
7eeb07d96a
Update nodes sorting function to respect available resources
2024-11-11 16:26:56 +01:00
Kubernetes Prow Robot
a18425a18d
Merge pull request #1539 from sagar-18/patch-1
...
Update Dockerfile - GoLang v 1.22.7 FIX - CVE-2024-34156, CVE-2024-34155 and CVE-2024-34158
2024-11-05 07:47:29 +00:00
Sagar Chauhan
0c552b667f
Update Dockerfile - GoLang v 1.22.7 FIX - CVE-2024-34156
...
FIX - CVE-2024-34156
2024-10-31 21:27:06 +05:30
Simon Scharf
ef0c2c1c47
add ignorePodsWithoutPDB option ( #1529 )
...
* add ignoreNonPDBPods option
* take2
* add test
* poddisruptionbudgets are now used by defaultevictor plugin
* add poddisruptionbudgets to rbac
* review comments
* don't use GetPodPodDisruptionBudgets
* review comment, don't hide error
2024-10-15 21:21:04 +01:00
Kubernetes Prow Robot
7696f00518
Merge pull request #1532 from ingvagabund/node-utilization-refactoring
...
Node utilization refactoring
2024-10-14 20:10:22 +01:00
Jan Chaloupka
89bd188a35
hnu: move static code from Balance under plugin constructor
2024-10-11 16:49:23 +02:00
Jan Chaloupka
e3c41d6ea6
lnu: move static code from Balance under plugin constructor
2024-10-11 16:37:53 +02:00
Jan Chaloupka
e0ff750fa7
Move default LNU threshold setting under setDefaultForLNUThresholds
2024-10-11 16:31:37 +02:00
Kubernetes Prow Robot
b07be078c3
Merge pull request #1527 from ingvagabund/e2e-buildTestDeployment
...
test: construct e2e deployments through buildTestDeployment
2024-10-08 19:34:23 +01:00
Simon Scharf
22d9230a67
Make sure dry runs sees all the resources a normal run would do ( #1526 )
...
* generic resource handling, so that dry run has all the expected resource types and objects
* simpler code and better names
* fix imports
2024-10-04 12:20:28 +01:00
Jan Chaloupka
3e6166666b
test: construct e2e deployments through buildTestDeployment
2024-10-01 15:23:44 +02:00
Kubernetes Prow Robot
e1e537de95
Merge pull request #1522 from fanhaouu/e2e-leaderelection
...
[LeaderElection] e2e: build a descheduler image and run the descheduler as a pod
2024-10-01 08:23:53 +01:00
Kubernetes Prow Robot
8e762d2585
Merge pull request #1523 from fanhaouu/e2e-topologyspreadconstraint
...
[TopologySpreadConstraint] e2e: build a descheduler image and run the descheduler as a pod
2024-09-30 20:37:32 +01:00
Kubernetes Prow Robot
042fef7c91
Merge pull request #1521 from fanhaouu/e2e-failedpods
...
[FailedPods] e2e: build a descheduler image and run the descheduler as a pod
2024-09-30 20:37:24 +01:00
Kubernetes Prow Robot
2c033a1f6d
Merge pull request #1520 from fanhaouu/e2e-duplicatepods
...
[DuplicatePods] e2e: build a descheduler image and run the descheduler as a pod
2024-09-30 20:02:04 +01:00
Hao Fan
e0a8c77d0e
e2e: DuplicatePods: build a descheduler image and run the descheduler as a pod
2024-09-23 19:37:56 +08:00
Hao Fan
05ce561a06
e2e: FailedPods: build a descheduler image and run the descheduler as a pod
2024-09-23 19:36:53 +08:00
Hao Fan
8b6a67535f
remove policy_leaderelection yaml file
2024-09-23 19:36:01 +08:00
Hao Fan
347a08a11a
add update lease permission
2024-09-23 19:36:01 +08:00
Hao Fan
0ac05f6ea3
e2e: LeaderElection: build a descheduler image and run the descheduler as a pod
2024-09-23 19:35:33 +08:00
Hao Fan
af495e65f7
e2e: TopologySpreadConstraint: build a descheduler image and run the descheduler as a pod
2024-09-23 19:33:59 +08:00
Kubernetes Prow Robot
18ef69584e
Merge pull request #1517 from fanhaouu/e2e-common-method
...
[e2e] abstract common methods
2024-09-20 09:31:33 +01:00
Hao Fan
d25cba08a9
[e2e] abstract common methods
2024-09-19 21:51:11 +08:00
Kubernetes Prow Robot
8b0744c5b2
Merge pull request #1514 from a7i/amir/gha-perms
...
fix: github action Release Charts to have write permissions
2024-09-09 22:15:57 +01:00
Amir Alavi
6e30321989
fix: github action Release Charts to have write permissions
2024-09-09 16:56:11 -04:00
Kubernetes Prow Robot
b094acb572
Merge pull request #1512 from a7i/bump-helm
...
descheduler v0.31.0: bump helm chart
2024-09-09 21:48:34 +01:00
Kubernetes Prow Robot
9f15e02245
Merge pull request #1513 from a7i/amir/bump-golangci
...
chore: bump golangci-lint to latest
2024-09-09 20:35:09 +01:00
Amir Alavi
3bf40c830a
chore: bump golangci-lint to latest
2024-09-09 14:53:15 -04:00
Kubernetes Prow Robot
c9c03ee536
Merge pull request #1511 from a7i/bump-kustomize
...
descheduler v0.31.0: bump kustomize files
2024-09-09 19:42:43 +01:00
Amir Alavi
f19a297d64
bump kustomize files
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-09-09 14:22:02 -04:00
Amir Alavi
2c005600cc
descheduler v0.31.0: bump helm chart
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-09-09 14:20:56 -04:00
Kubernetes Prow Robot
b35e93ec7a
Merge pull request #1510 from Juneezee/chore/yaml
...
chore: replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml`
2024-09-09 10:08:27 +01:00
Kubernetes Prow Robot
4d6a0f1c0e
Merge pull request #1508 from fanhaouu/fix-run-e2e-tests-bug
...
[e2e] no test timeouts, produce the same image tag as in production
2024-09-09 09:22:27 +01:00
Kubernetes Prow Robot
73432b788c
Merge pull request #1506 from a7i/docs-v0.31
...
descheduler v0.31: update docs and manifests
2024-09-09 09:02:28 +01:00
Eng Zer Jun
33868c44df
chore: replace github.com/ghodss/yaml with sigs.k8s.io/yaml
...
At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.
`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2024-09-08 23:48:16 +08:00
Amir Alavi
4989cc3b6c
descheduler v0.31: update docs and manifests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-09-05 19:00:41 -04:00
Hao Fan
ab6a3ca2d6
avoid e2e test timeout
2024-09-04 01:26:30 +08:00
Hao Fan
fdd69106a3
modify IMAGE_TAG to fix the version parsing issue
2024-09-04 01:26:20 +08:00
Kubernetes Prow Robot
0f1890e5cd
Merge pull request #1480 from ingvagabund/omitempty-for-plugin-args
...
Plugin args: tag arguments with omitempty to reduce the marshalled json size
2024-09-02 12:00:56 +01:00
Kubernetes Prow Robot
ed6a133449
Merge pull request #1507 from bendikp/make-security-context-conditional
...
feat(helm): make securityContext conditional in Deployment and CronJob
2024-09-02 11:42:56 +01:00
Bendik Paulsrud
0b505946bf
feat(helm): make securityContext conditional in Deployment and CronJob
2024-08-30 08:29:51 +02:00
Kubernetes Prow Robot
dbe4423749
Merge pull request #1504 from a7i/k8s-1.31-e2e
...
descheduler v0.31: update e2e test versions
2024-08-29 11:42:29 +01:00
Kubernetes Prow Robot
a300009b5d
Merge pull request #1505 from a7i/python-eol
...
chore: upgrade python EOL and action versions
2024-08-29 10:02:29 +01:00
Amir Alavi
9fa48cd97e
chore: upgrade python EOL and action versions
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-28 23:24:36 -04:00
Amir Alavi
0cf1fc906e
descheduler v0.31: update e2e test versions
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-28 23:04:59 -04:00
Kubernetes Prow Robot
4e4c5f79fb
Merge pull request #1496 from a7i/k8s-1.30
...
bump k8s.io libs to v0.31.0
2024-08-15 12:47:53 -07:00
Kubernetes Prow Robot
8abb3509f9
Merge pull request #1498 from ingvagabund/readme-drop-v1alpha-descheduling-policy-mention
...
README: drop v1alpha1 descheduler policy mention
2024-08-15 07:29:18 -07:00
Jan Chaloupka
3eece465fb
README: drop v1alpha1 descheduler policy mention
2024-08-15 15:08:11 +02:00
Amir Alavi
33a747096b
bump k8s.io libs to v0.31.0
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-08-14 14:51:32 -04:00
Kubernetes Prow Robot
f6fe8fd0bd
Merge pull request #1485 from ingvagabund/simplify-TestPodEvictorReset
...
[unit test]: simplify test pod evictor reset
2024-08-14 02:18:43 -07:00
Jan Chaloupka
29c0a90998
TestPodEvictorReset: replace duplicates strategy with node taints to simplify the testing
2024-08-14 11:00:20 +02:00
Kubernetes Prow Robot
640b675e86
Merge pull request #1484 from ingvagabund/test-descheduling-limits
...
[unit test]: test descheduling limits
2024-08-14 01:53:04 -07:00
Kubernetes Prow Robot
c0c26e762b
Merge pull request #1483 from ingvagabund/dedup-framework-init
...
tests: de-duplicate framework handle initialization
2024-08-14 01:20:26 -07:00
Jan Chaloupka
91e5e06b5f
[unit test]: test descheduling limits
2024-08-14 10:15:58 +02:00
Kubernetes Prow Robot
df7791fafa
Merge pull request #1482 from ingvagabund/drop-v1alpha1
...
Remove descheduler/v1alpha1 type
2024-08-13 19:14:43 -07:00
Jan Chaloupka
cbade38d23
[tests] de-duplicate framework handle initialization
2024-08-12 17:05:30 +02:00
Jan Chaloupka
1e0b1a9840
Remove descheduler/v1alpha1 type
2024-08-09 09:49:59 +02:00
Jan Chaloupka
cb0c1b660d
Plugin args: tag arguments with omitempty to reduce the marshalled json size
2024-08-06 15:20:18 +02:00
Kubernetes Prow Robot
daaa3a277e
Merge pull request #1479 from sklirg/feat/container-oci-annotation-source
...
docs: Provide OCI annotation for where to find image sources
2024-08-05 17:48:51 -07:00
Håkon Solbjørg
683cd7f794
docs: Provide OCI annotation for where to find image sources
...
Add a label for the OCI annotation for image source, as per
https://github.com/opencontainers/image-spec/blob/main/annotations.md
2024-08-05 17:35:13 +02:00
Kubernetes Prow Robot
2189fe4479
Merge pull request #1474 from ingvagabund/e2e-build-and-run-descheduler-image
...
[TestTooManyRestarts] e2e: build a descheduler image and run the descheduler as a pod
2024-08-04 11:58:38 -07:00
Jan Chaloupka
e4c361d902
e2e: build a descheduler image and run the descheduler as a pod
2024-08-04 12:06:01 +02:00
Kubernetes Prow Robot
de7cec0640
Merge pull request #1476 from shahar-h/go-1.22.5
...
bump go to 1.22.5
2024-08-03 08:34:37 -07:00
Shahar Harari
48690989da
bump go to 1.22.5
...
Signed-off-by: Shahar Harari <shahar.harari@sap.com >
2024-07-30 08:24:34 +03:00
Kubernetes Prow Robot
601f213b4f
Merge pull request #1469 from ingvagabund/e2e-fix-leaderelection
...
e2e: TestLeaderElection: delete the lease and increase the retry period
2024-07-29 20:01:28 -07:00
Kubernetes Prow Robot
8e70190c8a
Merge pull request #1430 from a7i/fix-minor-ver-parse
...
fix: minor version parsing in version compatibility check
2024-07-29 19:41:17 -07:00
Amir Alavi
a3146a1705
fix: minor version parsing in version compatibility check
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-28 11:44:12 -04:00
Victor Gonzalez
55a0812ae6
skip eviction when pod creation time is below minPodAge threshold setting ( #1475 )
...
* skip eviction when pod creation time is below minPodAge threshold setting
In the default initialization phase of the descheduler, add a new
constraint to not evict pods that creation time is below minPodAge
threshold.
Added value:
- Avoid crazy pod movement when the autoscaler scales up and down.
- Avoid evicting pods when they are warming up.
- Decreases the overall cost of eviction as no pod will be evicted
before doing significant amount of work.
- Guard against scheduling. Descheduling loops in situations where
the descheduler has a different node fit logic from scheduler,
like not considering topology spread constraints.
* Use *time.Duration instead of uint for MinPodAge type
* Remove '(in minutes)' from default evictor configuration table
* make fmt
* Add explicit name for Duration field
* Use Duration.String()
2024-07-26 05:59:21 -07:00
Kubernetes Prow Robot
f3569b5fe2
Merge pull request #1354 from ingvagabund/evictions-in-background
...
KEP-1397: descheduler integration with evacuation API as an alternative to eviction API
2024-07-24 11:47:35 -07:00
Jan Chaloupka
d2bd573cdb
e2e: TestLeaderElection: delete the lease and increase the retry period
...
In some random cases none of the deschedulers acquires a lease.
Making the test fail.
2024-07-22 17:24:56 +02:00
Kubernetes Prow Robot
95ef2bbec3
Merge pull request #1471 from ingvagabund/e2e-duplicates
...
e2e: TestRemoveDuplicates: limit the tested namespace
2024-07-21 08:55:18 -07:00
Kubernetes Prow Robot
355cff67c1
Merge pull request #1472 from ingvagabund/e2e-run-descheduler-from-top-instead-of-a-plugin
...
e2e: TestTooManyRestarts: run descheduler as a whole instead of a single plugin
2024-07-20 12:18:55 -07:00
Kubernetes Prow Robot
9220a1c009
Merge pull request #1473 from ingvagabund/bump-golangci-lint
...
bump(github.com/golangci/golangci-lint)=v1.59.1
2024-07-20 11:46:36 -07:00
Jan Chaloupka
b60a3fcfeb
bump(github.com/golangci/golangci-lint)=v1.59.1
2024-07-19 12:54:25 +02:00
Jan Chaloupka
ab467a5dd2
e2e: TestTooManyRestarts: run descheduler as a whole instead of a single plugin
2024-07-19 11:10:19 +02:00
Jan Chaloupka
f66efaf8db
e2e: TestRemoveDuplicates: limit the tested namespace
...
RemoveDuplicates is namespaced scope. Limiting the namespace will avoid
unexpected evictions from other namespaces.
2024-07-19 09:25:20 +02:00
Kubernetes Prow Robot
0c9750cc7f
Merge pull request #1468 from adammw/adammw/podlifetime-initcontainerstatus
...
feat: add init and ephemeral container checks to PodLifeTime
2024-07-17 06:09:07 -07:00
Adam Malcontenti-Wilson
f23967a88e
feat: add init and ephemeral container checks to PodLifeTime
2024-07-17 14:36:35 +10:00
Kubernetes Prow Robot
a6e75fe0bd
Merge pull request #1467 from a7i/helm-unittest
...
helm unit tests
2024-07-15 23:39:10 -07:00
Amir Alavi
9b5026314f
helm unit tests
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-15 14:45:31 -04:00
Kubernetes Prow Robot
c56a408b2c
Merge pull request #1443 from a7i/amir/leader-election-namespace-typo
...
fix: helm leader-election typo to `resourceNamespace`
2024-07-14 09:21:10 -07:00
Amir Alavi
fc1b54318f
fix: helm leader-election typo to resourceNamespace
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-07-13 11:46:23 -04:00
Kubernetes Prow Robot
da862a5698
Merge pull request #1444 from ternbusty/feature/namespace-override
...
feat: Add namespace override settings in Helm Chart
2024-07-11 20:19:22 -07:00
Kubernetes Prow Robot
eb6c325553
Merge pull request #1464 from eminaktas/update-pointer-to-ptr
...
refactor: replace k8s.io/utils/pointer with k8s.io/utils/ptr
2024-07-11 07:42:58 -07:00
Emin Aktas
f8e128d862
refactor: replace k8s.io/utils/pointer with k8s.io/utils/ptr
...
Signed-off-by: Emin Aktas <eminaktas34@gmail.com >
2024-07-11 11:36:34 +03:00
Kubernetes Prow Robot
a2a45db6de
Merge pull request #1463 from zhifei92/update-readme
...
Update README about maxNoOfPodsToEvictTotal
2024-07-11 01:31:47 -07:00
zhifei92
d8084e8b39
update README about maxNoOfPodsToEvictTotal
2024-07-11 16:05:36 +08:00
Kubernetes Prow Robot
b614c8bc7c
Merge pull request #1458 from ingvagabund/pod-evictor-thread-safe
...
pod evictor: make it thread safe
2024-07-10 04:48:26 -07:00
Kubernetes Prow Robot
9b41edd382
Merge pull request #1460 from ingvagabund/context
...
descheduler_test.go: initDescheduler: pass a new ctx with cancel inst…
2024-07-09 11:24:11 -07:00
Jan Chaloupka
bc60a058ef
pod evictor: make it thread safe
...
Currently, all the plugins are run in a sequence.
No plugin executes evictions in parallel within.
Yet, there's no guarantee a future plugin (e.g. a custom one)
will not attemp to evict pods in parallel.
2024-07-09 12:39:08 +02:00
Kubernetes Prow Robot
546a39e88c
Merge pull request #1451 from zhifei92/support-total-pods-limit
...
The descheduler supports limiting the total number of pods evicted per rescheduling cycle
2024-07-09 03:35:17 -07:00
zhifei92
578086ca8e
refactor: optimize error descriptions
2024-07-09 17:14:34 +08:00
Jan Chaloupka
ea2eeccff4
descheduler_test.go: initDescheduler: pass a new ctx with cancel instead of returning a cancel
2024-07-09 09:19:59 +02:00
Kubernetes Prow Robot
d0695abea9
Merge pull request #1459 from ingvagabund/descheduler-test-refactoring
...
descheduler_test.go refactoring
2024-07-08 23:39:16 -07:00
zhifei92
e60f525ec6
feat: support MaxNoOfPodsToEvictTotal
2024-07-09 14:00:27 +08:00
Jan Chaloupka
3362fec7b0
Define initDescheduler for further use
...
Can be used by other tests executing individual descheduling cycle
explicitly.
2024-07-08 17:28:51 +02:00
Jan Chaloupka
f240648df2
Set OwnerReferences through GetReplicaSetOwnerRefList
2024-07-08 17:10:07 +02:00
Jan Chaloupka
a818c01832
Use v1alpha2 descheduling policy
2024-07-08 17:04:53 +02:00
Jan Chaloupka
44b59f9b1d
initPluginRegistry as a single way to register all plugins in testing
2024-07-08 16:55:27 +02:00
Kubernetes Prow Robot
9d16c28f43
Merge pull request #1456 from ingvagabund/limit-exceeded-to-error
...
PodEvictor: turn an exceeded limit into an error
2024-07-08 06:25:06 -07:00
Kubernetes Prow Robot
f8afd679ed
Merge pull request #1457 from googs1025/refactor_method
...
fix: add info for error return
2024-07-07 11:10:32 -07:00
googs1025
db0df6c6ca
fix: add info for error return
2024-07-07 21:16:52 +08:00
Jan Chaloupka
18d0e4a540
PodEvictor: turn an exceeded limit into an error
...
When checking for node limit getting exceeded the pod eviction
never fails. Thus, ignoring the metric reporting when a pod fails
to be evicted due to node limit constrains.
The error also allows plugin to react on other limits getting
exceeded. E.g. the limit on the number of pods evicted per namespace.
2024-07-06 20:14:43 +02:00
Kubernetes Prow Robot
7657345079
Merge pull request #1452 from a7i/defaultevictor-reinit
...
fix: indexer cache error when default evictor is re-initialized
2024-07-06 04:30:53 -07:00
Kubernetes Prow Robot
d1118354c9
Merge pull request #1455 from a7i/amir/pod-evictor-options
...
feat: pod evictor options
2024-07-06 03:00:53 -07:00
Amir Alavi
e26f6429a2
feat: pod evictor options
2024-07-05 21:40:55 -04:00
Kubernetes Prow Robot
686417b6de
Merge pull request #1454 from ingvagabund/generate-uuid-for-test-pods
...
test: generate uid when building a pod
2024-07-04 01:19:59 -07:00
Jan Chaloupka
287d1b1573
test: generate uid when building a pod
...
UID is an integral part of every pod.
Even though we don't test for UID in any of the existing test cases,
future test cases might rely on it.
2024-07-02 14:30:42 +02:00
Amir Alavi
7ab36daaec
fix: indexer cache error when default evictor is re-initialized
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-28 00:34:55 -04:00
Kubernetes Prow Robot
f2be3fd414
Merge pull request #1436 from fanhaouu/feat-return-node-fit-error
...
return node fit error in advance
2024-06-27 10:54:41 -07:00
Kubernetes Prow Robot
9eefbf05cb
Merge pull request #1450 from googs1025/refactor
...
refactor: PodMatchNodeSelector method
2024-06-27 10:05:17 -07:00
googs1025
cfa6845a19
refactor: PodMatchNodeSelector method
2024-06-27 22:10:41 +08:00
Hao Fan
8a2b2eb37c
return node fit error in advance
2024-06-26 17:18:32 +08:00
Kubernetes Prow Robot
972d28108a
Merge pull request #1447 from ingvagabund/refactorings
...
PodEvictor: refactoring and preparation for eviction requests
2024-06-25 01:08:44 -07:00
Kubernetes Prow Robot
f294d953a3
Merge pull request #1445 from zhifei92/fix-unit-test
...
Unit-test: add necessary ownerRef to the pod.
2024-06-25 00:15:40 -07:00
Kubernetes Prow Robot
85837b1063
Merge pull request #1446 from googs1025/fix_filter
...
fix: return the unmatched cases first
2024-06-24 23:53:40 -07:00
Jan Chaloupka
fadef326ff
TestPodEvictorReset: check the dry mode evicts duplicated pods
2024-06-23 20:30:36 +02:00
Jan Chaloupka
f5060adcd1
Move fake client from the cachedClient function
...
Remove the fakeClient from cachedClient function so a different
fakeClient can be injected for testing purposes
2024-06-23 19:59:46 +02:00
Jan Chaloupka
75880226c0
Set up the pod evictor only once
...
Currently, the pod evictor is created during each descheduling cycle
to reset the internal counters and the fake client (in case a dry run is
configured). Instead, create the pod evictor once and reset only what's
needed. So later on the pod evictor can be extended with e.g. a cache
keeping the track of eviction requests that are still in progress and
required more than a single descheduling cycle to complete.
2024-06-23 19:24:27 +02:00
Jan Chaloupka
0901cb18bf
NewPodEvictor: drop nodes parameter
2024-06-22 15:08:00 +02:00
googs1025
6fdee47cbc
fix: return the unmatched cases first, then perform the eviction
2024-06-22 18:16:40 +08:00
zhifei92
ae15fed7e7
fix(unit-test): add necessary ownerRef to the pod.
2024-06-21 19:12:40 +08:00
ternbusty
ebae217631
add namespaceOverride setting to README
2024-06-21 05:43:17 +09:00
ternbusty
d7178984df
modify to use descheduler.namespace setting
2024-06-21 05:29:27 +09:00
ternbusty
2253e9816c
add namespaceOverride Setting
2024-06-21 05:28:34 +09:00
Kubernetes Prow Robot
cdbd101eae
Merge pull request #1438 from googs1025/clean_up_nodelister
...
chore: cleanup duplicated code
2024-06-20 07:07:16 -07:00
Kubernetes Prow Robot
15551bb834
Merge pull request #1431 from a7i/automated-cherry-pick-of-#1427-upstream-master
...
Automated cherry pick of #1427 : helm: upgrade to v0.30.1
2024-06-20 07:07:09 -07:00
Kubernetes Prow Robot
bdaff92c10
Merge pull request #1441 from googs1025/e2e_test
...
refactor some methods in e2e test
2024-06-20 05:20:16 -07:00
googs1025
9fea59821f
refactor e2e test
2024-06-18 22:48:53 +08:00
Kubernetes Prow Robot
2df11f837a
Merge pull request #1439 from googs1025/add_ut
...
add validation ut
2024-06-17 23:49:47 -07:00
googs1025
0e2478ac41
add validation ut
2024-06-13 11:56:33 +08:00
googs1025
ec33490314
chore: cleanup duplicated code
2024-06-12 08:56:13 +08:00
Kubernetes Prow Robot
1c8ae64726
Merge pull request #1435 from fanhaouu/feat-return-pod-qos
...
return pod qos in advance
2024-06-10 19:38:05 -07:00
Hao Fan
fd7fcbddfe
return pod qos in advance
2024-06-10 00:22:17 +08:00
Kubernetes Prow Robot
69e5c5a1ef
Merge pull request #1433 from a7i/CVE-2024-24790
...
bump go to 1.22.4 for CVE-2024-24790 and CVE-2024-24789
2024-06-09 05:34:07 -07:00
Amir Alavi
8f1102b547
bump go to 1.22.4 for CVE-2024-24790 and CVE-2024-24789
2024-06-09 07:37:01 -04:00
Kubernetes Prow Robot
9a57a37cc0
Merge pull request #1432 from a7i/go-versions
...
chore: reduce repetition of go versions
2024-06-09 00:44:23 -07:00
Amir Alavi
1dd21ba507
use jq to parse go version per pr feedback
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-08 18:25:56 -04:00
Amir Alavi
2ae79bee64
chore: reduce repetition of go versions
...
when we cut a new release of descheduler, we have to update the go version in multiple places
which presents an opportunity to miss updating one.
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-06-08 12:52:34 -04:00
Amir Alavi
32065f0caa
helm: upgrade to v0.30.1
2024-06-08 11:19:20 -04:00
Kubernetes Prow Robot
8714397ba6
Merge pull request #1429 from damemi/bump-otel-schema
...
Bump otel semconv to 1.24
2024-06-06 09:37:29 -07:00
Mike Dame
47cc875fe8
Don't crash if failing to create tracer provider
2024-06-06 15:57:58 +00:00
Mike Dame
d699454d5e
Bump otel semconv to 1.24
2024-06-06 13:05:55 +00:00
Jan Chaloupka
a889e57768
Address review comments
2024-06-05 14:18:42 +02:00
Kubernetes Prow Robot
748495a022
Merge pull request #1395 from fanhaouu/fix-check-pod-anti-affinity
...
fix the issue that the pod anti-filtering rules are not taking effect
2024-06-03 05:04:34 -07:00
Hao Fan
c80556fc91
fix the issue that the pod anti-filtering rules are not taking effect
2024-06-02 18:58:57 +08:00
Kubernetes Prow Robot
17af29afe4
Merge pull request #1416 from googs1025/use_cmd_context
...
use cmd context instead of using context.Background()
2024-05-28 16:55:20 -07:00
googs1025
8be82b008c
use cmd context instead of using context.Background()
2024-05-28 20:50:55 +08:00
Kubernetes Prow Robot
fc01793949
Merge pull request #1413 from duplabe/readme-toc-location-fix
...
fix TOC location in Readme
2024-05-22 00:21:24 -07:00
balazs.benyo
22dfa5d559
fix TOC location in Readme
2024-05-22 08:21:23 +02:00
Kubernetes Prow Robot
4b8e2076e9
Merge pull request #1412 from duplabe/helm-fix-default-descheduler-policy
...
fix helm's default deschedulerPolicy
2024-05-21 13:12:11 -07:00
Kubernetes Prow Robot
1c1b1a7207
Merge pull request #1390 from omerap12/helm_chart_allow_falsey_value
...
Helm chart - allow 'falsey' value in cmdOption
2024-05-21 12:32:53 -07:00
balazs.benyo
2675dbedef
fix helm's default deschedulerPolicy
2024-05-21 20:47:59 +02:00
Kubernetes Prow Robot
77a0693e0c
Merge pull request #1378 from hanyouqing/youqing/fix-the-replica-type-for-the-helm-chart
...
Fix the replicas value type for the descheduler helm-chart
2024-05-20 18:18:29 -07:00
Kubernetes Prow Robot
79990946eb
Merge pull request #1405 from a7i/kustomize-image-tags
...
[release 1.30] update kustomize image tags and helm versions
2024-05-20 06:36:42 -07:00
Amir Alavi
4671199be7
upgrade helm chart to v0.30.0
2024-05-20 07:23:30 -04:00
Kubernetes Prow Robot
a82fc7b4e4
Merge pull request #1408 from a7i/amir/bump-go-1.22.3
...
bump to to 1.22.3 to address CVE-2024-24788
2024-05-19 19:56:17 -07:00
Amir Alavi
2ac072e5da
bump to to 1.22.3 to address CVE-2024-24788
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-19 20:27:28 -04:00
Amir Alavi
ee5bc6991d
[release 1.30] update kustomize image tags
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 21:05:44 -04:00
Kubernetes Prow Robot
0ec8581964
Merge pull request #1400 from a7i/kube-1.30
...
[release 1.30] upgrade kubernetes version and docs
2024-05-18 13:29:22 -07:00
Amir Alavi
2f7544344b
bump golangci lint to v1.58.1
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 10:23:38 -04:00
Amir Alavi
b08f1fa8b5
fix: code-gen scripts to use new flags
...
in recent kubernetes 1.30, the code-gen flags were changed. --output-file-base -> --output-file based on 144141734d \#diff-beaa4412ca0edb2451061daa9570ce25858ec41951938fc60f17e2370462ad8e
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-05-18 10:01:23 -04:00
Amir Alavi
fca4a0970f
[release 1.30] upgrade kubernetes version and docs
...
Signed-off-by: Amir Alavi <amir.alavi@zendesk.com >
2024-05-14 14:17:34 -04:00
Jan Chaloupka
b1c6e24f93
KEP-1397: descheduler integration with evacuation API as an alternative to eviction API
2024-05-14 13:42:42 +02:00
Kubernetes Prow Robot
fda4c96937
Merge pull request #1396 from ingvagabund/keps-framework-update-diagram
...
KEP-753: Descheduling framework: update diagram
2024-05-13 06:03:17 -07:00
Jan Chaloupka
3ef05e9e7f
KEP-753: Descheduling framework: update diagram
...
Update the profiles to reflect only Deschedule and Balance plugins are
run and the order of first Deschedule of all profiles then Balance of
all profiles.
2024-05-11 19:25:43 +02:00
Kubernetes Prow Robot
4bbafe7c19
Merge pull request #1372 from ingvagabund/kep-descheduling-framework
...
753 - Descheduling framework
2024-05-10 20:37:58 -07:00
Omer Aplatony
9f5fc14410
Fixed options without value
2024-05-08 17:42:40 +03:00
Youqing Han
b2bb8272af
Convert the replicas value to int for comparision
2024-05-08 11:41:10 +08:00
Omer Aplatony
149a4c11c4
Added speaces
2024-05-03 17:37:32 +03:00
Omer Aplatony
2ce9d46b8c
allow 'falsey' value in cmdOption
2024-05-03 14:39:37 +03:00
Kubernetes Prow Robot
77ec804529
Merge pull request #1381 from yuanchen8911/exitcode
...
Add an extra parameter ExitCode to RemoveFailedPods
2024-05-02 20:27:52 -07:00
Yuan Chen
25b9edae3c
Add an extra parameter ExitCode to RemoveFailedPod
...
Update README.md
Fix README and test files
Update README
Address a7i's comments
Update README
2024-05-02 17:11:50 -07:00
Jan Chaloupka
8da68695e1
753 - Descheduling framework
2024-04-28 18:52:10 +02:00
Kubernetes Prow Robot
b95380641f
Merge pull request #1379 from yuanchen8911/readme
...
Fix and improve the namespace filtering description in README
2024-04-18 17:55:45 -07:00
Yuan Chen
10d0ce0dfa
Fix and improve the namespace filtering description in README
2024-04-18 17:03:32 -07:00
Youqing Han
667df9b606
Fix the replicas type for the helm-chart
2024-04-18 12:05:14 +08:00
Angelos Mimidis
2c06a33d41
helm: Allow the use of existing policy configMap ( #1376 )
...
* Allow the use of existing policy configMap.
* Update charts/descheduler/templates/configmap.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
* Remove references to unused variable and update documentation regarding deschedulerPolicy
* Add missing newLine at EOF
* Update charts/descheduler/values.yaml
* remove trailing space
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2024-04-16 20:15:51 -07:00
Julian Lawrence
4bd348d9b7
bump to go 1.22.2 ( #1374 )
...
* bump to 1.22.2 for CVE-2023-45288
* updated gofmt update/verify versions
* doc update
2024-04-09 16:21:37 -07:00
Gabriel Tiossi
82559025b1
Allow eviction of DaemonSet pods ( #1342 )
...
* feat: evictDaemonSetPods flag for evictors
* test: evictDaemonSetPods unit and e2e
* docs: evictDaemonSetPods
2024-04-09 07:47:34 -07:00
Kubernetes Prow Robot
a2c88582fa
Merge pull request #1373 from ingvagabund/bump-golangorg-x-net
...
bump(golang.org/x/net)=v0.23.0
2024-04-08 07:38:16 -07:00
Jan Chaloupka
a321a38328
bump(golang.org/x/net)=v0.23.0
2024-04-08 16:11:17 +02:00
Kubernetes Prow Robot
970b35d737
Merge pull request #1369 from fanhaouu/feat-avoid-defaultEvictorArgs-conversion-twice
...
avoid redundant type conversion of DefaultEvictorArgs parameter in DefaultEvictor
2024-04-03 18:58:17 -07:00
Kubernetes Prow Robot
364f467421
Merge pull request #1365 from ls-2018/master
...
`RemoveDuplicates`: reduce cycle times identifying duplicates
2024-04-03 18:58:10 -07:00
Amir Alavi
dd94f2ed93
use v1alpha2 api for helm chart default values ( #1139 )
2024-03-29 13:29:32 -07:00
Hao Fan
7f20b5c891
fix: avoid redundant type conversion of DefaultEvictorArgs parameters in DefaultEvictor
...
Signed-off-by: Hao Fan <hao.fan@shopee.com >
2024-03-28 15:25:42 +08:00
Kubernetes Prow Robot
e63e159c04
Merge pull request #1360 from etoster/remove-only-pods-violating-included-node-taints
...
Add argument to remove only pods violating allowlisted taints
2024-03-25 07:39:12 -07:00
etoster
b7697869f2
add argument to remove only pods violating specific node taints
2024-03-25 15:21:21 +01:00
acejilam
19ced3d630
reduce cycle times
...
Signed-off-by: acejilam <acejilam@gmail.com >
2024-03-14 22:43:20 +08:00
Kubernetes Prow Robot
82af9c6321
Merge pull request #1257 from a7i/minreplicas-evictor-threshold
...
skip eviction when replica count is below evictor `minReplicas` threshold setting
2024-03-13 06:46:54 -07:00
Amir Alavi
37df42df7c
skip eviction when replica count is below evictor minReplicas threshold setting
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-03-13 09:29:27 -04:00
Pravar Agrawal
ed1efe436f
Bump to k8s v0.30.0-alpha.3 ( #1359 )
...
* update go.mod for v0.30.0-alpha.3
* update vendor deps
* regenrate go.mod transitive dependencies
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2024-03-12 20:09:33 -07:00
Niki Manoledaki
749e81c51c
Check whether pod matches the inter-pod anti-affinity of another Pod in a given Node in NodeFit() ( #1356 )
...
* Check if Pod matches inter-pod anti-affinity of other pod on node as part of NodeFit()
* Add unit tests for checking inter-pod anti-affinity match in NodeFit()
* Export setPodAntiAffinity() helper func to test utils
* Add docs for inter-pod anti-affinity in README
* Refactor logic for inter-pod anti-affinity to use in multiple pkgs
* Move logic for finding match between pods with antiaffinity out of framework to reuse in other pkgs
* Move interpod antiaffinity funcs to pkg/utils/predicates.go
* Add unit tests for inter-pod anti-affinity check
* Test logic in GroupByNodeName
* Test NodeFit() case where pods matches inter-pod anti-affinity
* Test for inter-pod anti-affinity pods match terms, have label selector
* NodeFit inter-pod anti-affinity check returns early if affinity spec not set
2024-03-12 19:50:03 -07:00
Kubernetes Prow Robot
dc2cf723bc
Merge pull request #1362 from jackfrancis/pod-fit-logs
...
Disambiguate node fit log messages
2024-03-08 20:21:38 -08:00
Jack Francis
d7c12c5f00
Disambiguate node fit log messages
...
Signed-off-by: Jack Francis <jackfrancis@gmail.com >
2024-03-06 13:59:14 -08:00
Kubernetes Prow Robot
a5f322521e
Merge pull request #1358 from tioxy/fix_metrics_evictoptions
...
Fix node taint wrong EvictOption field
2024-03-04 05:40:44 -08:00
Gabriel Tiossi
52d226321b
fix(plugins): node taint wrong option
2024-03-03 03:28:18 +00:00
Gabriel Tiossi
bb5930eb21
Improve PodEvictor observability through EvictOptions ( #1349 )
...
* feat: profile name for pods_evicted metric
Support new label "profile" for "pods_evicted" metric to allow
understand which profiles are evicting more pods, allowing better
observability
* refactor: evictoptions improved observability
Send profile and strategy names for EvictOptions, allowing Evictors to
access observability information
* cleanup: remove unnecessary evictoption reference
* feat: evictoptions for nodeutilzation
Explicit usage of options when invoking evictPods from the helper
function from nodeutilization for both highnodeutilization and
lownodeutilization
2024-03-02 12:06:05 -08:00
Kubernetes Prow Robot
6c865fdf32
Merge pull request #1348 from a7i/amir/toomanyrestarts-initcontainer
...
fix: `RemovePodsHavingTooManyRestarts` to include `InitContainerStatuses`
2024-02-07 05:36:34 -08:00
Kubernetes Prow Robot
af1ffe7a15
Merge pull request #1346 from a7i/amir/trim-managed-fields
...
trim managedFields in shared informer factory
2024-02-07 05:17:13 -08:00
Amir Alavi
97c0044a74
fix: RemovePodsHavingTooManyRestarts to include InitContainerStatuses
...
Signed-off-by: Amir Alavi <amir.alavi@zendesk.com >
2024-02-06 14:21:42 -05:00
Amir Alavi
c7f8670b11
trim managedFields in shared informer factory
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-02-01 09:58:44 -05:00
Kubernetes Prow Robot
99472b6223
Merge pull request #1343 from a7i/CVE-2023-48795
...
chore: update dependencies for security vulnerabilities (CVE-2023-48795)
2024-01-29 02:08:38 -08:00
Amir Alavi
492da1b8a9
chore: update dependencies for security vulnerabilities (CVE-2023-48795)
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-25 11:26:25 -05:00
Kubernetes Prow Robot
70f3619fad
Merge pull request #1289 from UAntBou/master
...
feat: Add support for topologySpreadConstraints
2024-01-17 05:13:05 +01:00
Kubernetes Prow Robot
0d096edbee
Merge pull request #1337 from a7i/v1alpha1-deprecate-notice
...
v1alpha1: log deprecation notice
2024-01-08 16:45:26 +01:00
dongjiang
e7980442ef
PodLifeTime: update support pods with container status and pods reason (#1330 )
...
* update support podlifetime status
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
* update verify gen
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
---------
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2024-01-06 17:50:32 +01:00
Kubernetes Prow Robot
c2cf78a760
Merge pull request #1334 from xujihui1985/fix/correct-failed-unittest
...
fix(podlifetime): fix failed unittest
2024-01-05 20:17:55 +01:00
xujihui1985
5092595384
fix: filter pod with age greater than MaxPodLifeTimeSeconds
...
when the pod createtimestamp is greater than the current time (which is
not make sense in real life, but when doing test with such case,
it is possible), it will convert to a large number if we convert it
to uint, and though it can pass the test, but doesn't make sense.
2024-01-03 20:13:26 +08:00
Amir Alavi
d513c5d9d7
v1alpha1: log deprecation notice
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-02 20:41:21 -05:00
Kubernetes Prow Robot
4d47bd7f36
Merge pull request #1335 from a7i/helm-v0.29.0
...
v0.29.0: bump helm chart and update manifests/docs
2024-01-02 19:00:04 +01:00
Amir Alavi
96657caf60
v0.29.0: bump helm chart and update manifests/docs
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2024-01-02 09:34:34 -05:00
Kubernetes Prow Robot
3cf2c03f69
Merge pull request #1336 from dongjiang1989/update-verify-gen
...
chores(verify-gen): fix verify-gen check
2024-01-02 14:59:51 +01:00
dongjiang1989
1715f4ff81
update verify gen
...
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2024-01-02 16:11:36 +08:00
xujihui1985
ae7467fb27
fix(podlifetime): fix failed unittest
...
1. correct desired pod creation time
2023-12-28 20:54:25 +08:00
Kubernetes Prow Robot
3a631a3287
Merge pull request #1333 from a7i/CVE-2023-48795
...
`CVE-2023-48795`: bump k8s deps
2023-12-23 20:08:01 +01:00
Amir Alavi
4ee0740a13
github action: install correct go-version
2023-12-22 09:33:52 -05:00
Amir Alavi
992483d0fe
CVE-2023-48795: bump k8s deps
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-22 08:48:37 -05:00
Kubernetes Prow Robot
8dc250892b
Merge pull request #1322 from a7i/k8s-1.29
...
kubernetes 1.29: update deps and go-version
2023-12-22 09:53:06 +01:00
Amir Alavi
08356fc9fa
bump golangci-lint
2023-12-21 16:47:40 -05:00
Amir Alavi
e5e931d333
kubernetes 1.29: update deps and go-version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-20 23:15:07 -05:00
Kubernetes Prow Robot
835c6c9fa1
Merge pull request #1318 from a7i/podlifetime-imagepullbackoff
...
`PodLifeTime`: consider pods with container status `ImagePullBackOff`
2023-12-20 19:46:03 +01:00
Amir Alavi
8a06ed32e2
PodLifeTime: consider pods with container status ImagePullBackOff
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-18 13:41:06 -05:00
Kubernetes Prow Robot
14b67000d6
Merge pull request #1317 from SataQiu/fix-log-20231212
...
fix: topologySpreadConstraint fields in structured logs
2023-12-15 17:14:15 +01:00
Kubernetes Prow Robot
dbfcd19713
Merge pull request #1314 from dongjiang1989/dualstack-support
...
helm: allow configuration of ipFamilyPolicy
2023-12-12 14:54:17 +01:00
SataQiu
f598b8909a
fix a bug where the structured log is not displayed correctly
2023-12-12 16:45:50 +08:00
dongjiang1989
e6c9dfa05d
allow configuration of ipFamilyPolicy
...
Signed-off-by: dongjiang1989 <dongjiang1989@126.com >
2023-12-10 09:47:54 +08:00
Victor Gonzalez
f0f7ebbe9a
helm: ability to specify security context for pod ( #1311 )
...
* helm: ability to specify security context for pod
* Update charts/descheduler/templates/cronjob.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
* Update charts/descheduler/templates/deployment.yaml
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
---------
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2023-12-05 04:40:39 +01:00
Kubernetes Prow Robot
4d37ec91a2
Merge pull request #1305 from a7i/helm-v0.28.1-master
...
release v0.28.1: bump helm chart and images
2023-11-28 18:13:52 +01:00
Amir Alavi
0286871a56
release v0.28.1: bump helm chart and images
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-28 09:10:03 -05:00
Kubernetes Prow Robot
b2965c0724
Merge pull request #1292 from a7i/amir/k8s-0.28.4
...
chore: upgrade libs to kubernetes 0.28.4 and matching go version
2023-11-27 20:04:02 +01:00
Amir Alavi
89c7ddbaab
chore: upgrade libs to kubernetes 0.28.4 and matching go version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-27 10:09:04 -05:00
Kubernetes Prow Robot
308309d6d2
Merge pull request #1299 from a7i/amir/revert-defer-done
...
fix: revert defer of context done
2023-11-27 13:17:27 +01:00
PeterSzegedi
c8d4658277
Make the logged nodeutilization percentages human-readable ( #1294 )
...
* Make percentages human-readable
* Rename the rounding function
* bump easycla
2023-11-27 11:04:19 +01:00
Amir Alavi
6f0cd50dc0
fix: revert defer of context done
2023-11-26 14:17:23 -05:00
Kubernetes Prow Robot
89f453ebb3
Merge pull request #1296 from a7i/fix-json-log
...
fix: json logging
2023-11-24 16:51:16 +01:00
Amir Alavi
783304f248
fix: json logging
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-24 10:07:42 -05:00
Kubernetes Prow Robot
caafe96ce7
Merge pull request #1293 from a7i/CVE-2023-47108
...
CVE-2023-47108: replace otelgrpc version
2023-11-21 19:15:15 +01:00
Amir Alavi
2a05825b38
CVE-2023-47108: replace otelgrpc version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-11-21 09:33:36 -05:00
Kubernetes Prow Robot
2fee121df3
Merge pull request #1282 from a7i/cherry_pick_pull
...
copy cherry_pick_pull script form kubernetes/kubernetes
2023-11-20 18:35:57 +01:00
Kubernetes Prow Robot
c3424337c8
Merge pull request #1276 from jklaw90/add-reviewer
...
adding jklaw90 to reviewers
2023-11-20 16:25:05 +01:00
Antoine Boursin
b7a50fd772
feat: Add support for topologySpreadConstraints
2023-11-17 15:48:18 +01:00
Kubernetes Prow Robot
f4977d1518
Merge pull request #1249 from a7i/amir/version-skew-eks
...
fix: version skew compatibility for managed kubernetes providers
2023-11-14 12:48:58 +01:00
Kubernetes Prow Robot
96c1c299eb
Merge pull request #1281 from dimunech/fix-ownerkey-logs
...
fix: display ownerKey in the logs correctly
2023-11-09 04:31:54 +01:00
Amir Alavi
ccff5fe155
copy cherry_pick_pull script form kubernetes/kubernetes
2023-11-02 11:10:59 -04:00
Dmitrii Erokhin
289c003f87
fix: display ownerKey in the logs correctly
2023-11-02 11:23:11 +03:00
Kubernetes Prow Robot
c4ab2008e4
Merge pull request #1233 from a7i/match-label-keys
...
topologyspreadconstraint: support `matchLabelKeys`
2023-10-31 10:42:30 +01:00
Amir Alavi
19aa8a234c
docs: update supported topologySpreadConstraint fields
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:15 -04:00
Amir Alavi
bf2bd73f64
topologyspreadconstraint: refactor to match scheduler's struct and initialization
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:14 -04:00
Amir Alavi
704a82bcf4
topologyspreadconstraint: support matchLabelKeys
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-30 09:16:14 -04:00
Kubernetes Prow Robot
a01322a5e5
Merge pull request #1277 from a7i/amir/CVE-2023-25151
...
bump deps for CVE-2023-25151
2023-10-30 10:14:50 +01:00
Amir Alavi
30aec81951
bump deps for CVE-2023-25151
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-10-27 16:35:24 -04:00
Julian Lawrence
d8159c571d
adding jklaw90 to reviewers
2023-10-26 20:18:49 -07:00
Kubernetes Prow Robot
c59a0f0951
Merge pull request #1270 from ingvagabund/CVE-2023-44487-fixes
...
CVE 2023 44487 fixes
2023-10-19 18:31:11 +02:00
Jan Chaloupka
999dd3dc25
disable http/2 by default, enable it if needed
2023-10-19 17:15:57 +02:00
Jan Chaloupka
a243681ff8
Pin k8s to v1.28.3
2023-10-19 16:30:30 +02:00
Kubernetes Prow Robot
73eb42467a
Merge pull request #1263 from ingvagabund/bump-deps-1.28
...
Bump dependencies to address CVE-2023-44487
2023-10-16 13:44:19 +02:00
Jan Chaloupka
b8eec7a459
Bump dependencies to address CVE-2023-44487
2023-10-16 13:19:54 +02:00
Aditya Purandare
a7d8e69820
helm: ability to specify dnsConfig ( #1260 )
...
* Update values.yaml
* Update deployment.yaml
* Update cronjob.yaml
* fix indentation issue in helm chart
2023-10-11 00:12:22 +02:00
Kubernetes Prow Robot
3bd9dfc625
Merge pull request #1245 from a7i/helm-cronjob-timezone
...
helm: support of `timeZone` for CronJob
2023-09-26 04:59:13 -07:00
Amir Alavi
dca2e58b8e
fix: version skew compatibility for managed kubernetes providers
2023-09-21 21:21:26 -04:00
Antoine Deschênes
267efb3a4b
nodeFit: Use info log level if won't fit ( #1220 )
...
Pods that don't pass the nodeFit condition currently log an
unsuppressable error message to logs. This changes the log level to info
as it's a normal operating condition.
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
2023-09-20 11:46:01 -07:00
Kubernetes Prow Robot
c0d60196a1
Merge pull request #1246 from a7i/v0.28-image-ref
...
update image references to point to v0.28.0
2023-09-20 07:38:02 -07:00
Amir Alavi
2e1008e290
update image references to point to v0.28.0
2023-09-19 22:06:39 -04:00
Amir Alavi
714a347692
helm: support of timeZone for CronJob
2023-09-19 22:03:42 -04:00
Kubernetes Prow Robot
af4b32c6ba
Merge pull request #1241 from a7i/fix/evicatable-namespace-docs
...
docs: fix evictableNamespaces example
2023-09-15 07:16:15 -07:00
Kubernetes Prow Robot
c602d1256f
Merge pull request #1242 from jklaw90/fix-lint-config
...
fix: golangci config
2023-09-12 18:36:11 -07:00
Julian Lawrence
a592cbc417
fixed config for lint
2023-09-11 20:50:42 -07:00
Amir Alavi
c557d187ab
docs: fix evictableNamespaces example
2023-09-10 22:07:45 -04:00
Kubernetes Prow Robot
e8427d0eb4
Merge pull request #1229 from cayla/cf/consistent-arg
...
helm: update cronjob args argument to avoid unmarshal error
2023-08-25 20:29:21 -07:00
Cayla Fauver
c0f9761a61
helm: update cronjob args argument to avoid unmarshal error
...
Make it match both the deployment parallel
33e9a52385/charts/descheduler/templates/cronjob.yaml (L71)
As well as the documented arg
https://github.com/kubernetes-sigs/descheduler/blob/master/docs/user-guide.md#balance-cluster-by-pod-age
2023-08-25 09:13:22 -04:00
Kubernetes Prow Robot
e1dc63bcc7
Merge pull request #1228 from a7i/fix-structured-err
...
fix: structured err logs in eviction
2023-08-25 01:23:17 -07:00
Amir Alavi
8a458e0dcb
fix: structured err logs in eviction
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-24 18:18:09 -04:00
Amir Alavi
99246cd254
topologySpreadConstraints: handle nodeTaintsPolicy and nodeAffinityPolicy constraints ( #1218 )
...
* Add handling for node eligibility
* Make tests buildable
* Update topologyspreadconstraint.go
* Updated test cases failing
* squashed changes for test case addition
corrected function name
refactored duplicate TopoContraint check logic
Added more test cases for testing node eligibility scenario
Added 5 test cases for testing scenarios related to node eligibility
* topologySpreadConstraints e2e: `nodeTaintsPolicy` and `nodeAffinityPolicy` constraints
---------
Co-authored-by: Marc Power <marcpow@microsoft.com >
Co-authored-by: nitindagar0 <81955199+nitindagar0@users.noreply.github.com >
2023-08-24 08:32:21 -07:00
Kubernetes Prow Robot
33e9a52385
Merge pull request #1225 from a7i/helm-1.28
...
helm: bump chart to v0.28.0
2023-08-24 05:54:21 -07:00
Amir Alavi
b833607504
helm: bump chart to v0.28.0
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-24 08:41:23 -04:00
Kubernetes Prow Robot
bae120929e
Merge pull request #1224 from a7i/docs-1.28
...
k8s 1.28: update docs and go-version
2023-08-23 08:53:29 -07:00
Amir Alavi
30dd78dcee
k8s 1.28: update docs and go-version
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-08-22 20:46:27 -04:00
Kubernetes Prow Robot
1d4dc57ad1
Merge pull request #1221 from antoinedeschenes/fix-profile-span-attribute
...
profile: fix span attribute typo
2023-08-22 15:39:55 -07:00
Antoine Deschênes
3f0c06b58d
profile: fix span attribute typo
...
Fix profile attribute "prpfile" typo in trace spans.
Signed-off-by: Antoine Deschênes <antoine.deschenes@linux.com >
2023-08-22 13:10:20 -04:00
Kubernetes Prow Robot
bb4721049f
Merge pull request #1216 from JaneLiuL/master
...
Bump Kubernetes dependencies to v1.28.0
2023-08-21 07:21:24 -07:00
Amir Alavi
78c9ae851c
upgrade kind to v0.20.0
2023-08-21 10:04:31 -04:00
Kubernetes Prow Robot
9660a7b469
Merge pull request #1202 from a7i/gitattributes
...
.gitattribute to not pollute PRs or stats
2023-08-21 05:09:23 -07:00
JaneLiuL
81aa897c48
Bump Kubernetes dependencies to v1.28.0
2023-08-17 15:59:15 +08:00
Kubernetes Prow Robot
f4c64c2c75
Merge pull request #1215 from Abirdcfly/master
...
fix: descheduler_loop_duration_seconds has wrong value
2023-08-10 01:05:27 -07:00
Abirdcfly
ca5781827a
fix: descheduler_loop_duration_seconds has wrong value
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com >
2023-08-09 21:36:53 +08:00
Jordi Piqué Sellés
31704047c5
feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity ( #1210 )
...
* feat: Implement preferredDuringSchedulingIgnoredDuringExecution for RemovePodsViolatingNodeAffinity
Now, the descheduler can detect and evict pods that are not optimally
allocated according to the "preferred..." node affinity. It only evicts
a pod if it can be scheduled on a node that scores higher in terms of
preferred node affinity than the current one.
This can be activated by enabling the RemovePodsViolatingNodeAffinity
plugin and passing "preferredDuringSchedulingIgnoredDuringExecution" in
the args.
For example, imagine we have a pod that prefers nodes with label "key1:
value1" with a weight of 10. If this pod is scheduled on a node that
doesn't have "key1: value1" as label but there's another node that has
this label and where this pod can potentially run, then the descheduler
will evict the pod.
Another effect of this commit is that the
RemovePodsViolatingNodeAffinity plugin will not remove pods that don't
fit in the current node but for other reasons than violating the node
affinity. Before that, enabling this plugin could cause evictions on
pods that were running on tainted nodes without the necessary
tolerations.
This commit also fixes the wording of some tests from
node_affinity_test.go and some parameters and expectations of these
tests, which were wrong.
* Optimization on RemovePodsViolatingNodeAffinity
Before checking if a pod can be evicted or if it can be scheduled
somewhere else, we first check if it has the corresponding nodeAffinity
field defined. Otherwise, the pod is automatically discarded as a
candidate.
Apart from that, the method that calculates the weight that a pod
gives to a node based on its preferred node affinity has been
renamed to better reflect what it does.
2023-08-04 03:08:21 -07:00
Kubernetes Prow Robot
1be0ab2bd1
Merge pull request #1207 from a7i/amir/fix-cm-RemoveDuplicates
...
fix: base configmap missing plugin RemoveDuplicates
2023-07-26 07:06:19 -07:00
Amir Alavi
f8442fbb0d
fix: base configmap missing plugin RemoveDuplicates
2023-07-25 22:00:49 -04:00
Kubernetes Prow Robot
f7b7f50b92
Merge pull request #1203 from lucming/aggregate-errors
...
nodefit: aggregate errors
2023-07-24 08:52:13 -07:00
lucming
27a436b98a
aggregate errors
2023-07-24 23:39:26 +08:00
Kubernetes Prow Robot
8f7dea10c1
Merge pull request #1201 from a7i/1.28-beta.0
...
bump to k8s 1.28 beta.0
2023-07-24 06:44:15 -07:00
Amir Alavi
68f43fe591
.gitattribute to not pollute PRs or stats
2023-07-22 11:01:59 -04:00
Amir Alavi
a0cbfcfbca
regenerate docs for cli
2023-07-21 22:16:36 -04:00
Amir Alavi
2a91eda30d
bump to k8s 1.28 beta.0
2023-07-21 22:06:55 -04:00
Kubernetes Prow Robot
06dc26a83e
Merge pull request #1189 from harshanarayana/feature/enable-otel
...
feat: Enable open telemetry tracing
2023-07-18 04:43:10 -07:00
Harsha Narayana
add9d6e897
enable Open telemetry support for descheduler
...
1. Enable OTEL configuration and base framework
2. update generated conversion spec
3. enable docker based conversion and deep copy generate
4. fix broken unit tests
2023-07-18 11:14:21 +05:30
Kubernetes Prow Robot
d9b763a28b
Merge pull request #1186 from knelasevero/fix_priority_name
...
fix priority threshold by name alone
2023-07-10 04:17:08 -07:00
Lucas Severo Alves
3ff38bab59
fix priority threshold by name alone
2023-07-07 16:12:28 +02:00
Kubernetes Prow Robot
ed1554dd19
Merge pull request #1141 from a7i/processing-log-level
...
bump log level for processing info
2023-07-05 10:46:58 -07:00
Jan Chaloupka
931aac9c71
deschedule/balance order (continuation) ( #1177 )
...
* generalise RunDeschedulerLoop and RunProfiles and stabilish deschedule/balance order
* assign nodes outside RunDeschedulerLoop and use instanced profiles
* stop exporting internal profile bits
* refactoring RunProfiles and add methods to Deschduler
* types outside function
* shutdown eventBroadcaster outside NewDescheduler
* all new methods inside descheduler.go
* avoid exporting all Descheduler fields
* Address review comments
---------
Co-authored-by: Lucas Severo Alves <lucassalves65@gmail.com >
2023-06-21 06:37:40 -07:00
Kubernetes Prow Robot
a497541f39
Merge pull request #1174 from ingvagabund/bump-fake-watch-channel-size
...
FakeClientset: bump watch channel size
2023-06-20 10:58:21 -07:00
Amir Alavi
333b5cfbb6
bump log level for processing info
2023-06-16 08:39:05 -04:00
Kubernetes Prow Robot
eb2372137e
Merge pull request #1148 from a7i/tsc-constraints
...
removepodsviolatingtopologyspreadconstraint: implement explicit constraints
2023-06-16 05:36:23 -07:00
Amir Alavi
7f2f6f2b16
removepodsviolatingtopologyspreadconstraint: implement explicit constraints
2023-06-16 08:20:26 -04:00
Amir Alavi
5f0edb5f93
removepodsviolatingtopologyspreadconstraint: topologyBalanceNodeFit to control whether to perform nodefit when balacning domains
2023-06-16 07:56:32 -04:00
Amir Alavi
f5a7f716b3
use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity ( #1163 )
...
* use pod informers for listing pods in removepodsviolatingtopologyspreadconstraint and removepodsviolatinginterpodantiaffinity
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* workaround in topologyspreadconstraint test to ensure that informer's index returns pods sorted by name
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-06-15 23:30:19 -07:00
Kubernetes Prow Robot
5163ac3ace
Merge pull request #1173 from jongwooo/chore/replace-deprecated-command-with-environment-file
...
Replace deprecated command with environment file
2023-06-15 06:52:19 -07:00
Jan Chaloupka
4c272e6ea2
FakeClientset: bump watch channel size
...
Huge clusters with thousands of pods can quickly exceed the default
watch channel size of the fake clientset. Causing the channel
to panic with "channel full".
2023-06-15 11:07:09 +02:00
Jongwoo Han
c637b7f0e6
Replace deprecated command with environment file
2023-06-15 12:12:44 +09:00
Kubernetes Prow Robot
5462a599af
Merge pull request #1165 from a7i/toomanyrestarts-CrashLoopBackOff
...
TooManyRestart: state filter for CrashLoopBackOff
2023-06-13 09:47:59 -07:00
Kubernetes Prow Robot
7dcd7fa50f
Merge pull request #1166 from a7i/pause-image
...
update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause'
2023-06-08 01:46:13 -07:00
Amir Alavi
6271d51125
update pause image from 'kubernetes/pause' to 'registry.k8s.io/pause'
2023-06-07 23:32:31 -04:00
Amir Alavi
0bdbf51eb2
Move CrashLoopBackOff container state from PodLifeTime to TooManyRestarts plugin
2023-06-07 23:29:11 -04:00
Amir Alavi
9aad51f328
Revert "Merge pull request #1164 from a7i/podlifetime-CrashLoopBackOff"
...
This reverts commit 699297711a , reversing
changes made to 877d9b18ee .
2023-06-07 21:00:47 -04:00
Kubernetes Prow Robot
699297711a
Merge pull request #1164 from a7i/podlifetime-CrashLoopBackOff
...
PodLifeTime: support CrashLoopBackOff container state
2023-06-07 10:46:13 -07:00
Amir Alavi
1b976529bc
PodLifeTime: support CrashLoopBackOff container state
2023-06-06 18:21:43 -04:00
10hin
877d9b18ee
pod anti-affinity check among nodes ( #1033 )
...
* pod anti-affinity check among nodes
* avoid pod equality check with UID field
also add node equality check with Name for short-cut
* add test case for anti-affinity violation among different node
* reduce ListPodsOnANode call
* fix old code
* apply gofumpt -w -extra
move klog/v2 import entry to bottom according to master code
2023-06-05 05:21:25 -07:00
Nicolas Lamirault
b58ec3b458
Custom labels for ServiceMonitor resource ( #1147 )
...
* Add: Custom labels for ServiceMonitor resource
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
* Fix: indentation
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
---------
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com >
2023-05-31 06:41:46 -07:00
Kubernetes Prow Robot
e94a6f129a
Merge pull request #1160 from a7i/chart-v0.27.1
...
bump chart to v0.27.1
2023-05-31 01:29:46 -07:00
Kubernetes Prow Robot
1b22e102ce
Merge pull request #1159 from mikutas/missing-header
...
docs: supplement missing link
2023-05-30 17:47:45 -07:00
Amir Alavi
a35e3f49b4
bump chart to v0.27.1
2023-05-30 09:19:11 -04:00
mikutas
9313041d77
docs: supplement missing link
2023-05-30 17:09:47 +09:00
Kubernetes Prow Robot
83c81e6b58
Merge pull request #1150 from a7i/fix-imagepullsecrets-indent
...
fix: imagepullsecrets indentation for kind: Deployment
2023-05-25 18:24:51 -07:00
Kubernetes Prow Robot
eb356fe6ff
Merge pull request #1151 from a7i/helm-arg-cmd
...
helm: ability to override command and args. set args inline
2023-05-25 00:12:51 -07:00
Amir Alavi
a62bb54a3a
helm: ability to override command and args. set args inline
2023-05-16 13:02:09 -04:00
Amir Alavi
92017d0fdd
fix: imagepullsecrets indentation for kind: Deployment
2023-05-16 12:48:05 -04:00
Kubernetes Prow Robot
476bee3424
Merge pull request #1146 from a7i/generic-sets
...
update deprecated sets.String to generic sets
2023-05-12 06:29:02 -07:00
Kubernetes Prow Robot
b630ecaaf7
Merge pull request #1145 from ratnopamc/deprecate-k8s-release-url
...
Use dl.k8s.io instead of kubernetes-release bucket
2023-05-11 19:50:46 -07:00
Amir Alavi
359b38a34c
update deprecated sets.String to generic sets
2023-05-11 22:35:44 -04:00
Ratnopam Chakrabarti
2c525afc76
Use dl.k8s.io instead of kubernetes-release bucket
2023-05-11 15:30:26 +00:00
Amir Alavi
e2826fa66c
fix plugin arg conversion when using multiple profiles with same plugin ( #1143 )
...
* fix plugin arg conversion when using multiple profiles with same plugin
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* PR feedback to refactor validateDeschedulerConfiguration error handling
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-05-11 08:25:03 -07:00
Kubernetes Prow Robot
0f5a5a2235
Merge pull request #1096 from a7i/version-compatibility-test
...
add unit tests for version compatibility check
2023-05-09 01:38:55 -07:00
Amir Alavi
1f6a736aab
add unit tests for version compatibility check
2023-05-05 14:57:43 -04:00
Kubernetes Prow Robot
8cbbe5501b
Merge pull request #1137 from a7i/gha-1.27
...
update helm github action workflow to v0.27.0
2023-05-05 08:25:13 -07:00
Amir Alavi
dd63aac88c
update helm github action workflow
2023-05-05 10:11:41 -04:00
Amir Alavi
4cae47fc70
update helm chart to v0.27.0 ( #1136 )
...
* update helm chart to v0.27.0
* update manifest version and docs
* fix 1.27 release version from README.md
Co-authored-by: Mike Dame <mikedame@google.com >
---------
Co-authored-by: Mike Dame <mikedame@google.com >
2023-05-05 07:09:12 -07:00
Kubernetes Prow Robot
eeafdb253a
Merge pull request #1116 from a7i/docs-1.27
...
k8s 1.27: update docs and README
2023-05-03 18:46:44 -07:00
Amir Alavi
e328b5ec53
k8s 1.27: update docs and README
2023-05-02 13:04:41 -04:00
Kubernetes Prow Robot
5ba1fef671
Merge pull request #1129 from yanggangtony/code-clean
...
Do some code cleans.
2023-05-02 04:36:12 -07:00
yanggang
71fb4a2117
Do some code cleans.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-05-01 23:09:33 +08:00
Kubernetes Prow Robot
776f196569
Merge pull request #1135 from AllenZMC/fix-policy-yaml
...
fix policy example configmap
2023-05-01 00:04:17 -07:00
czm
51ddd817e8
fix policy example configmap
...
Signed-off-by: czm <czm1192198606@live.com >
2023-04-29 17:12:32 +08:00
Kubernetes Prow Robot
773cb54e57
Merge pull request #1133 from damemi/missing-quote
...
Add missing quote to configmap
2023-04-28 07:44:16 -07:00
Mike Dame
753812a679
Add missing quote to configmap
2023-04-28 14:29:09 +00:00
Kubernetes Prow Robot
109650621a
Merge pull request #1132 from damemi/docs-version-note
...
Add note on documentation versions with links
2023-04-28 02:18:23 -07:00
Kubernetes Prow Robot
c7a025237e
Merge pull request #1127 from ingvagabund/update-documents-evict-ep
...
Drop remaining mentions of evict extension point
2023-04-28 02:18:16 -07:00
Kubernetes Prow Robot
01f5cc9f6d
Merge pull request #1130 from knelasevero/add_approver
...
Add knelasevero to approvers
2023-04-26 23:18:15 -07:00
Mike Dame
d6d93f4d2f
Add note on documentation versions with links
2023-04-26 17:12:35 +00:00
Lucas Severo Alves
6ee8344d9a
add knelasevero to approvers
2023-04-26 17:00:12 +02:00
Kubernetes Prow Robot
748bf31d6f
Merge pull request #1122 from damemi/issue-1121
...
Add json tags to internal api fields
2023-04-26 07:00:15 -07:00
Jan Chaloupka
4565184481
Drop remaining mentions of evict extension point
2023-04-26 09:59:49 +02:00
Mike Dame
d9316d1872
Add json tags to internal fields and basic config test
2023-04-24 12:54:43 +00:00
Kubernetes Prow Robot
a7113dab50
Merge pull request #1120 from ingvagabund/remove-evict-extension-point
...
Drop Evict extension point
2023-04-24 05:43:01 -07:00
Jan Chaloupka
76e7e4f57b
Drop Evict extension point
...
The Evict extension point is not currently in use.
All DefaultEvictor plugin functionality is exposed through Filter and
PreEvictionFilter extension points instead.
Thus, no need to limit the number of evictors enabled.
2023-04-20 17:52:40 +02:00
Kubernetes Prow Robot
e8c099c6d3
Merge pull request #1109 from a7i/amir/update-0.26.1-refs
...
update v0.26.1 references
2023-04-12 07:22:32 -07:00
Amir Alavi
ac2b727fe3
bump to k8s 1.27 ( #1115 )
...
* bump to k8s 1.27
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
* bump go version to 1.20.3
* bump k8s version and kine for e2e
---------
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-04-12 07:08:32 -07:00
Kubernetes Prow Robot
5c69cdad29
Merge pull request #1112 from yanggangtony/fix-error-msg-for-cachedClient
...
Fix typo log message for cachedClient
2023-04-06 20:17:15 -07:00
yanggang
e96c570ff4
Fix typo log message for cachedClient
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-07 09:31:47 +08:00
Kubernetes Prow Robot
ae24dceaae
Merge pull request #1111 from yanggangtony/delete-ioutil
...
Delete "io/ioutil" package.
2023-04-06 06:43:48 -07:00
yanggang
aef6c05032
Delete "io/ioutil" package.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-06 11:29:22 +08:00
Kubernetes Prow Robot
ce0d31fd5f
Merge pull request #1097 from ingvagabund/list-of-extension-points
...
Populate extension points automatically for deschedule, balance, filter and preEvictionFilter
2023-04-03 08:17:51 -07:00
Jan Chaloupka
3510aba01d
Detect individual extension points from plugin types
...
- Populate extension points automatically from plugin types
- Make a list of enabled extension points based on a profile
configuration
- Populate filter and pre-eviction filter handles from their
corresponding extension points
2023-04-03 17:04:31 +02:00
Amir Alavi
2bf7ab8f2a
update v0.26.1 references
2023-04-03 10:09:24 -04:00
Kubernetes Prow Robot
347f89533c
Merge pull request #1105 from yanggangtony/fix-notes-for-podutil
...
fix go doc for method IsPodWithPVC
2023-04-03 06:19:51 -07:00
Kubernetes Prow Robot
e972f4c1ed
Merge pull request #1100 from a7i/1.27-rc0
...
bump to k8s 1.27 rc0
2023-04-03 06:03:54 -07:00
Kubernetes Prow Robot
ed611052cf
Merge pull request #1104 from yanggangtony/fix-default-plugin
...
fix default value assignment of EvictLocalStoragePods
2023-04-02 14:47:51 -07:00
yanggang
4955ed5353
fix IsPodWithPVC func notes.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-02 08:49:52 +08:00
yanggang
90905d2c21
fix if condition for the right value of EvictLocalStoragePods
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-02 08:13:01 +08:00
Kubernetes Prow Robot
aba0064d49
Merge pull request #1103 from yanggangtony/cmd-corba-args-to-uppercase-letter
...
dry-run cli flag to use uppercase
2023-03-31 17:47:48 -07:00
yanggang
feb8989468
Make cobra args help info to uppercase.
...
Signed-off-by: yanggang <gang.yang@daocloud.io >
2023-04-01 08:26:09 +08:00
Jan Chaloupka
3897ff069f
Extend PluginRegistry with plugin type
2023-03-30 10:55:59 +02:00
Kubernetes Prow Robot
208f78c6dc
Merge pull request #1101 from a7i/bump-golangci
...
bump golangci for go 1.20
2023-03-27 07:10:29 -07:00
Amir Alavi
d5b7c362dc
fix gofumpt violation
2023-03-25 11:08:07 -04:00
Amir Alavi
b16092f5a7
bump golangci for go 1.20
2023-03-25 10:52:59 -04:00
Amir Alavi
6f350ceb12
bump to k8s 1.27 rc0
2023-03-25 10:42:51 -04:00
Jan Chaloupka
757661110a
Move framework types under framework/types
2023-03-23 19:00:55 +01:00
Jan Chaloupka
bcc6c8eb2a
Descheduling profile with PoC fake plugin ( #1093 )
...
* Descheduling profile
* Fake plugin + profile unit testing
* Rename Profile config type into DeschedulerProfile
To avoid resamblance with profileImpl
* First run deschedule, then balance extension points
2023-03-23 09:14:33 -07:00
Kubernetes Prow Robot
0872b214ff
Merge pull request #1090 from dangen-effy/patch-1
...
docs: typo
2023-03-14 21:16:16 -07:00
dangen
95759f7bb6
docs: typo
...
Plugion to Plugin
2023-03-14 16:49:32 +09:00
Kubernetes Prow Robot
a86345ec97
Merge pull request #1063 from JaneLiuL/master
...
Add k8s compatibility warnings to logs
2023-03-13 18:05:12 -07:00
Kubernetes Prow Robot
2b15be7f40
Merge pull request #937 from a7i/remove-e2e-helm-action
...
remove e2e tests from helm github action
2023-03-13 13:16:50 -07:00
Amir Alavi
54d80de507
remove e2e tests from helm github action
2023-03-13 09:55:43 -04:00
JaneLiuL
7068fc6082
Add k8s compatibility warnings to logs
2023-03-13 19:30:40 +08:00
Kubernetes Prow Robot
85e9f86e85
Merge pull request #1066 from JaneLiuL/securitycontext
...
expose security context from helm chart
2023-03-09 17:32:32 -08:00
Kubernetes Prow Robot
710611527c
Merge pull request #1075 from damemi/gke-optimize-utilization-readme
...
Add note to HighNodeUtilization readme for GKE users
2023-03-08 06:33:15 -08:00
Mike Dame
25d1508485
Add note to HighNodeUtilization readme for GKE users
2023-03-08 12:59:21 +00:00
Kubernetes Prow Robot
0fdb620db7
Merge pull request #1072 from JannikSt/master
...
Fix typo in nodeutilization types
2023-03-06 06:04:30 -08:00
Jannik Straube
176d3ac024
Fix typo in nodeutilization types
2023-03-06 10:31:32 +01:00
Gaurav Dasson
c6e5cd41de
Adding descheduler policy API Version option in helm templates ( #1068 )
...
* Adding descheduler policy API Version option
in helm templates
* Updating comment for deschedulerPolicyAPIVersion
field
* Making v1alpha1 the default api version
2023-03-03 07:44:59 -08:00
Kubernetes Prow Robot
ab18575b15
Merge pull request #1057 from xiaoanyunfei/bugfix/podnum
...
check pod number
2023-03-02 05:40:56 -08:00
JaneLiuL
12965c4660
expose securityContext
2023-03-01 11:14:59 +08:00
Kubernetes Prow Robot
e51e8b831f
Merge pull request #1059 from lucming/code-cleanup
...
remove some logic useless
2023-02-16 17:49:38 -08:00
sunxiaofei
b9ddbf12ed
fitsRequest check pod num
2023-02-16 20:20:38 +08:00
lucming
02b1e8b8b9
remove some logic useless
2023-02-16 17:25:00 +08:00
Lucas Severo Alves
463158f7dc
v1alpha2 docs ( #1049 )
...
* v1alph2 docs
* remove internal toc (gh has this natively)
* fix typo and newlines
* name plugins with less confusing names
* add type column
* fix kv selector and nodeSelector desc
* group plugin types in a table
* link the deprecated doc
* warning signs
2023-02-13 18:45:30 -08:00
Harsha Narayana
93a014ef5e
metrics: enable loop duration and strategy duration metrics ( #1041 )
...
* metrics: enable loop duration and strategy duration metrics
* metrics: enable loop duration and strategy duration metrics
2023-02-03 20:08:28 -08:00
Kubernetes Prow Robot
904b8835e1
Merge pull request #1051 from gustavomfc/fix/conversion_v1alpha1_
...
Fix v1alpha1 conversion to use universal decoder
2023-02-03 06:40:30 -08:00
gustavo.carneiro
2470252841
Copyright date from 2022 to 2023
...
Signed-off-by: Gustavo Carneiro <gustavo.mfc@icloud.com >
2023-01-30 13:05:58 -03:00
gustavo.carneiro
82cbc15380
Fix v1alpha1 conversion to use universal decoder
2023-01-30 12:53:18 -03:00
Kubernetes Prow Robot
b5c3d2bfd1
Merge pull request #1048 from harshanarayana/enable-docs-auto-gen
...
enable auto generation of the documents
2023-01-24 06:08:17 -08:00
Harsha Narayana
87925e4457
enable auto generation of the documents
2023-01-24 08:55:52 +05:30
Kubernetes Prow Robot
49f60bfc43
Merge pull request #1034 from a7i/client-connection
...
support client connection configuration to provide QPS and burst
2023-01-18 11:26:34 -08:00
Lucas Severo Alves
137f3b20dc
add v1alpha2 registry based conversion ( #1006 )
...
* add v1alpha2 registry based conversion
* test defaults, set our 1st explicit default
* fix typos and dates
* move pluginregistry to its own dir
* remove unused v1alpha2.Namespace type
* move migration code folders, remove switch
* validate internalPolicy a single time
* remove structured logs
* simplify return
* check for nil methods
* properly check before adding default evictor
* add TODO comment
* bump copyright year
2023-01-17 08:10:34 -08:00
Kubernetes Prow Robot
861c6325f3
Merge pull request #1038 from damemi/0.26.0-helm-chart
...
Update helm chart to v0.26.0
2023-01-13 07:58:25 -08:00
Kubernetes Prow Robot
549fb88dac
Merge pull request #1042 from a7i/revert-995-split_help_argument_in_dockerfile
...
Revert "Split CMD into ENTRYPOINT and CMD for Dockerfile"
2023-01-11 07:39:46 -08:00
Amir Alavi
03747b0794
Revert "Split CMD into ENTRYPOINT and CMD for Dockerfile"
2023-01-11 10:17:46 -05:00
Kubernetes Prow Robot
37e64abab8
Merge pull request #995 from Bobonium/split_help_argument_in_dockerfile
...
Split CMD into ENTRYPOINT and CMD for Dockerfile
2023-01-09 00:27:29 -08:00
Amir Alavi
46e43a07bf
support client connection configuration to provide QPS and burst
2023-01-05 22:00:33 -05:00
Mike Dame
17ab593677
Update helm chart to v0.26.0
2023-01-05 18:08:46 +00:00
Kubernetes Prow Robot
e6580b97a8
Merge pull request #1035 from a7i/copyright-2023
...
update license year boilerplate by running make gen
2023-01-04 10:26:00 -08:00
Amir Alavi
923921a1aa
update license year by running make gen
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2023-01-04 13:09:50 -05:00
Jochen Dick
646e2a72be
Update Dockerfile
...
remove redundant empty line from end of file
Co-authored-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-28 10:06:55 +01:00
Kubernetes Prow Robot
a7c16d92fa
Merge pull request #1015 from JaneLiuL/master
...
bump to k8s 1.26
2022-12-27 19:13:27 -08:00
Kubernetes Prow Robot
ca79c2679d
Merge pull request #1030 from my-git9/cleanup/ioutil
...
cleanup: remove ioutil for new go version
2022-12-26 08:27:27 -08:00
xin.li
e73634f04d
cleanup: remove ioutil for new go version
...
Signed-off-by: xin.li <xin.li@daocloud.io >
2022-12-26 10:52:18 +08:00
Kubernetes Prow Robot
3c80f33bb0
Merge pull request #1029 from a7i/revert-1019-parallel-docker-build
...
Revert "parallelize docker build for each arch"
2022-12-22 06:03:26 -08:00
Amir Alavi
1a37c0800e
Revert "parallelize docker build for each arch"
2022-12-21 23:09:33 -05:00
Kubernetes Prow Robot
6233b6c06e
Merge pull request #1028 from damemi/one-hour-timeout
...
Increase cloud build timeout to 1 hour
2022-12-21 08:23:25 -08:00
Mike Dame
6f0ef883da
Increase cloud build timeout to 1 hour
2022-12-21 15:05:48 +00:00
Kubernetes Prow Robot
63813c9d3b
Merge pull request #1023 from a7i/increase-build-timeout
...
increase cloudbuild timeout to 30 minutes until we figure out proper optimizations
2022-12-14 09:03:36 -08:00
Amir Alavi
bf72cf52c1
increase cloudbuild timeout to 30 minutes until we figure out proper optimizations
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-14 10:57:46 -05:00
Kubernetes Prow Robot
3d706640bc
Merge pull request #1018 from a7i/docs-1.26
...
update version references in docs and readme
2022-12-14 06:43:35 -08:00
Kubernetes Prow Robot
849d8762be
Merge pull request #1019 from a7i/parallel-docker-build
...
parallelize docker build for each arch
2022-12-14 05:59:35 -08:00
Amir Alavi
1f682685ef
parallelize docker build for archs
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-12-14 08:41:48 -05:00
Kubernetes Prow Robot
70d917a624
Merge pull request #1022 from ism-k/master
...
Allow a setting option `ttlSecondsAfterFinished` for job
2022-12-14 04:29:33 -08:00
ism-k
29f48e8c3c
♻️ format README
2022-12-14 13:12:52 +09:00
ism-k
d7a4c221a3
♻️ update information
2022-12-14 13:12:24 +09:00
ism-k
8dbd44c467
👍 Allow setting options ttlSecondsAfterFinished
2022-12-14 13:09:32 +09:00
Amir Alavi
4d04018c93
update version references in docs and readme
2022-12-12 20:51:16 -05:00
Kubernetes Prow Robot
9f6afd4d25
Merge pull request #1016 from knelasevero/logo-readme
...
logo in readme
2022-12-12 17:47:33 -08:00
Lucas Severo Alves
97c22e1e4b
logo in readme
2022-12-12 16:19:22 +01:00
Kubernetes Prow Robot
c418736f6e
Merge pull request #1012 from a7i/go-1.19.3
...
Go 1.19.3
2022-12-12 05:03:34 -08:00
JaneLiuL
d73b33040f
bump to k8s 1.26
2022-12-12 11:44:28 +08:00
Amir Alavi
9e1805d9e1
bump go version to 1.19.3
2022-12-06 11:21:25 -05:00
Kubernetes Prow Robot
329c77ab54
Merge pull request #1010 from a7i/1.26-rc
...
bump to k8s 1.26-rc.1
2022-12-05 20:24:45 -08:00
Amir Alavi
456248d4ba
bump to k8s 1.26-rc.1
2022-12-03 18:04:46 -05:00
Lucas Severo Alves
da8b145980
use plugin registry and prepare for conversion ( #1003 )
...
* use plugin registry and prepare for conersion
* Register plugins explicitly to a registry
* check interface impl instead of struc var
* setup plugins at top level
* treat plugin type combinations
* pass registry as arg of V1alpha1ToInternal
* move registry yet another level up
* check interface type separately
2022-12-01 06:05:54 -08:00
Jan Chaloupka
6e953b2ff3
Separate migration of strategy configuration from the constructing and running the plugins ( #999 )
...
* Remove log level from Errors
Every error printed via Errors is expected to be important and always
printable.
* Invoke first Deschedule and then Balance extension points (breaking change)
* Separate plugin arg conversion from pluginsMap
* Seperate profile population from plugin execution
* Convert strategy params into profiles outside the main descheduling loop
Strategy params are static and do not change in time.
* Bump the internal DeschedulerPolicy to v1alpha2
Drop conversion from v1alpha1 to internal
* add tests to v1alpha1 to internal conversion
* add tests to strategyParamsToPluginArgs params wiring
* in v1alpha1 evictableNamespaces are still Namespaces
* add test passing in all params
Co-authored-by: Lucas Severo Alves <lseveroa@redhat.com >
2022-11-14 08:48:41 -08:00
Kubernetes Prow Robot
d997be59a9
Merge pull request #969 from Dentrax/gofumpt
...
run: `gofumpt -w -extra .`
2022-11-08 10:26:19 -08:00
Kubernetes Prow Robot
7bf60cd01e
Merge pull request #1000 from knelasevero/patch-1
...
add myself to reviewers
2022-11-08 07:19:23 -08:00
Lucas Severo Alves
ac8adfbb09
add myself to reviewers
2022-11-08 13:39:55 +01:00
Furkan
99868a41de
run: gofumpt -w -extra .
...
Enable gofumpt in golangci
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
2022-11-07 09:11:27 +03:00
Kubernetes Prow Robot
f938ac5e87
Merge pull request #998 from damemi/registry-k8s-io
...
Switch to registry.k8s.io
2022-11-04 02:48:14 -07:00
Mike Dame
dfb1dbc91f
Switch to registry.k8s.io
2022-11-03 13:23:00 +00:00
Kubernetes Prow Robot
ba6b2b97d9
Merge pull request #853 from Dentrax/dry-run-warning
...
add warning when enabling both dryRun and leaderElection
2022-11-02 15:49:01 -07:00
Furkan
fa1f7969d1
add warning when enabling both dryRun and leaderElection
...
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
Co-authored-by: Emin <emin.aktas@trendyol.com >
2022-11-02 19:50:22 +03:00
Kubernetes Prow Robot
5641fa335a
Merge pull request #967 from knelasevero/pre-ev-namespace-filter
...
add namespace filter to nodeutilization
2022-10-30 07:48:43 -07:00
Lucas Severo Alves
398ffa7ee0
add namespace filter to nodeutilization
2022-10-30 00:52:30 +02:00
Bobonium
4d203c5e0c
Split CMD into ENTRYPOINT and CMD for Dockerfile
...
--help is now an CMD which means explicitly providing a command override in kubernetes is no longer required. You can now simply provide the necessary arguments
2022-10-27 12:33:00 +02:00
Kubernetes Prow Robot
6481f1bc38
Merge pull request #993 from wakeful/fix-json-log
...
correct JSON log format
2022-10-25 02:18:35 -07:00
AJ
3067d2b311
correct JSON log format
2022-10-25 10:53:24 +02:00
Kubernetes Prow Robot
7777d5aa40
Merge pull request #990 from damemi/add-api-group
...
Update helm chart rolebinding to use events.k8s.io
2022-10-19 17:00:56 -07:00
Kubernetes Prow Robot
30aab9c0ae
Merge pull request #982 from damemi/fix-verify-scripts
...
Update verify scripts to use the generation scripts directly
2022-10-18 10:25:19 -07:00
Kubernetes Prow Robot
894bfe5e2e
Merge pull request #975 from madeelibm/add-scc-e2e-tests
...
add restricted security policy to e2e test pods
2022-10-18 06:17:19 -07:00
Muhammad Adeel
76a0014707
add restricted security policy to e2e test pods
...
add RunAsUser and RunAsGroup to PSC
Signed-off-by: Muhammad Adeel <muhammad.adeel@ibm.com >
2022-10-18 15:01:12 +02:00
Kubernetes Prow Robot
3f53c0b4ea
Merge pull request #988 from spike-liu/find-dirs-containing_comment_tags
...
Fix wired behavior during code generating
2022-10-17 10:49:07 -07:00
Kubernetes Prow Robot
121ea1ba5f
Merge pull request #987 from ingvagabund/readme-eviction-annotation
...
README: be more explicit about scope of the descheduler.alpha.kubernetes.io/evict annotation
2022-10-17 06:25:07 -07:00
Mike Dame
8d1d240473
Update helm chart rolebinding to use events.k8s.io
2022-10-17 13:14:31 +00:00
vlc刘诚
9a120ddc68
exclude files & folders under _tmp folder during code-generator and remove redundant path replacement to keep the consistent logic with verify-xx.sh
2022-10-17 18:41:06 +08:00
Jan Chaloupka
28e0965eeb
README: be more explicit about scope of the descheduler.alpha.kubernetes.io/evict annotation
2022-10-17 10:47:47 +02:00
Mike Dame
f2b674e690
Update verify scripts to use the generation scripts directly
2022-10-13 17:07:04 +00:00
Kubernetes Prow Robot
c2ab28b79a
Merge pull request #973 from Nordix/fix-kkustomize-link/furkat
...
📖 Fix broken kustomize reference in the root README
2022-10-07 00:21:53 -07:00
Furkat Gofurov
7bed6456d1
Fix broken kustomize reference in the root README
2022-10-06 22:00:10 +03:00
Kubernetes Prow Robot
bed8693c69
Merge pull request #971 from sanposhiho/patch-1
...
doc: fix a markdown's style on user-guide
2022-10-06 07:09:52 -07:00
Kensei Nakada
4fb781ae7c
doc: fix a markdown's style on user-guide
2022-10-06 14:48:32 +09:00
Kubernetes Prow Robot
7c7e1b9cdc
Merge pull request #953 from a7i/ct-kind-deployment
...
set helm-extra-set-args as inline command arg
2022-09-28 01:27:36 -07:00
Kubernetes Prow Robot
da3ebb7293
Merge pull request #961 from vholer/issue-960
...
includeSoftConstraints not being respected for TopologySpreadConstraint
2022-09-27 03:57:50 -07:00
Kubernetes Prow Robot
9e2c323aa9
Merge pull request #954 from spike-liu/master
...
Plugin arguments defaulting + moving plugin arguments to each corresponding plugin #925
2022-09-27 03:21:51 -07:00
Vlastimil Holer
7349b398e5
includeSoftConstraints not being respected for TopologySpreadConstraint
...
Issue #960
Signed-off-by: Vlastimil Holer <vh@fortrabbit.com >
2022-09-26 13:44:34 +02:00
Kubernetes Prow Robot
1d79f8761f
Merge pull request #956 from xiaoanyunfei/bugfix/informerfactory
...
fix sharedInformerFactory register
2022-09-26 04:39:44 -07:00
vlc刘诚
ac0261fafb
fix pull-descheduler-verify-master build error
2022-09-24 09:29:42 +08:00
vlc刘诚
bfb688e016
RemovePodsViolatingTopologySpreadConstraintArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
0d8106a32d
RemovePodsViolatingNodeTaintsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
7b1ddf1edb
RemovePodsViolatingNodeAffinityArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
28ed86f079
RemovePodsViolatingInterPodAntiAffinityArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
fa874844a1
RemovePodsHavingTooManyRestartsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
63396d4afc
RemoveFailedPodsArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
acc267b0b3
RemoveDuplicatesArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
1d3e130366
PodLifeTimeArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
35aff52ec4
NodeUtilizationArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
a665a7b4e6
DefaultEvictorArgs defaulting
2022-09-23 11:32:38 +08:00
vlc刘诚
2b1746cda8
+ new line & automatic file scan mechanism for conversions/defaulters gen
2022-09-23 11:32:38 +08:00
vlc刘诚
96c03a3f97
Replace hard-code input-dirs with automatic file scan mechanism
2022-09-23 11:32:38 +08:00
vlc刘诚
3d28b85212
remove unused file: validation_pluginargs.go
2022-09-23 11:32:38 +08:00
vlc刘诚
9eb4c350d8
e2e_test fixing
2022-09-23 11:32:38 +08:00
vlc刘诚
dc04abc0e6
RemovePodsViolatingTopologySpreadConstraint defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
5a755e73f2
RemovePodsViolatingNodeTaints defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
a000bfa796
RemovePodsViolatingNodeAffinity defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
3007448bdb
RemovePodsViolatingInterPodAntiAffinity defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
b9a89196f2
RemovePodsHavingTooManyRestarts defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
78c3260692
RemoveDuplicates defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
0c88326df9
PodLifeTime defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
3b1cdcd442
NodeUtilization defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
vlc刘诚
8d471baf3e
RemoveFailedPods defaulting + moving arguments to its corresponding plugin
2022-09-23 11:32:38 +08:00
Kubernetes Prow Robot
e31f4aac00
Merge pull request #957 from aslafy-z/patch-1
...
feat: show nodename in evicted events
2022-09-22 07:57:05 -07:00
Zadkiel Aharonian
ad82adf245
feat: show nodename in evicted events
2022-09-22 15:00:19 +02:00
sunxiaofei
c10e6d6c12
fix sharedInformerFactory register
2022-09-22 16:02:13 +08:00
Kubernetes Prow Robot
3e385d9504
Merge pull request #955 from knelasevero/pre-ev-filter
...
add PreEvictionFilter extension to DefaultEvictor Plugin
2022-09-20 09:17:20 -07:00
Lucas Severo Alves
edec8fe010
add PreEvictionFilter extension to DefaultEvictor Plugin
2022-09-20 17:29:41 +02:00
Amir Alavi
a85f2cf6f5
set helm-extra-set-args as inline command arg
2022-09-18 20:58:33 -04:00
Kubernetes Prow Robot
15045c5dcb
Merge pull request #952 from liangyuanpeng/Fix_contributor_readme
...
Fix wrong command on contributor-guide.md
2022-09-18 08:22:29 -07:00
Lan Liang
6c4d1a900d
Fix wrong command on contributor-guide.md
2022-09-18 13:51:09 +08:00
Kubernetes Prow Robot
59834cf8a7
Merge pull request #936 from pravarag/update-helm-chart-v1.25
...
Update helm chart version to v1.25.0
2022-09-14 09:03:00 -07:00
Kubernetes Prow Robot
82ed18fd2b
Merge pull request #947 from eminaktas/metric-label-fix
...
feat: change DeschedulerVersion and GitVersion labels
2022-09-12 12:23:05 -07:00
eminaktas
2c17af79f4
feat: change DeschedulerVersion and GitVersion labels
...
This commit changes build_info metric labels
- AppVersion label will show major+minor version
for example 0.24.1
minor version numbers and commit hash
Signed-off-by: eminaktas <eminaktas34@gmail.com >
2022-09-12 21:36:40 +03:00
Kubernetes Prow Robot
72bf50fde6
Merge pull request #929 from knelasevero/ev-filter-plugin
...
Add new DefaultEvictor plugin with args
2022-09-12 09:21:24 -07:00
Lucas Severo Alves
f47c2c4407
add new preevectionfilter plugin with args
2022-09-12 16:56:21 +02:00
Kubernetes Prow Robot
16619fcf44
Merge pull request #931 from a7i/amir/v1beta1
...
remove TODO comments for cronjob v1beta1 support
2022-09-12 05:07:25 -07:00
Kubernetes Prow Robot
0317be1b76
Merge pull request #935 from pravarag/update-docs-1.25-release
...
Update docs & manifests for v0.25.0
2022-09-08 06:49:45 -07:00
Kubernetes Prow Robot
d8bac08592
Merge pull request #945 from gallowaystorm/patch-1
...
feat: add RemovePodsHavingTooManyRestarts to values.yaml
2022-09-07 18:22:06 -07:00
Storm Galloway
d14df1fedf
feat: add RemovePodsHavingTooManyRestarts to yaml
...
This does the following:
1. Enables RemovePodsHavingTooManyRestarts when using Helm by default (it is not currently)
2. Adds RemovePodsHavingTooManyRestarts to the values.yaml for clearer configs
2022-09-07 14:42:35 -05:00
Kubernetes Prow Robot
8a769603a6
Merge pull request #928 from a7i/podlifetime-states-version-clarification
...
clarify which version PodLifeTime introduced states parameter and deprecated podStatusPhases
2022-09-07 09:40:37 -07:00
Kubernetes Prow Robot
137a6b999f
Merge pull request #943 from gallowaystorm/patch-1
...
Add RemovePodsViolatingTopologySpreadConstraint to values.yaml
2022-09-06 19:58:37 -07:00
Storm Galloway
334b4bb12c
Add RemovePodsViolatingTopologySpreadConstraint to values.yaml
...
- add RemovePodsViolatingTopologySpreadConstraint yaml to values.yaml to make chart config clearer
2022-09-06 12:47:06 -05:00
Kubernetes Prow Robot
5a2a180f17
Merge pull request #938 from a7i/remove-kubectl-dep
...
remove dependency on kubectl
2022-09-06 09:33:52 -07:00
Amir Alavi
1265b4c325
remove dependency on kubectl
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-09-06 10:47:22 -04:00
Kubernetes Prow Robot
ea8e648cfb
Merge pull request #933 from a7i/1.25-rc.0
...
Bump to k8s 1.25
2022-09-06 07:30:56 -07:00
Amir Alavi
e8fae9a3b7
remove pod security policy; additional policy/v1beta1 cleanup; use informers for descheduler unit tests
...
update go to 1.19 and helm kubernetes cluster to 1.25
bump -rc.0 to 1.25 GA
bump k8s utils library
bump golang-ci
use go 1.19 for helm github action
upgrade kubectl from 0.20 to 0.25
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-09-04 10:30:40 -04:00
JaneLiuL
c9b0fbe467
Bump to k8s 1.25-rc.0
2022-09-03 09:57:56 -04:00
Pravar Agrawal
66694bb767
update helm chart version to v1.25.0
2022-09-03 00:00:16 +05:30
Pravar Agrawal
e68ceb2273
Update docs & manifests for v0.25.0
2022-09-02 23:51:21 +05:30
Amir Alavi
dcb81f65a9
remove TODO comments for cronjob v1beta1 support
2022-08-30 15:53:21 -04:00
Amir Alavi
face080485
clarify which version PodLifeTime introduced states parameter and deprecated podStatusPhases
...
Signed-off-by: Amir Alavi <amiralavi7@gmail.com >
2022-08-27 14:59:14 -04:00
Kubernetes Prow Robot
1eade5bf91
Merge pull request #922 from jklaw90/remove-plugin
...
removing dupe plugin interface check
2022-08-25 12:48:08 -07:00
Julian Lawrence
bfcd310a16
removing dupe plugin interface check
2022-08-24 16:12:24 -07:00
Kubernetes Prow Robot
70df89601a
Merge pull request #910 from JaneLiuL/master
...
bring lownodeutilization and highnodeutilization to plugin
2022-08-17 05:41:13 -07:00
JaneLiuL
680e650706
bring lownodeutilization and highnodeutilization to plugin
2022-08-17 17:30:46 +08:00
Kubernetes Prow Robot
b743b2d5f7
Merge pull request #903 from knelasevero/migrate-podantiaffinity
...
Migrate RemovePodsViolatingInterPodAntiAffinity into a plugin
2022-08-16 07:59:08 -07:00
Kubernetes Prow Robot
cfc5d0c24a
Merge pull request #916 from ingvagabund/skip-fitsRequest-for-current-node
...
NodeFit: do not check whether node fitsRequest when a pod is already assigned to the node
2022-08-16 07:31:08 -07:00
Kubernetes Prow Robot
ddd145c69a
Merge pull request #898 from JaneLiuL/security-gh
...
add security scan into gh-actions
2022-08-16 05:47:08 -07:00
Jan Chaloupka
d99bdfffc8
NodeFit: do not check whether node fitsRequest when a pod is already assigned to the node
2022-08-16 13:38:11 +02:00
Lucas Severo Alves
a2dd86ac3b
Migrate RemovePodsViolatingInterPodAntiAffinity into a plugin
2022-08-16 12:29:25 +02:00
JaneLiuL
50676622de
add security scan into gh-actions
2022-08-16 09:36:46 +08:00
Kubernetes Prow Robot
fa3ddc6fee
Merge pull request #908 from jklaw90/migrate-RemovePodsViolatingTopologySpreadConstraint
...
RemovePodsViolatingTopologySpreadConstraint Plugin
2022-08-15 14:25:55 -07:00
Julian Lawrence
674bf4655d
migrate plugin - pods violating topologyspread
...
updated to remove older params
2022-08-15 08:23:04 -07:00
Kubernetes Prow Robot
6d4abe88ca
Merge pull request #913 from a7i/migrate-PodLifeTime-to-plugin
...
Migrate PodLifeTime to plugin
2022-08-15 07:14:14 -07:00
Amir Alavi
d4ff3aef61
Migrate PodLifeTime to plugin
2022-08-15 08:54:42 -04:00
Kubernetes Prow Robot
83c4f5d526
Merge pull request #912 from ingvagabund/container-engine
...
CONTAINER_ENGINE to override the default docker engine
2022-08-11 18:46:43 -07:00
Jan Chaloupka
d1a9190c50
CONTAINER_ENGINE to override the default docker engine
2022-08-11 16:09:46 +02:00
Kubernetes Prow Robot
a1d4770634
Merge pull request #911 from knelasevero/local-ct-install
...
introduce ct for local helm install test
2022-08-11 06:10:58 -07:00
Lucas Severo Alves
ba85e794b2
introduce ct for local helm install test
2022-08-10 18:01:42 +02:00
Kubernetes Prow Robot
0a50d5a7da
Merge pull request #892 from JaneLiuL/master
...
bring removeduplicates to plugin
2022-08-10 02:40:30 -07:00
Kubernetes Prow Robot
2de4e23425
Merge pull request #906 from a7i/node-affinity-use-existing-validation
...
NodeAffinity plugin to use the existing validation methods
2022-08-10 02:02:31 -07:00
JaneLiuL
3474725176
bring removeduplicates to plugin
2022-08-10 15:02:28 +08:00
Amir Alavi
27fa7a70a1
NodeAffinity plugin to use the existing validation methods
2022-08-09 13:38:33 -04:00
Kubernetes Prow Robot
ccfaeb2275
Merge pull request #902 from BinacsLee/binacs/migrate-removepodshavingtoomanyrestarts-to-plugin
...
Migrate RemovePodsHavingTooManyRestarts to plugin
2022-08-09 09:10:36 -07:00
BinacsLee
d798e7d204
Migrate RemovePodsHavingTooManyRestarts to plugin
2022-08-09 22:05:36 +08:00
Kubernetes Prow Robot
788e9f86bd
Merge pull request #860 from knelasevero/migrate-node-afinity-to-plugin
...
Migrate RemovePodsViolatingNodeAffinity to plugin
2022-08-09 06:14:51 -07:00
Lucas Severo Alves
0c3bf7f957
Migrate RemovePodsViolatingNodeAffinity into a plugin
2022-08-09 14:05:51 +02:00
Kubernetes Prow Robot
349453264e
Merge pull request #904 from knelasevero/add-helm-test-step-1
...
add helm ct install.
2022-08-09 03:54:51 -07:00
Lucas Severo Alves
e9c23fe42f
add helm ct install. First step, see https://github.com/kubernetes-sigs/descheduler/pull/895#issuecomment-1203608848
2022-08-08 21:11:20 +02:00
Kubernetes Prow Robot
27ed7d15b9
Merge pull request #899 from a7i/separate-args-validations
...
separate args validation for better reuse
2022-08-08 08:46:19 -07:00
Amir Alavi
55d4ed479c
separate args validation for better reuse
2022-08-05 10:46:04 -04:00
Kubernetes Prow Robot
d109ea64d0
Merge pull request #861 from a7i/migrate-RemoveFailedPods-to-plugin
...
Migrate RemoveFailedPods to plugin
2022-08-04 07:49:46 -07:00
Amir Alavi
330def2e56
Migrate RemoveFailedPods to plugin
2022-08-02 23:30:49 -04:00
Kubernetes Prow Robot
9880ed5372
Merge pull request #896 from ingvagabund/update-owners
...
Remove emeritus_approvers from reviewers
2022-08-02 07:31:45 -07:00
Jan Chaloupka
d4ecff5ba4
Remove emeritus_approvers from reviewers
2022-08-02 12:46:23 +02:00
Kubernetes Prow Robot
46e712163a
Merge pull request #888 from knelasevero/fix-memory-leak-shutdown-broadcaster
...
fix: events memory leak. Using new events implementation and take recorder out of EvictPod
2022-08-01 05:14:28 -07:00
Kubernetes Prow Robot
0d1d485850
Merge pull request #894 from ingvagabund/remove-migrated-node-taint-strategy
...
Remove RemovePodsViolatingNodeTaints strategy already migrated into a plugin
2022-07-28 07:47:11 -07:00
Jan Chaloupka
1294106a22
Remove RemovePodsViolatingNodeTaints strategy already migrated into a plugin
2022-07-28 16:34:42 +02:00
Lucas Severo Alves
0aa233415e
use new events implementation and take recorder out of EvictPod
2022-07-28 15:18:21 +02:00
Kubernetes Prow Robot
0d3ff8a84f
Merge pull request #857 from ingvagabund/migrate-RemovePodsViolatingNodeTaints-to-plugin
...
Migrate RemovePodsViolatingNodeTaints to a plugin
2022-07-26 05:59:10 -07:00
Jan Chaloupka
704f6d4496
Migrate RemovePodsViolatingNodeTaints into a plugin
2022-07-21 20:52:24 +02:00
Kubernetes Prow Robot
c699dd1ccc
Merge pull request #885 from damemi/evict-options
...
Add EvictOptions struct to EvictPod()
2022-07-20 10:08:35 -07:00
Mike Dame
d5e66ab62e
Add EvictOptions struct to EvictPod()
2022-07-20 16:52:44 +00:00
Kubernetes Prow Robot
3a486f1a79
Merge pull request #882 from iijimakazuyuki/master
...
Add default lease resource name in Helm chart's ClusterRole
2022-07-11 07:15:49 -07:00
Kubernetes Prow Robot
6e69a10396
Merge pull request #846 from ingvagabund/evictor-interface
...
Prepare pod evictor for the descheduling framework plugin
2022-07-09 11:27:46 -07:00
Kubernetes Prow Robot
d78994fe6d
Merge pull request #883 from a7i/approver-a7i
...
code approvers: add a7i
2022-07-08 08:23:46 -07:00
Amir Alavi
9ef87b9937
code approvers: add a7i
2022-07-08 09:09:42 -04:00
Kazuyuki Iijima
8b849106ed
Add default lease resource name in ClusterRole
...
Signed-off-by: Kazuyuki Iijima <iijimakazuyuki@gmail.com >
2022-07-08 21:45:17 +09:00
Kubernetes Prow Robot
2ea0a2e1c0
Merge pull request #876 from iijimakazuyuki/master
...
Use lease resource name from Helm value
2022-07-08 04:43:47 -07:00
Kazuyuki Iijima
329c357834
Use lease resource name from Helm value
...
Signed-off-by: Kazuyuki Iijima <iijimakazuyuki@gmail.com >
2022-07-08 00:25:39 +09:00
Kubernetes Prow Robot
8072a8c82e
Merge pull request #871 from knelasevero/fix-chart-path
...
fix: chart path can't be relative
2022-07-07 07:11:34 -07:00
Kubernetes Prow Robot
7a7393f5ff
Merge pull request #872 from JaneLiuL/master
...
fix log-file and log-dir issue
2022-07-07 06:57:35 -07:00
Lucas Severo Alves
df65157a3b
disable vcs maintainer check
2022-07-06 20:09:07 +02:00
JaneLiuL
754f8c9def
fix log-file and log-dir issue
2022-07-06 15:50:43 +08:00
Lucas Severo Alves
d75e9e8c4e
fix comment space lint issue
2022-07-04 18:26:28 +02:00
Lucas Severo Alves
2cd79c6816
chart path can´t be relative
2022-07-04 18:19:09 +02:00
Kubernetes Prow Robot
aff9a0ba06
Merge pull request #836 from a7i/balancedomains-belowavg
...
TopologySpreadConstraint: only evaluate nodes below ideal avg when balancing domains
2022-07-03 18:57:22 -07:00
Kubernetes Prow Robot
e1a10c36de
Merge pull request #854 from knelasevero/improve-helm-setup
...
Improving helm setup
2022-07-01 11:03:23 -07:00
Kubernetes Prow Robot
d8897635b0
Merge pull request #834 from a7i/podlifetime-container-state
...
PodLifeTime: support container states PodInitializing and ContainerCreating
2022-06-28 07:59:58 -07:00
Amir Alavi
abf5752260
PodLifeTime: add States field and deprecate PodStatusPhases
2022-06-25 15:13:18 -04:00
Amir Alavi
934fffb669
RemovePodsViolatingTopologySpreadConstraint: test case to cover tainted nodes and eviction loop
2022-06-20 20:53:30 -04:00
Amir Alavi
7a5e67d462
topologyspreadconstraint_test: ensure specific pods were evicted
2022-06-20 19:21:58 -04:00
Amir Alavi
469bde0a01
TopologySpreadConstraint: only evaluate nodes below ideal avg when balancing domains
2022-06-20 18:42:34 -04:00
Jan Chaloupka
c838614b6c
EvictPod: stop returning an error
...
When an error is returned a strategy either stops completely or starts
processing another node. Given the error can be a transient error or
only one of the limits can get exceeded it is fair to just skip a
pod that failed eviction and proceed to the next instead.
In order to optimize the processing and stop earlier, it is more
practical to implement a check which will say when a limit was
exceeded.
2022-06-17 10:12:57 +02:00
Jan Chaloupka
cc49f9fcc2
Drop node parameter from EvictPod
...
The method uses the node object to only get the node name.
The node name can be retrieved from the pod object.
Some strategies might try to evict a pod in Pending state which
does not have the .spec.nodeName field set. Thus, skipping
the test for the node limit.
2022-06-17 10:10:25 +02:00
Amir Alavi
4e710cdf3b
PodLifeTime: support container states PodInitializing and ContainerCreating
2022-06-16 21:17:49 -04:00
Jan Chaloupka
d5ee855221
Pass the strategy name into evictor through context
2022-06-16 16:32:13 +02:00
Kubernetes Prow Robot
b2418ef481
Merge pull request #847 from ingvagabund/split-pod-evictor-and-evictor-filter
...
Split pod evictor and evictor filter
2022-06-16 07:22:49 -07:00
Kubernetes Prow Robot
1f1aad335a
Merge pull request #856 from a7i/pod-sort-age-random
...
remove random creation timestamp from pod sort by age test
2022-06-16 01:18:49 -07:00
Kubernetes Prow Robot
627d219dab
Merge pull request #852 from knelasevero/existing-contraints
...
Check existing constraints before assigning
2022-06-15 06:07:17 -07:00
Lucas Severo Alves
30c972e49e
change namespaceTopologySpreadConstraints from map to slice
2022-06-15 14:54:56 +02:00
Amir Alavi
a7cfb25e9b
remove random creation timestamp from pod sort by age test
2022-06-14 23:28:58 -04:00
Lucas Severo Alves
45e1cdbd01
WIP: improving helm setup
2022-06-14 17:08:00 +02:00
Lucas Severo Alves
dad3db3187
Check existing constraints before assigning
2022-06-14 10:43:59 +02:00
Jan Chaloupka
d2130747d8
Split pod evictor and evictor filter
2022-06-13 18:48:05 +02:00
Kubernetes Prow Robot
84c8d1ca03
Merge pull request #843 from damemi/docs-readme-1.24.1
...
Update docs, manifests for 0.24.1 on master
2022-06-08 06:58:24 -07:00
Mike Dame
5dfd54e500
Docs and readme updates
2022-06-08 13:35:22 +00:00
Kubernetes Prow Robot
7550fba2fa
Merge pull request #840 from a7i/nodefit-docs
...
nodeFit: fix docs spacing for placement of the field
2022-06-07 12:28:27 -07:00
Amir Alavi
038b6e1ca7
nodeFit: fix docs spacing for placement of the field
2022-06-07 11:59:30 -04:00
Kubernetes Prow Robot
98a946dea7
Merge pull request #833 from a7i/podlifetime-sort-age
...
PodLifeTime: sort pods by creation timestamp
2022-06-07 01:23:49 -07:00
Amir Alavi
871a10344e
e2e: use kubernetes utils pointer library
2022-06-06 22:05:32 -04:00
Amir Alavi
311d75223f
PodLifeTime: sort pods by creation timestamp
2022-06-06 21:49:24 -04:00
Kubernetes Prow Robot
33807ed8e4
Merge pull request #830 from a7i/revert-805-cleanup/lownodeutilization
...
Revert "cleanup lownodeutilization code"
2022-06-01 08:51:03 -07:00
Amir Alavi
3cc0a68f13
lownodeutilization: clarify comments and variable naming for underutilized vs. overutilized
2022-06-01 11:39:38 -04:00
Amir Alavi
8e1d35cb3c
Revert "cleanup lownodeutilization code"
2022-06-01 11:28:09 -04:00
Kubernetes Prow Robot
59c4904ddc
Merge pull request #805 from xiaoanyunfei/cleanup/lownodeutilization
...
cleanup lownodeutilization code
2022-06-01 07:45:02 -07:00
Kubernetes Prow Robot
c5604c760d
Merge pull request #825 from damemi/cloudbuild-timeout
...
Increase cloudbuild timeout to 25 minutes
2022-06-01 06:47:02 -07:00
Mike Dame
f769296243
Increase cloudbuild timeout to 25 minutes
2022-05-31 18:51:53 +00:00
Kubernetes Prow Robot
8972bd9bf0
Merge pull request #823 from damemi/fix-version-cmd
...
Fix version command to parse helm chart tags
2022-05-31 11:14:53 -07:00
Kubernetes Prow Robot
873381197b
Merge pull request #821 from damemi/test-version-updates
...
Update helm tests util versions and release guide
2022-05-31 10:44:52 -07:00
Mike Dame
af45591c25
Fix version command to parse helm chart tags
2022-05-31 17:39:08 +00:00
Mike Dame
17e986418f
Update helm tests util versions and release guide
2022-05-31 17:05:14 +00:00
Kubernetes Prow Robot
5a9e65833f
Merge pull request #818 from damemi/release-guide-updates
...
Update release guide docs
2022-05-26 08:21:24 -07:00
Mike Dame
725ca47bda
Update release guide docs
2022-05-25 15:36:58 +00:00
Kubernetes Prow Robot
f39058af1c
Merge pull request #813 from stephan2012/bugfix/leader-election-chart-812
...
Arguments must be strings, not bool or number
2022-05-25 07:12:44 -07:00
Kubernetes Prow Robot
332d61dba8
Merge pull request #814 from stephan2012/bugfix/missing-keys-803
...
Add podAnnotations and podLabels to values and docs
2022-05-24 09:38:06 -07:00
Stephan Austermühle
3cbae5e72b
Fix type error for the leader election
...
Also, add the missing update verb in the ClusterRole and adds required
time units to leaseDuration, renewDeadline, retryPeriod in the Chart
example.
2022-05-24 18:11:18 +02:00
Stephan Austermühle
d8a609a6e7
Add more precise description
2022-05-24 18:07:58 +02:00
Stephan Austermühle
f0fa4c0cc0
Add podAnnotations and podLabels to values and docs
2022-05-24 10:02:16 +02:00
Kubernetes Prow Robot
e61823c299
Merge pull request #809 from damemi/CVE-2022-27191
...
bump: golang.org/x/crypto
2022-05-23 21:39:10 -07:00
Mike Dame
14b83e6cc5
bump: golang.org/x/crypto
2022-05-23 21:17:27 +00:00
sunxiaofei
5e3b825427
cleanup lownodeutilization code
2022-05-23 17:20:35 +08:00
Kubernetes Prow Robot
15794ba00d
Merge pull request #801 from KohlsTechnology/bump-go-1.18
...
Bump To Go 1.18.2
2022-05-18 23:54:07 -07:00
Sean Malloy
e494a5817e
Bump To Go 1.18.2
...
The main k/k repo was updated to Go 1.18.2 for the
k8s v1.24.0 release. See below PR for reference.
https://github.com/kubernetes/kubernetes/pull/110044
2022-05-18 09:36:32 -05:00
Kubernetes Prow Robot
eb0be65687
Merge pull request #796 from JaneLiuL/master
...
Update helm chart version to v0.24
2022-05-16 15:06:19 -07:00
JaneLiuL
64786460cd
Update helm chart version to v0.24
2022-05-13 08:27:15 +08:00
Kubernetes Prow Robot
9c110c4004
Merge pull request #791 from JaneLiuL/master
...
Bump to k8s 1.24.0
2022-05-12 12:06:33 -07:00
Kubernetes Prow Robot
0eddf7f108
Merge pull request #792 from pravarag/update-docs-1.24
...
Update Docs and Manifests for v0.24.0
2022-05-12 11:31:15 -07:00
Kubernetes Prow Robot
3c8d6c4d53
Merge pull request #795 from damemi/update-e2e
...
Update e2e test versions
2022-05-12 09:29:14 -07:00
Mike Dame
6e84d0a6ba
React to removal of offensive language
...
https://github.com/kubernetes/kubeadm/issues/2200 went into effect in 1.24, so
e2es broke without the update.
2022-05-12 15:35:07 +00:00
Mike Dame
fb1df468ad
golint fix
2022-05-12 14:21:34 +00:00
Mike Dame
ac4d576df8
Update e2e test versions
2022-05-12 14:16:53 +00:00
Pravar Agrawal
314ad65b04
Update docs and manifests for v0.24.0
2022-05-04 22:08:49 +05:30
JaneLiuL
969a618933
Bump to k8s 1.24.0
2022-05-04 10:17:47 +08:00
Kubernetes Prow Robot
028f205e8c
Merge pull request #790 from ingvagabund/636
...
Added request considerations to NodeFit Feature [#636 follow up]
2022-05-03 19:09:16 -07:00
Jan Chaloupka
3eca2782d4
Addressing review comments
...
Both LowNode and HighNode utilization strategies evict only as many pods
as there's free resources on other nodes. Thus, the resource fit test
is always true by definition.
2022-04-28 18:54:54 +02:00
RyanDevlin
16eb9063b6
NodeFit parameter now considers pod requests
2022-04-28 10:16:52 +02:00
Kubernetes Prow Robot
eac3b4b54a
Merge pull request #788 from ryan4yin/master
...
fix: incorrect yaml indentation in readme
2022-04-26 06:46:53 -07:00
Ryan Yin
d08cea731a
fix: incorrect indentation
2022-04-26 06:05:12 +08:00
Kubernetes Prow Robot
0fc5ba9316
Merge pull request #787 from JaneLiuL/master
...
bump to k8s 1.24-rc.0
2022-04-25 12:05:43 -07:00
JaneLiuL
ecbd10afe2
bump to k8s 1.24-rc.0
2022-04-21 09:11:04 +08:00
Kubernetes Prow Robot
e5ed0540f2
Merge pull request #779 from pravarag/user-docs-typo
...
Fix missing param in user-guide for PodLifeTime strategy
2022-04-11 01:44:06 -07:00
Pravar Agrawal
4e972a7602
fix missing param in user-guide
2022-04-07 10:02:26 +05:30
Kubernetes Prow Robot
ae20b5b034
Merge pull request #732 from eminaktas/feature/metric-scape
...
feat: Add metric scrape configs in Helm Chart
2022-03-30 07:06:27 -07:00
Kubernetes Prow Robot
406e3ed5b3
Merge pull request #771 from dineshbhor/fix-highnodeutilization-node-sorting
...
Sort nodes in ascending order for HighNodeUtilization
2022-03-29 02:58:47 -07:00
dineshbhor
7589aaf00b
Sort nodes in ascending order for HighNodeUtilization
2022-03-29 17:54:18 +09:00
eminaktas
ca90b53913
feat: Add metric scrape configs in Helm Chart
...
Signed-off-by: eminaktas <emin.aktas@trendyol.com >
2022-03-28 23:41:56 +03:00
Kubernetes Prow Robot
238eebeaca
Merge pull request #722 from Dentrax/feature/leaderelection
...
feat(leaderelection): impl leader election for HA Deployment
2022-03-28 09:39:23 -07:00
Kubernetes Prow Robot
cf59d08193
Merge pull request #751 from HelmutLety/redo_#473
...
feat: Add DeviationThreshold Paramter for LowNodeUtilization, (Previous attempt - #473 )
2022-03-28 03:53:24 -07:00
HelmutLety
2ea65e69dc
feat(LowNodeUtilization): useDeviationThresholds, redo of #473
...
[751]: normalize Percentage in nodeutilization and clean the tests
2022-03-28 12:35:01 +02:00
Kubernetes Prow Robot
7f6a2a69b0
Merge pull request #777 from JacobHenner/support-taint-exclusions
...
Add RemovePodsViolatingNodeTaints taint exclusion
2022-03-28 02:47:23 -07:00
Jacob Henner
ac3362149b
Add RemovePodsViolatingNodeTaints taint exclusion
...
Add taint exclusion to RemovePodsViolatingNodeTaints. This permits node
taints to be ignored by allowing users to specify ignored taint keys or
ignored taint key=value pairs.
2022-03-27 13:48:40 -04:00
Furkan
0a52af9ab8
feat(leaderelection): impl leader election
...
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
Signed-off-by: eminaktas <eminaktas34@gmail.com >
Co-authored-by: Emin <emin.aktas@trendyol.com >
Co-authored-by: Yasin <yasintaha.erol@trendyol.com >
2022-03-25 14:33:14 +03:00
Kubernetes Prow Robot
07bbdc61c4
Merge pull request #762 from ingvagabund/nodeutilization-refactor
...
Promote NodeUsage to NodeInfo, evaluate thresholds separately
2022-03-15 17:33:48 -07:00
Kubernetes Prow Robot
17595fdcfc
Merge pull request #764 from ingvagabund/taints-prefer-no-scheduler
...
RemovePodsViolatingNodeTaints: optionally include PreferNoSchedule taint
2022-03-14 17:36:10 -07:00
Jan Chaloupka
285523f0d9
RemovePodsViolatingNodeTaints: optionally include PreferNoSchedule taint
2022-03-14 16:46:03 +01:00
Kubernetes Prow Robot
c55a897599
Merge pull request #759 from JaneLiuL/master
...
OWNERS: add janeliul as a reviewer
2022-03-11 10:29:07 -08:00
Jan Chaloupka
52ff50f2d1
Promote NodeUsage to NodeInfo, evaluate thresholds separately
2022-03-11 13:52:37 +01:00
Jan Chaloupka
8ebf3fb323
nodeutilization: move node resource threshold value computation under a separate function
2022-03-11 12:46:11 +01:00
Kubernetes Prow Robot
0e0ae8df90
Merge pull request #761 from ingvagabund/TestTooManyRestarts-II
...
[e2e] TestTooManyRestarts: check if container status is set before accessing
2022-03-11 02:29:06 -08:00
Jan Chaloupka
bd3daa82d3
[e2e] TestTooManyRestarts: check if container status is set before accessing
2022-03-11 10:35:49 +01:00
Kubernetes Prow Robot
60a15f0392
Merge pull request #760 from ingvagabund/TestTooManyRestarts
...
[e2e] TestTooManyRestarts: check err and len before accessing pod items
2022-03-11 01:09:07 -08:00
Jan Chaloupka
d98cb84568
[e2e] TestTooManyRestarts: check err and len before accessing pod items
2022-03-11 09:45:05 +01:00
Kubernetes Prow Robot
6ab01eca63
Merge pull request #758 from hiroyaonoe/add-doc-about-max-no-of-pods-to-evict-per-namespace-policy
...
Update docs for maxNoOfPodsToEvictPerNamespace
2022-03-10 11:25:21 -08:00
Kubernetes Prow Robot
584ac2d604
Merge pull request #757 from prune998/prune/taint-logs
...
add conflicting taint to the logs
2022-03-10 05:37:35 -08:00
prune
448dc4784c
add conflicting taint to the logs
...
log when count mismatch
simplified logic to log blocking taints
2022-03-10 08:05:42 -05:00
JaneLiuL
3ca77e7a3d
OWNERS: add janeliul as a reviewer
2022-03-08 07:48:11 +08:00
Hiroya Onoe
01e7015b97
Update docs for maxNoOfPodsToEvictPerNamespace
2022-03-07 16:21:04 +09:00
Kubernetes Prow Robot
fd5a8c7d78
Merge pull request #739 from JaneLiuL/master
...
Share links to all descheduler ehnacements proposals in the project repo
2022-03-02 09:55:14 -08:00
Kubernetes Prow Robot
43148ecd0c
Merge pull request #740 from JaneLiuL/doc-npd
...
fix doc about NPD description
2022-03-01 09:59:55 -08:00
Kubernetes Prow Robot
16501978dc
Merge pull request #748 from damemi/update-v0.23.1
...
Update manifests and doc for v0.23.1
2022-03-01 07:47:46 -08:00
Mike Dame
1b4e48b006
Update manifests and doc for v0.23.1
2022-02-28 19:06:50 +00:00
Kubernetes Prow Robot
da6a3e063f
Merge pull request #744 from antonio-te/master
...
Update golang image
2022-02-28 10:41:46 -08:00
Antonio Gurgel
5784c0cc04
Update golang image
...
1.17.3 is affected by CVE-2021-44716.
2022-02-28 07:22:26 -08:00
JaneLiuL
254a3a9ec1
Share links to all descheduler ehnacements proposals in the project repository
2022-02-26 12:27:35 +08:00
JaneLiuL
328c695141
fix doc about NPD description
2022-02-26 12:23:33 +08:00
Kubernetes Prow Robot
3ab0268c5a
Merge pull request #733 from JaneLiuL/master
...
remove MostRequestedPriority from doc since already deprecated
2022-02-24 04:32:32 -08:00
Jane Liu L
cd8dbdd1e2
remove MostRequestedPriority from doc since already deprecated
2022-02-24 09:00:36 +08:00
Kubernetes Prow Robot
54c50c5390
Merge pull request #731 from jklaw90/fix-ctx-cron
...
Bugfix: Cronjob ctx cancel
2022-02-22 11:35:18 -08:00
Julian Lawrence
a2cbc25397
updated to handle cronjob flow
2022-02-22 08:52:06 -08:00
Kubernetes Prow Robot
bd81f6436e
Merge pull request #708 from damemi/utilization-values-readme
...
Clarify resource calculations in NodeUtilization strategy Readmes
2022-02-22 04:47:46 -08:00
Kubernetes Prow Robot
30be19b04e
Merge pull request #715 from eminaktas/values-fix
...
fix: Remove deprecated parameters from cmdOptions and add the parameters under policy
2022-02-18 05:08:23 -08:00
Kubernetes Prow Robot
3c251fb09d
Merge pull request #726 from jklaw90/log-eviction-node
...
Eviction Logs
2022-02-15 04:08:03 -08:00
Julian Lawrence
224e2b078f
updated logs to help with debugging
2022-02-14 18:27:53 -08:00
Kubernetes Prow Robot
dd80d60f4f
Merge pull request #716 from eminaktas/imagepullsecret
...
fix: add imagePullSecrets for deployment resource
2022-02-14 05:27:29 -08:00
Kubernetes Prow Robot
e88837a349
Merge pull request #704 from ingvagabund/update-chart-readme
...
Update charts README to reflect the new parameters
2022-02-11 14:23:46 -08:00
Kubernetes Prow Robot
5901f8af1b
Merge pull request #697 from a7i/code-reviewer
...
OWNERS: add a7i as a reviewer
2022-02-11 08:14:23 -08:00
Kubernetes Prow Robot
0d1704a192
Merge pull request #717 from JaneLiuL/release-1.23.1
...
[release-1.23.1] Update helm chart version to v0.23.1
2022-02-08 04:34:54 -08:00
JaneLiuL
c5878b18c6
Update helm chart version to v0.23.1
2022-02-08 20:21:57 +08:00
emin.aktas
ff1954b32e
fix: add imagePullSecrets for deployment resource
...
Signed-off-by: emin.aktas <eminaktas34@gmail.com >
Co-authored-by: yasintahaerol <yasintahaerol@gmail.com >
Co-authored-by: Dentrax <furkan.turkal@trendyol.com >
2022-02-07 18:05:18 +03:00
emin.aktas
4c8040bbaf
fix: Remove deprecated parameters from cmdOptions and add the parameters under policy
2022-02-07 15:14:55 +03:00
Kubernetes Prow Robot
deaa314492
Merge pull request #712 from JaneLiuL/helm
...
fix helmchart fail to watch namespace issue
2022-02-06 10:36:51 -08:00
Jane Liu L
9c653a2274
fix helmchart fail to watch namespace issue
2022-02-04 18:34:21 +08:00
Kubernetes Prow Robot
8d37557743
Merge pull request #709 from damemi/update-helm-23
...
Update helm chart version to v0.23
2022-02-03 12:10:58 -08:00
Mike Dame
5081ad84b5
Update helm chart version to v0.23
2022-02-03 14:57:18 -05:00
Mike Dame
c51c066cd1
Clarify resource calculations in NodeUtilization strategy Readmes
...
This adds text explaining the resource calculation in LowNodeUtilization and HighNodeUtilization
2022-01-30 12:59:47 -05:00
Kubernetes Prow Robot
afb1d75ce1
Merge pull request #660 from martin-magakian/features/add_affinity_option
...
Adding 'affinity' support to run 'descheduler' in CronJob or Deployment
2022-01-27 05:56:27 -08:00
Jan Chaloupka
90e6174fdd
Update charts README to reflect the new parameters
2022-01-27 14:46:15 +01:00
Kubernetes Prow Robot
8e3ef9a6b3
Merge pull request #694 from sharkannon/master
...
Updates to include annotations to the service account
2022-01-27 05:42:26 -08:00
Kubernetes Prow Robot
778a18c550
Merge pull request #700 from jklaw90/root-ctx
...
Use the root context cancellation
2022-01-27 05:08:25 -08:00
Julian Lawrence
1a98a566b3
adding cancelation from sigint sigterm
2022-01-25 00:10:09 -08:00
Kubernetes Prow Robot
a643c619c9
Merge pull request #699 from ingvagabund/evict-pods-report-metrics-indendent-of-the-dry-mode
...
Evictor: report successful eviction independently of the dry-mode
2022-01-20 14:16:29 -08:00
Jan Chaloupka
203388ff1a
Evictor: report successful eviction independently of the dry-mode
...
Dry mode currently does not report metrics when the eviction succeeds
2022-01-20 21:23:19 +01:00
Kubernetes Prow Robot
2844f80a35
Merge pull request #677 from ingvagabund/accumulated-eviction
...
Use a fake client when evicting pods by individual strategies to accumulate the evictions
2022-01-20 08:15:52 -08:00
Jan Chaloupka
901a16ecbc
Do not collect the metrics when the metrics server is not enabled
2022-01-20 17:04:15 +01:00
Jan Chaloupka
e0f086ff85
Use a fake client when evicting pods by individual strategies to accumulate the evictions
...
Currently, when the descheduler is running with the --dry-run on, no strategy actually
evicts a pod so every strategy always starts with a complete list of
pods. E.g. when the PodLifeTime strategy evicts few pods, the RemoveDuplicatePods
strategy still takes into account even the pods eliminated by the PodLifeTime
strategy. Which does not correspond to the real case scenarios as the
same pod can be evicted multiple times. Instead, use a fake client and
evict/delete the pods from its cache so the strategies evict each pod
at most once as it would be normally done in a real cluster.
2022-01-20 17:04:05 +01:00
Amir Alavi
0251935268
OWNERS: add a7i as a reviewer
2022-01-18 09:14:44 -05:00
Stephen Herd
8752a28025
Merge branch 'kubernetes-sigs-master'
2022-01-13 12:52:36 -08:00
Stephen Herd
24884c7568
Rebase from master
2022-01-13 12:52:06 -08:00
Kubernetes Prow Robot
175f648045
Merge pull request #695 from a7i/liveness-template
...
make livenessprobe consistent across manifests
2022-01-12 13:37:40 -08:00
Amir Alavi
f50a3fa119
make livenessprobe consistent across manifests; make helm chart configurable via values.yaml
2022-01-12 11:49:17 -05:00
Kubernetes Prow Robot
551eced42a
Merge pull request #688 from babygoat/evict-failed-without-ownerrefs
...
feat: support eviction of failed bare pods
2022-01-11 12:31:15 -08:00
Stephen Herd
3635a8171c
Updates to include annotations to the service account, needed for things such as Workload Identity in Google Cloud
2022-01-11 11:55:05 -08:00
Kubernetes Prow Robot
796f347305
Merge pull request #692 from jklaw90/sliding-until
...
NonSlidingUntil for deployment
2022-01-11 06:21:16 -08:00
Kubernetes Prow Robot
13abbe7f09
Merge pull request #693 from developer-guy/patch-1
...
Update NOTES.txt
2022-01-10 05:11:13 -08:00
Kubernetes Prow Robot
e4df54d2d1
Merge pull request #685 from JaneLiuL/master
...
add liveness probe
2022-01-10 04:29:12 -08:00
Jane Liu L
c38f617e40
add liveness probe
2022-01-10 09:56:53 +08:00
Kubernetes Prow Robot
e6551564c4
Merge pull request #691 from RyanDevlin/waitForNodes
...
Eliminated race condition in E2E tests
2022-01-07 06:16:30 -08:00
Batuhan Apaydın
3a991dd50c
Update NOTES.txt
...
Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com >
Co-authored-by: Furkan Türkal <furkan.turkal@trendyol.com >
Co-authored-by: Emin Aktaş <emin.aktas@trendyol.com >
Co-authored-by: Necatican Yıldırım <necatican.yildirim@trendyol.com >
Co-authored-by: Fatih Sarhan <fatih.sarhan@trendyol.com >
2022-01-07 13:42:00 +03:00
Julian Lawrence
77cb406052
updated until -> sliding until
2022-01-06 12:55:10 -08:00
RyanDevlin
921a5680ab
Eliminated race condition in E2E tests
2022-01-06 09:36:13 -05:00
babygoat
1529180d70
feat: support eviction of failed bare pods
...
This patch adds the policy(evictFailedBarePods) to allow the failed
pods without ownerReferences to be evicted. For backward compatibility,
disable the policy by default. Address #644 .
2022-01-06 01:07:41 +08:00
Kubernetes Prow Robot
2d9143d129
Merge pull request #687 from jklaw90/error-comment
...
Comment update for metrics
2022-01-04 06:52:52 -08:00
Kubernetes Prow Robot
e9c0833b6f
Merge pull request #689 from ingvagabund/run-hack-update-generated-conversions-sh
...
run ./hack/update-* scripts
2022-01-04 06:34:52 -08:00
Jan Chaloupka
8462cf56d7
run ./hack/update-* scripts
2022-01-04 09:37:01 +01:00
Julian Lawrence
a60d6a527d
updated comment to reflect actual value
2021-12-29 10:56:10 -08:00
Kubernetes Prow Robot
2b23694704
Merge pull request #682 from jklaw90/chart-labels
...
commonLabels value for chart
2021-12-26 06:15:15 -08:00
Julian Lawrence
d0a95bee2f
fixed default value for common labels
2021-12-20 08:24:30 -08:00
Julian Lawrence
57a910f5d1
adding commonLabels value
2021-12-18 23:31:52 -08:00
Kubernetes Prow Robot
ccaedde183
Merge pull request #661 from kirecek/enhc/include-pod-reason
...
Add pod.Status.Reason to the list of reasons
2021-12-17 13:11:55 -08:00
Erik Jankovič
2020642b6f
chore: add pod.Status.Reason to the list of reasons
...
Signed-off-by: Erik Jankovič <erik.jankovic@gmail.com >
2021-12-17 18:37:53 +01:00
Kubernetes Prow Robot
96ff5d2dd9
Merge pull request #680 from ingvagabund/klog-output-stdout
...
Set the klog output to stdout by default
2021-12-16 05:31:18 -08:00
Jan Chaloupka
d8718d7db3
Set the klog output to stdout by default
...
Also, one needs to set --logtostderr=false to properly log into the stdout
2021-12-16 11:22:40 +01:00
Kubernetes Prow Robot
1e5165ba9f
Merge pull request #670 from autumn0207/improve_pod_eviction_metrics
...
Add node name label to the counter metric for evicted pods
2021-12-16 01:49:18 -08:00
autumn0207
8e74f8bd77
improve pod eviction metrics
2021-12-16 17:06:22 +08:00
Kubernetes Prow Robot
2424928019
Merge pull request #667 from damemi/1.23-rc.0
...
bump: k8s to 1.23
2021-12-15 06:56:20 -08:00
Jan Chaloupka
e6314d2c7e
Init the klog directly
...
Since 3948cb8d1b (diff-465167b08358906be13f9641d4798c6e8ad0790395e045af8ace4d08223fa922R78)
the klog verbosity level gets always overriden.
2021-12-15 09:23:20 -05:00
Kubernetes Prow Robot
271ee3c7e3
Merge pull request #678 from a7i/golangci-fix
...
fix: install golangci using from the golangci repo
2021-12-15 02:20:19 -08:00
Amir Alavi
e58686c142
fix: install golangci using from the golangci repo
2021-12-14 13:18:19 -05:00
Kubernetes Prow Robot
0b2c10d6ce
Merge pull request #673 from Garrybest/pr_pod_cache
...
list pods assigned to a node by pod informer cache
2021-12-14 01:32:04 -08:00
Garrybest
cac3b9185b
reform all test files
...
Signed-off-by: Garrybest <garrybest@foxmail.com >
2021-12-11 19:43:16 +08:00
Mike Dame
94888e653c
Move klog initialization to cli.Run()
2021-12-10 12:00:11 -05:00
Mike Dame
936578b238
Update k8s version in helm test
2021-12-10 10:14:47 -05:00
Mike Dame
4fa7bf978c
run hack/update-generated-deep-copies.sh
2021-12-10 10:02:39 -05:00
Mike Dame
2f7c496944
React to 1.23 bump
...
Logging validation functions changed in upstream commit
54ecfcdac8 .
This uses the new function name.
2021-12-10 10:02:26 -05:00
Mike Dame
5fe3ca86ff
bump: k8s to 1.23
2021-12-10 10:02:14 -05:00
Garrybest
0ff8ecb41e
reform all strategies by using getPodsAssignedToNode
...
Signed-off-by: Garrybest <garrybest@foxmail.com >
2021-12-10 19:28:51 +08:00
Garrybest
08ed129a07
reform ListPodsOnANode by using pod informer and indexer
...
Signed-off-by: Garrybest <garrybest@foxmail.com >
2021-12-10 19:25:20 +08:00
Kubernetes Prow Robot
49ad197dfc
Merge pull request #658 from JaneLiuL/master
...
Add maxNoOfPodsToEvictPerNamespace policy
2021-12-03 01:50:27 -08:00
Kubernetes Prow Robot
82201d0e48
Add maxNoOfPodsToEvictPerNamespace policy
2021-12-03 10:58:37 +08:00
Kubernetes Prow Robot
2b95332e8c
Merge pull request #665 from spiffxp/use-k8s-infra-for-gcb-image
...
images: use k8s-staging-test-infra/gcb-docker-gcloud
2021-11-30 13:59:01 -08:00
Aaron Crickenberger
e8ed62e540
images: use k8s-staging-test-infra/gcb-docker-gcloud
2021-11-30 13:12:18 -08:00
Kubernetes Prow Robot
e5725de7bb
Merge pull request #664 from stpabhi/dev
...
fix typo minPodLifeTimeSeconds
2021-11-30 08:10:56 -08:00
Abhilash Pallerlamudi
c47e811937
fix typo minPodLifeTimeSeconds
...
Signed-off-by: Abhilash Pallerlamudi <stp.abhi@gmail.com >
2021-11-29 17:51:40 -08:00
Kubernetes Prow Robot
e0bac4c371
Merge pull request #662 from ingvagabund/drop-deprecated-flags
...
Drop deprecated flags
2021-11-29 08:43:23 -08:00
Jan Chaloupka
73a7adf572
Drop deprecated flags
2021-11-29 17:12:59 +01:00
Kubernetes Prow Robot
5cf381a817
Merge pull request #663 from ingvagabund/bump-go-to-1.17
...
Bump go version in go.mod to go1.17
2021-11-29 08:01:23 -08:00
Jan Chaloupka
4603182320
Bump go version in go.mod to go1.17
2021-11-29 16:49:35 +01:00
Martin Magakian
ad207775ff
Adding 'affinity' support to run 'descheduler' in CronJob or Deployment
2021-11-18 11:08:36 +01:00
Kubernetes Prow Robot
d0f11a41c0
Merge pull request #639 from JaneLiuL/master
...
Ignore Pods With Deletion Timestamp
2021-11-15 08:44:49 -08:00
Jane Liu L
c7524705b3
Ignore Pods With Deletion Timestamp
2021-11-10 09:32:11 +08:00
Kubernetes Prow Robot
50f9513cbb
Merge pull request #642 from wking/clarify-RemovePodsHavingTooManyRestarts
...
README: Clarify podRestartThreshold applying to the sum over containers
2021-10-13 03:15:49 -07:00
W. Trevor King
6fd80ba29c
README: Clarify podRestartThreshold applying to the sum over containers
...
calcContainerRestarts sums over containers. The new language makes
that clear, avoiding potential confusion vs. an altenative that looked
for pods where a single container had passed the configured threshold.
For example, with three containers with 50 restarts and a threshold of
100, the actual "sum over containers" logic makes that pod a candidate
for descheduling, but the "largest single container restart count"
hypothetical would not have made it a candidate.
Also shifts labelSelector into the parameter table, because when it
was added in 29ade13ce7 (README and e2e-testcase add for
labelSelector, 2021-03-02, #510 ), it landed a few lines too high.
2021-10-07 14:51:26 -07:00
Kubernetes Prow Robot
5b557941fa
Merge pull request #627 from JaneLiuL/master
...
Add E2E test case cover duplicatepods strategy
2021-10-01 00:01:22 -07:00
Kubernetes Prow Robot
c6229934a0
Merge pull request #637 from KohlsTechnology/helm-suspend-docs
...
Document suspend helm chart configuration option
2021-09-30 23:47:22 -07:00
Sean Malloy
ed28eaeccc
Document suspend helm chart configuration option
2021-09-30 23:30:10 -05:00
Kubernetes Prow Robot
3be910c238
Merge pull request #621 from uthark/oatamanenko/deleted
...
Ignore pods being deleted
2021-09-30 21:21:22 -07:00
Kubernetes Prow Robot
d96dd6da2d
Merge pull request #632 from a7i/amir/failedpods-crash
...
RemoveFailedPods: guard against nil descheduler strategy (e.g. in case of default that loads all strategies)
2021-09-29 01:02:49 -07:00
Amir Alavi
f7c26ef41f
e2e tests for RemoveFailedPods strategy
...
Fix priority class default
2021-09-26 20:39:32 -04:00
Jane Liu L
57ad9cc91b
Add E2E test case cover tooManyRestarts strategy
2021-09-26 09:10:17 +08:00
Kubernetes Prow Robot
926339594d
Merge pull request #622 from yutachaos/feature/added_suspend_parameter
...
Added support for cronjob suspend
2021-09-22 09:18:01 -07:00
Amir Alavi
1ba53ad68c
e2e TestTopologySpreadConstraint: ensure pods are running before checking for topology spread across domains
2021-09-20 18:18:47 -04:00
Amir Alavi
6eb37ce079
RemoveFailedPods: guard against nil descheduler strategy (e.g. in case of default that loads all strategies)
2021-09-20 11:20:54 -04:00
Kubernetes Prow Robot
54d660eee0
Merge pull request #629 from chenkaiyue/fix-node-affinity-test
...
fix duplicate code in node_affinity_test.go
2021-09-16 01:59:46 -07:00
yutachaos
cf219fbfae
Added helm chart suspend parameter
...
Signed-off-by: yutachaos <18604471+yutachaos@users.noreply.github.com >
2021-09-16 14:32:09 +09:00
kaiyuechen
d1d9ea0c48
fix duplicate code in node_affinity_test.go
2021-09-16 10:39:52 +08:00
Oleg Atamanenko
4448d9c670
Ignore pods being deleted
2021-09-15 00:05:51 -07:00
Kubernetes Prow Robot
3909f3acae
Merge pull request #623 from damemi/release-1.22
...
Update Helm chart version to 0.22.0
2021-09-08 13:13:56 -07:00
Mike Dame
9f1274f3ab
Update Helm chart version to 0.22.0
2021-09-08 16:00:56 -04:00
Kubernetes Prow Robot
e6926e11ea
Merge pull request #617 from KohlsTechnology/docs-1.22
...
Update Docs and Manifests for v0.22.0
2021-08-31 09:31:37 -07:00
Sean Malloy
16228c9dd1
Update Docs and Manifests for v0.22.0
...
* Added v0.22 references to README
* Update k8s manifests with v0.22.0 references
* Added table with list of supported architectures by release
2021-08-31 00:24:18 -05:00
Kubernetes Prow Robot
57dabbca5c
Merge pull request #597 from a7i/amir/e2e-topology
...
Add e2e tests for TopologySpreadConstraint
2021-08-30 22:00:28 -07:00
Kubernetes Prow Robot
04439c6e64
Merge pull request #610 from a7i/failed-pods
...
Introduce RemoveFailedPods strategy
2021-08-30 11:30:09 -07:00
Amir Alavi
0e0e688fe8
Introduce RemoveFailedPods strategy
2021-08-30 14:17:52 -04:00
Kubernetes Prow Robot
0603de4353
Merge pull request #613 from derdanne/derdanne/highnodeutilization-readme-591
...
nodeutilization strategy: "numberOfNodes" should work as documented
2021-08-24 08:29:14 -07:00
Kubernetes Prow Robot
ea911db6dc
Merge pull request #615 from KohlsTechnology/bump-1.22
...
Bump To k8s 1.22.0
2021-08-19 07:07:24 -07:00
Sean Malloy
c079c7aaae
Bump To k8s 1.22.0
2021-08-19 00:40:38 -05:00
Kubernetes Prow Robot
5420988a28
Merge pull request #614 from KohlsTechnology/bump-go-version
...
Bump To Go 1.16.7
2021-08-18 02:10:08 -07:00
Sean Malloy
b56a1ab80a
Bump To Go 1.16.7
...
The main k/k repo was updated to Go 1.16.7 for k8s
v1.22.0 release. See below PR for reference.
https://github.com/kubernetes/kubernetes/pull/104200
2021-08-17 23:47:45 -05:00
Daniel Klockenkämper
a6b34c1130
nodeutilization strategy: "numberOfNodes" should work as documented
2021-08-17 13:29:07 +00:00
Amir Alavi
0de8002b7d
Update gce scripts to spread nodes over 2 zones
2021-08-16 22:41:37 -04:00
Amir Alavi
84d648ff60
Add e2e tests for TopologySpreadConstraint
2021-08-16 22:39:31 -04:00
Kubernetes Prow Robot
6ad6f6fce5
Merge pull request #592 from chrisjohnson00/issue-591
...
docs: adding clarification to HighNodeUtilization's purpose
2021-08-12 21:38:22 -07:00
Kubernetes Prow Robot
b7100ad871
Merge pull request #582 from praxist/helm-deployment
...
Update helm chart for running as deployment
2021-08-12 07:29:47 -07:00
Matthew Leung
38c0f1c639
Update helm chart for running as deployment
2021-08-11 11:56:14 -07:00
Kubernetes Prow Robot
64d7901d82
Merge pull request #602 from a7i/balance-domains-aboveavg
...
TopologySpreadConstraint: advance above avg index when at ideal average
2021-08-10 05:47:25 -07:00
Kubernetes Prow Robot
ab1015e5fa
Merge pull request #599 from a7i/amir/update-gce-images
...
Update GCE images to Ubuntu 18.04 LTS
2021-08-10 05:47:18 -07:00
Kubernetes Prow Robot
1753bf4422
Merge pull request #611 from a7i/docs-remove-redundant-strategies
...
Update README to remove redundant list of strategies
2021-08-02 08:11:22 -07:00
Amir Alavi
7cb44dca27
Update README to remove redundant list of strategies
2021-07-30 16:35:00 -04:00
Amir Alavi
2ec4b8b674
Update GCE images to Ubuntu 18.04 LTS
2021-07-30 16:14:20 -04:00
Kubernetes Prow Robot
0d0633488d
Merge pull request #598 from jayonlau/clenup
...
Clean up extra spaces
2021-07-30 11:11:37 -07:00
Kubernetes Prow Robot
f3b3853d9d
Merge pull request #562 from wsscc2021/helm-chart-tolerations
...
Add tolerations to cronjob in helm chart
2021-07-30 10:43:38 -07:00
Kubernetes Prow Robot
e550e5e22a
Merge pull request #600 from a7i/topology-example
...
Add example for RemovePodsViolatingTopologySpreadConstraint
2021-07-28 05:37:34 -07:00
Kubernetes Prow Robot
2bf37ff495
Merge pull request #608 from a7i/master
...
Remove kind binary from repo
2021-07-28 01:13:35 -07:00
Amir Alavi
fa84ec6774
Remove kind binary from repo and add to gitignore
2021-07-27 08:28:55 -04:00
Kubernetes Prow Robot
e18e0416b1
Merge pull request #607 from a7i/fix-helm-test
...
Place bash shebang at the top of the script + Ensure Helm installed for run-helm-tests
2021-07-27 00:40:45 -07:00
Amir Alavi
34282162f8
Wait for job to start/finish in helm-test script
2021-07-26 23:53:36 -04:00
Amir Alavi
7a043d31be
Ensure helm is installed and move shebang to top of file
2021-07-26 16:16:20 -04:00
Amir Alavi
b0e5d64bd7
TopologySpreadConstraint: advance above avg index when at ideal average when balancing domains
2021-07-13 22:55:10 -04:00
Amir Alavi
1c9ac2daee
Add example for RemovePodsViolatingTopologySpreadConstraint
2021-07-09 22:56:59 -04:00
jayonlau
c6b67e8a6f
Clean up extra spaces
...
Clean up extra spaces, although these errors are not important, they affect the code specification.
2021-07-09 15:40:35 +08:00
Kubernetes Prow Robot
2e4873d103
Merge pull request #594 from ikarldasan/master-to-main
...
Rename master to main
2021-07-06 05:50:18 -07:00
Karl Dasan
3e483c4d85
Rename master to main
2021-07-01 13:48:50 +05:30
Kubernetes Prow Robot
032ea70380
Merge pull request #549 from pravarag/verify-defaulters-gen
...
Add verify scripts for defaulters generator
2021-06-30 04:05:03 -07:00
Pravar Agrawal
df84dc4548
add verify script for defaulters gen
2021-06-30 09:41:43 +05:30
Chris Johnson
d4fa83f8bc
chore: PR feedback
2021-06-25 12:30:28 -07:00
Chris Johnson
448dbceadd
docs: adding clarification to HighNodeUtilization's purpose
2021-06-24 16:20:21 -07:00
Kubernetes Prow Robot
b83b064992
Merge pull request #589 from a7i/remove-kind-bin
...
Remove kind binary from repo
2021-06-16 00:19:59 -07:00
Amir Alavi
133a0049e3
Remove kind binary from repo
2021-06-15 18:29:06 -04:00
Kubernetes Prow Robot
50b1c1337d
Merge pull request #561 from mekza/support_image_pull_secrets
...
Add support for private registry creds
2021-06-10 23:28:58 -07:00
Martin-Zack Mekkaoui
d5deed44ca
Add support for private registry creds
2021-06-09 22:11:37 +02:00
Kubernetes Prow Robot
0f785b9530
Merge pull request #584 from damemi/update-go-badge
...
Update Go report card badge
2021-06-08 10:48:08 -07:00
Mike Dame
eb1f0ecc14
Update Go report card badge
2021-06-08 13:39:53 -04:00
Kubernetes Prow Robot
b59995eeb8
Merge pull request #583 from ingvagabund/highnodeutil-nodefit
...
HighNodeUtilization: add NodeFit feature
2021-06-08 08:15:13 -07:00
Jan Chaloupka
d998d82357
HighNodeUtilization: add NodeFit feature
2021-06-08 16:59:43 +02:00
Kubernetes Prow Robot
f51ea72ce0
Merge pull request #577 from a7i/amira/cronjob-ga
...
Use stable batch/v1 API Group for Kubernetes 1.21
2021-06-08 06:03:13 -07:00
Kubernetes Prow Robot
fe8d4c0d21
Merge pull request #572 from audip/feature/add-deployment-k8s-yaml-files
...
Add run descheduler as deployment
2021-06-08 05:47:14 -07:00
Kubernetes Prow Robot
3843a2d5d1
Merge pull request #550 from hanumanthan/highnodeutilisation
...
Highnodeutilization strategy
2021-06-08 01:59:12 -07:00
Kubernetes Prow Robot
839a237d6a
Merge pull request #581 from jsravn/patch-1
...
Remove namespace from ClusterRoleBinding
2021-06-07 07:16:40 -07:00
Hanu
4cd1e66ef3
Adding highnodeutilization strategy
2021-06-06 18:01:42 +08:00
Hanu
2f18864fa5
Refractor - Modify the common functions to be used by high utilisation
2021-06-06 18:00:43 +08:00
Hanu
6e71068f4f
Refractoring lownodeutilization - extracting common functions
2021-06-06 18:00:29 +08:00
James Ravn
e40620effa
Remove namespace from ClusterRoleBinding
...
It's not namespace scoped. This breaks some tools like kpt.
2021-06-04 11:04:14 +01:00
Kubernetes Prow Robot
d7dc0abd7b
Merge pull request #576 from a7i/amira/topology-spread-label-filter
...
Filter pods by labelSelector during eviction for TopologySpreadConstraint strategy
2021-06-01 23:38:37 -07:00
Amir Alavi
012ca2398f
Filter pods by labelSelector during eviction for TopologySpreadConstraint strategy
2021-06-01 15:42:23 -04:00
Amir Alavi
f07089d7b3
Bump Helm Chart, kind, and Kubernetes version for helm-test
2021-06-01 12:44:05 -04:00
Amir Alavi
a54b59f208
Use stable batch/v1 API Group for Kubernetes 1.21
2021-06-01 12:44:05 -04:00
Kubernetes Prow Robot
bfd5feaf60
Merge pull request #559 from RyanDevlin/nodeFit
...
Working nodeFit feature
2021-05-31 09:06:26 -07:00
RyanDevlin
41d46d0d3b
Working nodeFit feature
2021-05-24 09:03:38 -04:00
Aditya Purandare
646c13ae15
Fix grammar and indentation issue for deployment resource
2021-05-21 12:42:51 -07:00
Kubernetes Prow Robot
3b9d3d9719
Merge pull request #563 from ingvagabund/removeduplicates-take-taints-into-account-for-node-count
...
RemoveDuplicates: take node taints, node affinity and node selector into account when computing a number of feasible nodes for the average occurence of pods per node
2021-05-21 05:38:46 -07:00
Aditya Purandare
449383caa3
Add run descheduler as deployment files and update README
2021-05-20 17:04:05 -07:00
Kubernetes Prow Robot
31fd097c0a
Merge pull request #527 from pravarag/add-helm-test
...
Add helm test
2021-05-19 06:10:51 -07:00
Kubernetes Prow Robot
11143d5b2c
Merge pull request #570 from KohlsTechnology/bump-kind-version
...
Bump kind version
2021-05-19 05:40:51 -07:00
Sean Malloy
8480e03e9c
Fail unit and e2e tests on any errors
2021-05-19 00:35:16 -05:00
Sean Malloy
0397425010
Bump Kind To v0.11.0
...
This is required for running e2e tests for k8s v1.21.
2021-05-18 23:37:10 -05:00
Jan Chaloupka
5396282e3d
RemoveDuplicates: take node taints, node affinity and node selector into account when computing a number of feasible nodes for the average occurence of pods per node
...
Nodes with taints which are not tolerated by evicted pods will never run the
pods. The same holds for node affinity and node selector.
So increase the number of pods per feasible nodes to decrease the
number of evicted pods.
2021-05-18 16:13:24 +02:00
Kubernetes Prow Robot
a9ff644de6
Merge pull request #568 from BinacsLee/binacs-pkg-descheduler-descheduler_test-fix-errorhandling
...
Add verify script for govet & fix pkg/descheduler/descheduler_test.go
2021-05-17 08:18:23 -07:00
BinacsLee
fe8e17f72c
fix staticcheck failure for pkg/descheduler/descheduler_test.go
2021-05-17 23:07:12 +08:00
Kubernetes Prow Robot
a1709e9edd
Merge pull request #567 from a7i/topology-taint-toleration
...
RemovePodsViolatingTopologySpreadConstraint : Take node's taints into consideration when balancing domains
2021-05-14 12:41:58 -07:00
Amir Alavi
24c0ca2ef9
Take node's taints into consideration when balancing domains
2021-05-14 15:23:58 -04:00
Kubernetes Prow Robot
9b26abd538
Merge pull request #565 from damemi/issue-564
...
Add test cases for soft constraints/multi constraints
2021-05-12 19:14:24 -07:00
Mike Dame
fc83c13166
Add test cases for soft constraints/multi constraints
2021-05-12 08:36:07 -04:00
Kubernetes Prow Robot
9b69962053
Merge pull request #535 from ingvagabund/e2e-refactor
...
E2e refactor
2021-05-11 06:33:36 -07:00
Jan Chaloupka
4edbecc85d
Define NodeSelectorsEqual predicate
2021-05-09 18:08:32 +02:00
Jan Chaloupka
54f67266bb
Define TolerationsEqual
2021-05-09 18:08:27 +02:00
Donggeun Lee
4ba48b018c
Add tolerations to cronjob in helm chart
2021-05-04 19:56:08 +09:00
Kubernetes Prow Robot
2a3529c543
Merge pull request #560 from damemi/update-verify-messages
...
Update error messages in verify scripts to be more informative
2021-04-30 20:05:59 -07:00
Mike Dame
58408d710b
Update error messages in verify scripts to be more informative
2021-04-30 16:56:16 -04:00
Kubernetes Prow Robot
161f66a12f
Merge pull request #558 from KohlsTechnology/structured-logging
...
Use Structured Logging For Unknown Strategy Log Message
2021-04-28 23:28:50 -07:00
Sean Malloy
6bde95c9a1
Use Structured Logging For Unknown Strategy Log Message
...
Always use structured logging. Therefore update klog.Errorf() to instead
use klog.ErrorS().
Here is an example of the new log message.
E0428 23:58:57.048912 586 descheduler.go:145] "skipping strategy" err="unknown strategy name" strategy=ASDFPodLifeTime
2021-04-29 00:00:07 -05:00
Kubernetes Prow Robot
724ff8a188
Merge pull request #556 from damemi/change-main-loop
...
Invert main strategy loop for performance and customizability
2021-04-28 07:52:50 -07:00
Mike Dame
feae158a50
Invert main strategy loop for performance and customizability
2021-04-28 10:36:02 -04:00
Kubernetes Prow Robot
780ac7a51e
Merge pull request #554 from BinacsLee/binacs-utils-predicates-cleanup
...
code cleanup: remove check on length
2021-04-26 07:19:01 -07:00
BinacsLee
c4afb6bb30
code cleanup: remove check on length
2021-04-25 21:44:20 +08:00
Pravar Agrawal
8b5c4e805d
update docs with helm test info
2021-04-15 15:56:42 +05:30
Jan Chaloupka
f4e24a408f
Drop klog
2021-04-14 09:03:38 +02:00
Jan Chaloupka
2781106d49
TestEvictAnnotation: replace LowNodeUtilization strategy with PodLifetime
...
PodLifetime is simpler in validating results
2021-04-14 09:03:31 +02:00
Jan Chaloupka
534a30a058
e2e: deleteRC: replace loop with wait.PollImmediate
2021-04-14 09:03:26 +02:00
Jan Chaloupka
bb55741320
Update vendor
2021-04-14 09:03:21 +02:00
Jan Chaloupka
079bd6157b
e2e: TestLowNodeUtilization: normalize nodes before running the strategy
2021-04-14 09:03:15 +02:00
Pravar Agrawal
92cb1b23ed
add helm-test configurations
2021-04-14 10:29:31 +05:30
Kubernetes Prow Robot
832facc526
Merge pull request #537 from KohlsTechnology/docs-0.21.0
...
Update Docs and Manifests for v0.21.0
2021-04-13 08:24:52 -07:00
Kubernetes Prow Robot
c4fa6c472f
Merge pull request #548 from lx1036/feature/fix-testcase
...
Updating policy api version used in pod evictor
2021-04-13 08:12:50 -07:00
Xiang Liu
a848dac3cf
Updating policy api version used in pod evictor
2021-04-13 11:02:01 +08:00
Kubernetes Prow Robot
43a2ccf9c4
Merge pull request #546 from ingvagabund/add-diagram
...
Add diagram of strategies
2021-04-12 13:38:15 -07:00
Jan Chaloupka
60cf3aeb95
Add diagram of strategies
2021-04-12 09:51:54 +02:00
Kubernetes Prow Robot
84b174e841
Merge pull request #547 from KohlsTechnology/bump-1.21.0
...
Bump To k8s 1.21.0
2021-04-08 23:00:48 -07:00
Sean Malloy
40337d064d
Bump To k8s 1.21.0
2021-04-08 23:36:06 -05:00
Kubernetes Prow Robot
9fe585c854
Merge pull request #545 from pravarag/add-verify-script-deep-copies
...
Add verify script for deep-copies generator
2021-04-08 21:20:35 -07:00
Pravar Agrawal
4fce2ca2f1
add verify script for deep-copies gen
2021-04-08 22:51:24 +05:30
Kubernetes Prow Robot
4c11de0403
Merge pull request #507 from pravarag/add-verify-scripts
...
Add verify scripts for make gen to run during PR
2021-04-07 21:41:41 -07:00
Pravar Agrawal
a9099efc45
add verify scripts for conversions gen
...
Signed-off-by: Pravar Agrawal <pravaag1@in.ibm.com >
2021-04-08 09:56:32 +05:30
Kubernetes Prow Robot
6edb644f2e
Merge pull request #544 from ingvagabund/lnu-improve-node-usage-logging
...
LNU: improve nodeUsage logging
2021-04-06 23:45:53 -07:00
Jan Chaloupka
c239e1199f
LNU: improve nodeUsage logging
...
To avoid:
```
I0210 11:56:04.137956 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
I0210 11:56:04.138829 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
I0210 11:56:04.139044 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
```
2021-04-06 09:43:23 +02:00
Kubernetes Prow Robot
b713b7852a
Merge pull request #434 from ZongqiangZhang/extend-resources
...
Support extended resources in LowNodeUtilization
2021-04-06 00:21:34 -07:00
Kubernetes Prow Robot
5d07d0c8e2
Merge pull request #543 from gaurav1086/e2e_test_fix_goroutine_leak
...
e2e_test: fix goroutine leak
2021-04-05 18:11:19 -07:00
Gaurav Singh
7076ba0760
e2e_test: fix goroutine leak
2021-04-04 21:19:56 -04:00
ZongqiangZhang
81b816d4a4
support extended resources in lownodeutilization
2021-04-02 21:37:51 +08:00
Kubernetes Prow Robot
9ebc909c7f
Merge pull request #541 from KohlsTechnology/make-gen
...
Update Generated Code
2021-04-01 00:39:22 -07:00
Sean Malloy
af01b675b0
Update Generated Code
...
Ran "make gen" using Go 1.16.1. Some changes were merged, but "make gen"
was not run. This fixes the problem.
See below PR for reference:
https://github.com/kubernetes-sigs/descheduler/pull/523
2021-04-01 00:28:20 -05:00
Kubernetes Prow Robot
ce6ce5a058
Merge pull request #539 from damemi/1.21-rc.0
...
Bump to k8s 1.21-rc.0
2021-03-31 16:55:21 -07:00
Mike Dame
bd4f6d4fcd
Bump to k8s 1.21-rc.0
2021-03-31 10:22:56 -04:00
Sean Malloy
6a4181158a
Update Docs and Manifests for v0.21.0
...
* Added v0.21 references to README
* Update k8s manifests with v0.21.0 references
* Added table with list of supported architectures by release
2021-03-31 00:53:19 -05:00
Kubernetes Prow Robot
a2746d09e8
Merge pull request #523 from RyanDevlin/evict-critical
...
Added EvictSystemCriticalPods flag to descheduler
2021-03-30 10:41:57 -07:00
RyanDevlin
b5d7219391
Completed evictSystemCriticalPods feature
2021-03-29 23:13:05 -04:00
Kubernetes Prow Robot
b09d5d99dc
Merge pull request #534 from KohlsTechnology/kustomize-docs
...
Use Tags In Kustomize Documentation
2021-03-27 23:46:44 -07:00
Sean Malloy
dbcc20f37f
Use Tags In Kustomize Documentation
...
The master branch always represents the next release of the
descheduler. Therefore applying the descheduler k8s manifests
from the master branch is not considered stable. It is best for
users to install descheduler using the released tags.
2021-03-27 01:21:08 -05:00
Kubernetes Prow Robot
51340b56b8
Merge pull request #533 from ingvagabund/bump-to-go1.16
...
Bump go to 1.16
2021-03-26 23:20:43 -07:00
Jan Chaloupka
160669817e
Bump go to 1.16
2021-03-25 10:13:40 +01:00
Kubernetes Prow Robot
6ca4479892
Merge pull request #520 from KohlsTechnology/statefulset-docs
...
Document That Descheduler Considers StatefulSets For Eviction
2021-03-23 08:15:36 -07:00
Sean Malloy
92740a25d4
Add Initial Unit Tests For StatefulSets
2021-03-23 09:24:08 -05:00
Sean Malloy
56e4daccaf
Document That Descheduler Considers StatefulSets For Eviction
...
Similar to ReplicaSet, ReplicationController, and Jobs pods with a
StatefulSet metadata.ownerReference are considered for eviction.
Document this, so that it is clear to end users.
2021-03-23 09:24:08 -05:00
Kubernetes Prow Robot
b546832b66
Merge pull request #526 from KohlsTechnology/chart-docs-fix
...
Correct Helm Chart Docs For Container Requests and Limits
2021-03-15 08:59:05 -07:00
Kubernetes Prow Robot
39e5b34af3
Merge pull request #525 from damemi/topology-spread-selector-fix
...
(TopologySpread) Evict pods with selectors that match multiple nodes
2021-03-14 01:35:04 -08:00
Sean Malloy
e699e08d13
Correct Helm Chart Docs For Container Requests and Limits
...
The resources.cpuRequest and resources.memoryRequest varialbes are
not valid in the helm chart values.yaml file. The correct varialbe
name for setting the requests and limits is resources.
Also, fixed white space alignment in the markdown table.
2021-03-12 23:17:02 -06:00
Mike Dame
af26b57e5e
(TopologySpread) Evict pods with selectors that match multiple nodes
2021-03-12 13:41:17 -05:00
Kubernetes Prow Robot
22fe589ae6
Merge pull request #508 from KohlsTechnology/emeritus-approvers
...
Move Inactive Maintainers to Emeritus Status
2021-03-12 09:06:18 -08:00
Kubernetes Prow Robot
0a11b5a138
Merge pull request #521 from KohlsTechnology/armv7
...
Enable ARM32v7 Container Image Builds
2021-03-09 17:07:13 -08:00
Sean Malloy
363f02710b
Enable ARM32v7 Container Image Builds
...
Add ARM32v7 in addition to the currently supported architectures. This
will allow running descheduler on Raspberry Pi v3 devices.
2021-03-09 09:03:58 -06:00
Kubernetes Prow Robot
6abfa232e7
Merge pull request #518 from damemi/sigs-k8s-mdtoc
...
Add table of contents generator/verify script
2021-03-08 12:06:59 -08:00
Mike Dame
bbfb12a120
Run hack/update-toc.sh
2021-03-08 14:39:08 -05:00
Mike Dame
5df2a0c516
Add hack scripts and makefile targets
2021-03-08 14:39:08 -05:00
Mike Dame
8ecd14289a
Add <toc> markers to README
2021-03-08 10:51:55 -05:00
Mike Dame
131ed42a4c
Add sigs.k8s.io/mdtoc dependency
2021-03-08 10:46:27 -05:00
Kubernetes Prow Robot
6b8d4cd5a7
Merge pull request #517 from lixiang233/fix_topology_log
...
Correct log in topology spread strategy
2021-03-07 11:31:42 -08:00
Kubernetes Prow Robot
24a06511a2
Merge pull request #505 from ingvagabund/collect-metrics
...
Collect metrics
2021-03-06 21:41:42 -08:00
lixiang
09c7d1be0a
Correct log in topology spread strategy
2021-03-06 16:21:46 +08:00
Kubernetes Prow Robot
f5666882de
Merge pull request #515 from damemi/clarify-pod-percentage-readme
...
Clarify resource percentage calculation in README
2021-03-05 07:36:22 -08:00
Jan Chaloupka
701f22404b
Serve secure metrics at 10258
2021-03-05 16:35:45 +01:00
Mike Dame
d5fa60bdd5
Clarify resource percentage calculation in README
2021-03-05 09:34:04 -05:00
Kubernetes Prow Robot
9e14f733b7
Merge pull request #510 from lixiang233/Ft_filter_by_label
...
Filter pods by labelSelector
2021-03-05 01:14:22 -08:00
lixiang
29ade13ce7
README and e2e-testcase add for labelSelector
2021-03-04 21:32:14 +08:00
lixiang
03518badb8
Strategies: Add labelSelector to all strategies except LowNodeUtilization, RemoveDuplicates and RemovePodsViolatingTopologySpreadConstraint.
2021-03-04 21:30:50 +08:00
Jan Chaloupka
24458fb0ca
Increase pods_evicted metric
2021-03-03 16:15:21 +01:00
Jan Chaloupka
1c5b32763b
Register metrics
...
New metrics:
- build_info: Build info about descheduler, including Go version, Descheduler version, Git SHA, Git branch
- pods_evicted: Number of successfully evicted pods, by the result, by the strategy, by the namespace
2021-03-03 16:15:09 +01:00
Jan Chaloupka
3bd031bbb3
Move build's versioning bits under pkg/version
2021-03-03 15:56:53 +01:00
Jan Chaloupka
ea6e9f22b9
Vendor metrics
2021-03-03 15:56:48 +01:00
Kubernetes Prow Robot
73309a3948
Merge pull request #490 from damemi/logging-format-default
...
Add default logging-format value
2021-03-03 06:49:20 -08:00
Kubernetes Prow Robot
105313a0e3
Merge pull request #512 from ingvagabund/bump-gogo-protobuf-to-1.3.2
...
Bump github.com/gogo/protobuf to v1.3.2
2021-03-02 07:05:19 -08:00
Jan Chaloupka
d368cbed32
Bump github.com/gogo/protobuf to v1.3.2
...
Fixes https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3121
2021-03-02 14:48:32 +01:00
Sean Malloy
5f4dfbc922
Update Maintainer Field in Dockerfiles
...
Set the maintainer field to use the more generic SIG scheduling name and
email address.
2021-03-01 23:19:42 -06:00
Sean Malloy
967911e4c1
Move Inactive Maintainers to Emeritus Status
...
For roughly the past year damemi has been the only active approver for
the descheduler. Therefore move the inactive approvers to emeritus
status. This will help clarify to contributors who should be assigned to
pull requests.
2021-03-01 09:23:49 -06:00
Kubernetes Prow Robot
726091712d
Merge pull request #509 from KohlsTechnology/update-reviwers
...
Add lixiang233 As A Reviewer
2021-03-01 06:45:25 -08:00
lixiang
854afa7c73
PodsListing: Add WithLabelSelector option.
2021-03-01 11:13:44 +08:00
lixiang
2517268b1f
API: Add a new parameter labelSelector to StrategyParameters.
2021-02-26 15:49:00 +08:00
Sean Malloy
fea8beabab
Add lixiang233 As A Reviewer
2021-02-25 22:03:50 -06:00
Kubernetes Prow Robot
7f9c95fa16
Merge pull request #506 from KohlsTechnology/kind-0.10.0
...
Update e2e tests to use kind v0.10.0
2021-02-25 07:29:27 -08:00
Sean Malloy
6f7e2a271e
Update e2e tests to use kind v0.10.0
2021-02-25 00:17:06 -06:00
Kubernetes Prow Robot
217ebdfa73
Merge pull request #504 from lixiang233/Fix_lowNodeUtilization_log
...
Log and README optimization for LowNodeUtilization
2021-02-24 05:22:50 -08:00
lixiang
e014fda58e
Log and README optimization for LowNodeUtilization
2021-02-24 09:17:07 +08:00
Kubernetes Prow Robot
6d0360fd16
Merge pull request #502 from damemi/node-affinity-totalevicted
...
Move 'total pods evicted' log message to main loop
2021-02-19 13:45:41 -08:00
Mike Dame
01a87b6143
Move 'total pods evicted' log message to main loop
2021-02-19 10:37:43 -05:00
Kubernetes Prow Robot
f3e871492c
Merge pull request #499 from KohlsTechnology/go-1.15.8
...
Bump To Go 1.15.8
2021-02-18 05:52:57 -08:00
Kubernetes Prow Robot
bf8d744686
Merge pull request #498 from kristinnardal2/patch-1
...
Fix indentation in values.yaml
2021-02-18 05:52:51 -08:00
Kubernetes Prow Robot
477d12968e
Merge pull request #496 from KohlsTechnology/nonroot-helm-chart
...
Update Helm Chart to run as non-root
2021-02-18 00:34:51 -08:00
Sean Malloy
dcb4136a96
Bump To Go 1.15.8
...
The main k/k repo was updated to Go 1.15.8 for the upcoming k8s v1.21.0
release. See below PR for reference.
https://github.com/kubernetes/release/issues/1895
2021-02-18 00:00:31 -06:00
Kristinn Björgvin Árdal
2c0afafccf
Fix indentation in values.yaml
...
A couple of lines had an extra whitespace.
2021-02-17 08:51:26 +01:00
Kubernetes Prow Robot
e56617253f
Merge pull request #497 from ingvagabund/resourceUsagePercentages-unit-test
...
LowNodeUtilization: unit test resourceUsagePercentages to validate percentages are computed correctly
2021-02-11 20:26:48 -08:00
Jan Chaloupka
500aaea4dd
LowNodeUtilization: unit test resourceUsagePercentages to validate percentages are computed correctly
2021-02-11 16:04:37 +01:00
Sean Malloy
4444811f26
Update Helm Chart to run as non-root
2021-02-10 21:49:01 -06:00
Kubernetes Prow Robot
b63c6fac27
Merge pull request #495 from KohlsTechnology/nonroot
...
Update Job and CronJob YAML to run as non-root
2021-02-10 08:22:59 -08:00
Sean Malloy
dfc76906d4
Update Job and CronJob YAML to run as non-root
2021-02-09 23:10:18 -06:00
Kubernetes Prow Robot
fbd17d4caf
Merge pull request #480 from damemi/nodeselector-cronjob
...
Add nodeSelector to cronJob helm chart
2021-02-09 10:32:59 -08:00
Mike Dame
9c01589fb9
Add nodeSelector to cronJob helm chart
2021-02-09 13:27:26 -05:00
Kubernetes Prow Robot
a0942afaa1
Merge pull request #493 from fancc/resource_usage_percentage
...
Modify resourceUsage.Value() to resourceUsage.MilliValue()
2021-02-02 03:38:28 -08:00
范成城
16fa21a4a6
change resourceUsagePercentage func
2021-01-31 20:46:46 +08:00
Kubernetes Prow Robot
241f1325c9
Merge pull request #481 from damemi/ignore-pvc-pods
...
Add option to ignore pods with PVCs from eviction
2021-01-26 22:41:40 -08:00
Mike Dame
c1a63a557a
Add option to ignore pods with PVCs from eviction
2021-01-26 08:47:54 -05:00
Mike Dame
e45e21368a
Add default logging-format value
2021-01-25 14:19:58 -05:00
Kubernetes Prow Robot
f24b367479
Merge pull request #474 from lixiang233/Ft_include_soft_constraints
...
Add a parameter to include soft topology spread constraints
2021-01-21 09:21:06 -08:00
lixiang
8ba9cb1df7
Add a parameter to include soft topology spread constraints
2021-01-21 11:33:16 +08:00
Kubernetes Prow Robot
d502f05910
Merge pull request #484 from damemi/topology-spread-bug
...
Fix TopologySpread bug that evicts non-evictable pods
2021-01-12 17:26:36 -08:00
Mike Dame
241f47d947
Fix TopologySpread bug that evicts non-evictable pods
2021-01-12 15:25:55 -05:00
Kubernetes Prow Robot
19424f4119
Merge pull request #482 from damemi/fix-logging-gen
...
Add Logging field to v1alpha1 componentconfig
2021-01-11 09:44:25 -08:00
Mike Dame
635a40f305
Add Logging field to v1alpha1 componentconfig
2021-01-11 11:21:32 -05:00
Kubernetes Prow Robot
1804d2e3a2
Merge pull request #478 from ryuichi1208/master
...
Update README.md
2021-01-10 11:43:05 -08:00
Ryuichi Watanabe
fea4870243
Update README.md
2021-01-01 18:45:00 +09:00
Kubernetes Prow Robot
f54df67d11
Merge pull request #471 from Mathew857/master
...
refactor: remove unused code
2020-12-15 17:20:20 -08:00
wu.chaozong
1a998037f8
refactor: remove unuse param in e2e_test.go
2020-12-16 08:46:40 +08:00
wu.chaozong
c481877c03
refactor: update node_test file
2020-12-15 21:15:33 +08:00
Kubernetes Prow Robot
67df39690b
Merge pull request #468 from eatwithforks/jylee/user
...
Run as user 1000 so pod can be runAsNonRoot for security purposes
2020-12-14 06:43:28 -08:00
wu.chaozong
674f14da78
refactor: remove unused code
2020-12-13 00:09:07 +08:00
Jye Lee
0cfbdf642b
Run as user 1000 so pod can be runAsNonRoot for security purposes
2020-12-10 09:37:49 -08:00
Kubernetes Prow Robot
c86d1c7eb2
Merge pull request #463 from ingvagabund/duplicates-uniformly
...
RemoveDuplicatePods: evict uniformly
2020-12-10 07:14:13 -08:00
Jan Chaloupka
f67c265533
RemoveDuplicatePods: evict uniformly
2020-12-10 15:33:04 +01:00
Kubernetes Prow Robot
969921640c
Merge pull request #465 from damemi/skip-balanced-topology
...
Skip topology calculations if domains are already balanced
2020-12-09 19:48:53 -08:00
Mike Dame
0273fd7597
Skip topology calculations if domains are already balanced
2020-12-09 11:29:59 -05:00
Kubernetes Prow Robot
e84d0c5587
Merge pull request #464 from damemi/1.20-bump
...
Bump to v0.20.0
2020-12-09 07:12:50 -08:00
Kubernetes Prow Robot
5267ec407c
Merge pull request #462 from KohlsTechnology/docs-v0.20.0
...
Update Docs and Manifests for v0.20.0
2020-12-09 07:04:50 -08:00
Mike Dame
6714d8e0b7
Bump to v0.20.0
2020-12-09 09:53:03 -05:00
Sean Malloy
b3439eab41
Update Docs and Manifests for v0.20.0
...
* Added v0.20 references to README
* Update k8s manifests with v0.20.0 references
2020-12-09 00:10:50 -06:00
Kubernetes Prow Robot
509118587a
Merge pull request #453 from dieterdemeyer/master
...
Allow setting options successfulJobsHistoryLimit and failedJobsHistoryLimit for cronjob
2020-12-08 14:33:33 -08:00
Kubernetes Prow Robot
f482537dff
Merge pull request #455 from AmoVanB/fix/cluster-role-tsc
...
Helm: allow the topologySpreadConstraint strategy to list namespaces
2020-12-08 11:17:35 -08:00
Amaury Van Bemten
0f95817746
add permission to list namespaces for the topologyspread constraint strategy
2020-12-08 17:11:34 +01:00
Kubernetes Prow Robot
70d1fadae7
Merge pull request #454 from damemi/topology-spread-nsfix
...
Fix broken namespace logic in TopologySpreadConstraint
2020-12-04 09:34:00 -08:00
Mike Dame
499beb2fd7
Fix broken namespace logic in TopologySpreadConstraint
2020-12-04 10:49:58 -05:00
Kubernetes Prow Robot
de24f3854b
Merge pull request #449 from KohlsTechnology/arm-image
...
Enable Multi-Arch Container Image Builds
2020-12-03 17:55:25 -08:00
Kubernetes Prow Robot
a5e8ba1a70
Merge pull request #452 from KohlsTechnology/go-1.15.5
...
Bump To Go 1.15.5
2020-12-03 06:21:00 -08:00
Dieter De Meyer
45ad48042f
Allow setting options successfulJobsHistoryLimit and failedJobsHistoryLimit for cronjob
2020-12-03 11:56:44 +01:00
Sean Malloy
550de966c7
Bump To Go 1.15.5
...
The main k/k repo as updated to Go 1.15.5 for the upcoming k8s v1.20.0
release. See below PR for reference.
https://github.com/kubernetes/kubernetes/pull/95776
2020-12-03 01:16:42 -06:00
Kubernetes Prow Robot
c94342db31
Merge pull request #451 from damemi/v0.20.0-rc.0
...
bump k8s dependencies to 1.20-rc.0
2020-12-02 23:13:00 -08:00
Sean Malloy
94f1c7dd8d
Document Multi-Arch Container Image Usage
2020-12-03 00:44:19 -06:00
Sean Malloy
bf91e6790e
Enable Multi-Arch Container Image Builds
...
Previous to this change official descheduler container images only
supported the AMD64 hardware architecture. This change enables
building official descheduler container images for multiple
architectures.
The initially supported architectures are AMD64 and ARM64.
2020-12-03 00:06:22 -06:00
Mike Dame
251f44e568
bump(*): k8s to 1.20-rc.0
2020-12-02 14:40:50 -05:00
Kubernetes Prow Robot
922c4f6a63
Merge pull request #448 from damemi/topology-spread-logging
...
Add more topology spread logs
2020-12-01 15:10:50 -08:00
Mike Dame
2b5ec01381
Add more topology spread logs
2020-12-01 17:02:46 -05:00
Kubernetes Prow Robot
7bcd562ff5
Merge pull request #444 from KohlsTechnology/issue-432-cronjob
...
Update Helm Chart To Allow Setting startingDeadlineSeconds
2020-11-24 12:10:40 -08:00
Sean Malloy
03852d0914
Update Helm Chart To Allow Setting startingDeadlineSeconds
...
Allow end users to optionally set the descheduler CronJob
.spec.startingDeadlineSeconds when installing using helm.
2020-11-24 10:58:16 -06:00
Kubernetes Prow Robot
5f1e9a97c4
Merge pull request #446 from ingvagabund/low-node-util-percentages-times-100
...
LowNodeUtilization: express usagePercentage multiplied by 100
2020-11-24 08:13:02 -08:00
Jan Chaloupka
cd6f2cd4cb
LowNodeUtilization: express usagePercentage multiplied by 100
...
Entry params are in interval <0; 100>. Have logs respect that as well.
2020-11-24 14:48:48 +01:00
Kubernetes Prow Robot
e679c7fabc
Merge pull request #442 from KohlsTechnology/issue-432
...
Set Container Resources In YAML Manifests
2020-11-23 08:49:34 -08:00
Kubernetes Prow Robot
6f5918d765
Merge pull request #443 from KohlsTechnology/issue-432-helm
...
Set Container Resources In Helm Chart
2020-11-23 07:47:33 -08:00
Sean Malloy
5a46ba0630
Set Container Resources In Helm Chart
...
Prior to this commit the helm chart used to install the descheduler
CronJob did not set container requests or limits. This is considered
an anti-pattern when deploying applications on k8s.
Set descheduler container resources to make it a burstable pod. This
will ensure a high quality experience for end users when deploying
descheduler into their clusters using the instructions from the README.
The default values choosen for CPU/Memory are not based on any real data.
2020-11-23 09:12:54 -06:00
Kubernetes Prow Robot
c1323719f4
Merge pull request #427 from KohlsTechnology/fix-version-output
...
Fix Version Output For Automated Container Builds
2020-11-21 03:19:33 -08:00
Sean Malloy
8795fe6b90
Fix Version Output For Automated Container Builds
...
Prior to this change the output from the command "descheduler version"
when run using the official container images from k8s.gcr.io would
always output an empty string. See below for an example.
```
docker run k8s.gcr.io/descheduler/descheduler:v0.19.0 /bin/descheduler version
Descheduler version {Major: Minor: GitCommit: GitVersion: BuildDate:2020-09-01T16:43:23+0000 GoVersion:go1.15 Compiler:gc Platform:linux/amd64}
```
This change makes it possible to pass the descheduler version
information to the automated container image build process and
also makes it work for local builds too.
2020-11-20 23:25:22 -06:00
Sean Malloy
a3f8bb0369
Set Container Resources In YAML Manifests
...
Prior to this commit the YAML manifests used to install the descheduler
Job and CronJob did not set container requests or limits. This is
considered an anti-pattern when deploying applications on k8s.
Set descheduler container resources to make it a burstable pod. This
will ensure a high quality experience for end users when deploying
descheduler into their clusters using the instructions from the README.
The values choosen for CPU/Memory are not based on any real data.
2020-11-20 12:55:10 -06:00
Kubernetes Prow Robot
cd3c3bf4da
Merge pull request #441 from ingvagabund/low-node-util-dump-node-usage-in-percentage
...
LowNodeUtilization: show node usage in percentage as well
2020-11-18 08:44:06 -08:00
Jan Chaloupka
652ee87bf5
LowNodeUtilization: show node usage in percentage as well
2020-11-18 14:50:53 +01:00
Kubernetes Prow Robot
5225ec4597
Merge pull request #436 from stevehipwell/helm-chart-rename
...
Rename Helm chart
2020-11-17 22:42:05 -08:00
Kubernetes Prow Robot
b2af720ddb
Merge pull request #438 from lixiang233/add_missing_parameter
...
Add missing parameter in README
2020-11-17 20:24:04 -08:00
lixiang
94f07996f7
add missing parameter in README
2020-11-17 16:10:02 +08:00
Kubernetes Prow Robot
4839d5f369
Merge pull request #413 from damemi/podtopologyspread
...
Add PodTopologySpread strategy
2020-11-13 10:41:05 -08:00
Steve Hipwell
022e07c278
Rename helm chart
2020-11-09 10:21:48 +00:00
Kubernetes Prow Robot
620d71abdf
Merge pull request #433 from ankon/patch-1
...
Fix trivial typo in helm README
2020-11-03 08:50:04 -08:00
Andreas Kohn
85d00ab457
Fix trivial typo in helm README
2020-11-03 13:10:37 +01:00
Kubernetes Prow Robot
b30bd40860
Merge pull request #428 from damemi/component-helper-nodeselector
...
Start using helpers from k8s.io/component-helpers
2020-11-02 04:52:54 -08:00
Mayank Kumar
4108362158
Add RemovePodsViolatingTopologySpreadConstraint strategy
...
This adds a strategy to balance pod topology domains based on the scheduler's
PodTopologySpread constraints. It attempts to find the minimum number of pods
that should be sent for eviction by comparing the largest domains in a topology
with the smallest domains in that topology.
2020-10-30 16:36:33 -04:00
Mike Dame
b27dc5f14e
go mod tidy && go mod vendor
2020-10-30 09:41:49 -04:00
Mike Dame
3c54378749
Use NodeSelectorRequirementsAsSelector from k8s.io/component-helpers
2020-10-30 09:41:49 -04:00
Kubernetes Prow Robot
6240aa68f7
Merge pull request #430 from damemi/verify-spelling
...
Add hack/verify-spelling.sh script and Makefile target
2020-10-22 08:27:36 -07:00
Mike Dame
301af7fd9c
Add hack/verify-spelling.sh script and Makefile target
2020-10-22 10:20:53 -04:00
Kubernetes Prow Robot
41d529ebe2
Merge pull request #429 from invidian/invidian/fix-typo
...
pkg/descheduler/strategies: fix typo
2020-10-22 06:59:36 -07:00
Mateusz Gozdek
cc6bb633ba
pkg/descheduler/pod: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:55 +02:00
Mateusz Gozdek
31cf70c34c
pkg/descheduler/strategies: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:24 +02:00
Kubernetes Prow Robot
3399619395
Merge pull request #418 from invidian/psp
...
charts/descheduler: add PodSecurityPolicy support
2020-10-21 23:17:35 -07:00
Kubernetes Prow Robot
cfc4cce08b
Merge pull request #421 from m3y/kustomize
...
Support for remote resources in kustomize
2020-10-21 01:02:20 -07:00
Mateusz Gozdek
f9e9f0654a
charts/descheduler: add PodSecurityPolicy support
...
This commit adds restrictive PodSecurityPolicy, which can be
optionally created, so descheduler can be deployed on clusters with
PodSecurityPolicy admission controller, but which do not ship default
policies.
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-21 08:41:39 +02:00
m3y
73af0e84fa
Support for remote resources in kustomize
2020-10-20 03:20:11 +09:00
Kubernetes Prow Robot
b33928ac91
Merge pull request #412 from farah/logging-format
...
Add logging-format flag
2020-10-12 10:58:48 -07:00
Ali Farah
3ac0c408de
Add --logging-format flag
...
Add k8s.io/component-base/config package
2020-10-12 22:27:39 +11:00
Kubernetes Prow Robot
149f900811
Merge pull request #417 from plutzilla/master
...
Helm chart README fix
2020-10-07 22:46:15 -07:00
Paulius Leščinskas
9ede04ba9b
Update README.md
...
`kube-system` namespace provided in the installation instruction.
2020-10-02 20:07:24 +03:00
Paulius Leščinskas
f9cbed8b71
Helm chart README fix
...
Helm 3 omits `--name` flag for release name.
2020-10-02 18:11:06 +03:00
Kubernetes Prow Robot
fa4da031e4
Merge pull request #416 from KohlsTechnology/go-1.15.2
...
Bump To Go 1.15.2
2020-10-02 07:09:20 -07:00
Sean Malloy
9511f308d0
Bump To Go 1.15.2
2020-10-02 01:02:36 -05:00
Kubernetes Prow Robot
52f43f0fcb
Merge pull request #414 from KohlsTechnology/event-recorder-structured-logs
...
Update Event Logging to Use Structured Logging
2020-10-01 14:25:19 -07:00
Sean Malloy
4bb0ceeed5
Update Event Logging to Use Structured Logging
2020-10-01 00:50:37 -05:00
Kubernetes Prow Robot
279f648e9a
Merge pull request #410 from lixiang233/Add_lowNodeUtilization_usecase
...
Add use case for lowNodeUtilization
2020-09-28 20:57:25 -07:00
Kubernetes Prow Robot
411ec740ff
Merge pull request #411 from KohlsTechnology/klogv2
...
Convert Last Log Message To Structured Logging
2020-09-28 06:14:48 -07:00
Sean Malloy
6237ba5a43
Convert Last Log Message To Structured Logging
...
The k8s.io/klog/v2 package does not currently support structured logging
for warning level log messages. Therefore update the one call in the
code base using klog.Warningf to instead use klog.InfoS.
2020-09-25 22:58:28 -05:00
Kubernetes Prow Robot
5d65a9ad68
Merge pull request #409 from ingvagabund/flip-some-klog-info-to-error
...
Change klog info messages after a strategy is exited into error messages
2020-09-25 20:34:47 -07:00
Kubernetes Prow Robot
28f3f867c3
Merge pull request #407 from ingvagabund/structured-klog
...
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-24 04:22:05 -07:00
lixiang
00f79aa28d
add use case for lowNodeUtilization
2020-09-24 17:51:08 +08:00
lixiang
6042d717e9
delete disabled strategies in podLifeTime use case
2020-09-24 17:49:02 +08:00
Jan Chaloupka
7afa54519f
Change klog info messages after a strategy is exited into error messages
2020-09-24 11:07:20 +02:00
Kubernetes Prow Robot
8c3a80fbf9
Merge pull request #406 from damemi/duplicates-namespace-filtering
...
Add Namespace filtering to RemoveDuplicates strategy
2020-09-22 18:16:08 -07:00
Mike Dame
11b9829885
Update README to include strategy params
2020-09-22 10:28:43 -04:00
Jan Chaloupka
4798559545
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-21 09:08:11 +02:00
Mike Dame
8b34d6eb94
Add Namespace filtering to RemoveDuplicates strategy
2020-09-18 12:17:47 -04:00
Kubernetes Prow Robot
70700a1c97
Merge pull request #401 from KohlsTechnology/bump-kind
...
Update e2e tests to use kind v0.9.0
2020-09-15 09:58:07 -07:00
Sean Malloy
d7420eb945
Update e2e tests to use kind v0.9.0
2020-09-15 09:11:36 -05:00
Kubernetes Prow Robot
c9cfeb35c2
Merge pull request #384 from ingvagabund/refactor-low-node-utilization
...
Refactor low node utilization
2020-09-13 19:04:58 -07:00
Kubernetes Prow Robot
fda63a816f
Merge pull request #397 from farah/farah/add-structured-logging
...
Convert logs to use structured logs
2020-09-13 18:46:57 -07:00
Ali Farah
6329b6c27b
Convert logs to use structured logs
2020-09-12 14:46:16 +10:00
Jan Chaloupka
9b4f781c5c
Be verbose about unschedulable nodes which are not considered as underutilized
2020-09-11 12:57:24 +02:00
Jan Chaloupka
63039fcfd6
Compute utilization absolutely, not relatively
2020-09-11 12:57:22 +02:00
Kubernetes Prow Robot
d25f3757d6
Merge pull request #393 from lixiang233/Ft_custom_pod_phase_PodLifeTime
...
PodLifeTime: allow custom podStatusPhases
2020-09-11 03:46:14 -07:00
lixiang
1303fe6eb9
PodLifeTime: allow custom podStatusPhases
2020-09-11 09:56:45 +08:00
Kubernetes Prow Robot
1682cc9462
Merge pull request #394 from farah/farah/add-structured-logging
...
Convert logs to use structured logging
2020-09-09 10:15:08 -07:00
Kubernetes Prow Robot
605927676f
Merge pull request #395 from damemi/antiaffinity-evictable
...
Move IsEvictable check in PodAntiAffinity
2020-09-09 07:45:52 -07:00
Jan Chaloupka
dc41e6a41c
Remove createNodePodsMap
2020-09-09 16:29:11 +02:00
Ali Farah
e37c27313e
Convert logs to use structured logging
2020-09-10 00:22:24 +10:00
Mike Dame
e5d9756ebe
Move IsEvictable check in PodAntiAffinity
...
While non-evictable pods should never be evicted, they should still be
considered when calculating PodAntiAffinity violations. For example, you
may have an evictable pod that should not be running next to a system-critical
static pod. We currently filter IsEvictable before checking for Affinity violations,
so this case would not be caught.
2020-09-09 09:46:50 -04:00
Kubernetes Prow Robot
e6f1c6f78a
Merge pull request #392 from KohlsTechnology/helm-hub
...
Add Link To Helm Hub
2020-09-03 06:59:41 -07:00
Sean Malloy
fceebded6d
Add Link To Helm Hub
...
Updated the README with the link to the official descheduler helm chart
on https://hub.helm.sh . This makes it easier for end users to install the
desceduler using helm.
2020-09-02 23:55:27 -05:00
Kubernetes Prow Robot
08b2dffa42
Merge pull request #376 from farah/farah/add-structured-logging
...
Change klog to use structured logging
2020-09-02 09:49:06 -07:00
Kubernetes Prow Robot
745e29959c
Merge pull request #388 from damemi/helm-chart-1.19
...
Update Helm chart to v0.19.0
2020-09-01 09:41:53 -07:00
Kubernetes Prow Robot
aa1bab2c4a
Merge pull request #389 from KohlsTechnology/docs-0.19
...
Update Docs and Manifests for v0.19.0
2020-08-31 12:59:50 -07:00
Sean Malloy
19c3e02b44
Update Docs and Manifests for v0.19.0
...
* Added v0.19 references to README
* Update k8s manifests with v0.19.0 references
2020-08-31 14:41:53 -05:00
Mike Dame
a45057200f
Update Helm chart to v0.19.0
2020-08-31 15:39:26 -04:00
Kubernetes Prow Robot
74d6be3943
Merge pull request #371 from KohlsTechnology/go-1.15
...
Update To Go 1.15.0
2020-08-31 12:22:43 -07:00
Sean Malloy
1fb3445692
Fix golangci-lint Failures For 1.30.0 Upgrade
2020-08-31 14:03:43 -05:00
Sean Malloy
195082d33b
Update To Go 1.15.0
...
As part of the k8s 1.19 release cycle the Go version is being bumped to
1.15.0. Updating the descheduler to use Go 1.15 prior to the descheduler
v0.19.0 release.
See below issues for reference:
* https://github.com/kubernetes/release/issues/1421
* https://github.com/kubernetes/kubernetes/issues/93484
2020-08-31 14:03:43 -05:00
Kubernetes Prow Robot
03dbc93961
Merge pull request #385 from ingvagabund/low-node-utilization-use-clientset-in-testing
...
LowNodeUtilization: use clientset in testing, drop all custom reactors
2020-08-31 11:48:44 -07:00
Jan Chaloupka
d27f64480b
LowNodeUtilization: use clientset in testing, drop all custom reactors
2020-08-31 20:38:01 +02:00
Kubernetes Prow Robot
5645663b71
Merge pull request #387 from KohlsTechnology/contrib-docs
...
Add KUBECONFIG Export To Contributing Docs
2020-08-31 06:34:28 -07:00
Kubernetes Prow Robot
dbc8092282
Merge pull request #386 from KohlsTechnology/bump-1.19
...
Bump k8s Modules For k8s 1.19
2020-08-31 06:34:20 -07:00
Ali Farah
50d2b246d9
Change klog to use structured logging
...
Signed-off-by: Ali Farah <aliyfarah9@gmail.com >
2020-08-31 14:30:08 +10:00
Sean Malloy
6220aca03e
Add KUBECONFIG Export To Contributing Docs
2020-08-28 00:24:29 -05:00
Sean Malloy
674993d23a
Update Vendor Deps For k8s 1.19
2020-08-27 23:49:48 -05:00
Sean Malloy
f4c3f9b18f
Bump k8s Modules For k8s 1.19
2020-08-27 23:48:58 -05:00
Kubernetes Prow Robot
d65a7c4783
Merge pull request #380 from ingvagabund/move-some-flags-under-descheduler-polic
...
Deprecate node-selector, max-pods-to-evict-per-node and evict-local-storage-pods flags and promote then to policy v1alpha1 fields
2020-08-21 05:15:39 -07:00
Jan Chaloupka
89541f7545
Deprecate node-selector, max-pods-to-evict-per-node and evict-local-storage-pods flags and promote then to policy v1alpha1 fields
2020-08-21 13:27:40 +02:00
Kubernetes Prow Robot
17f769c1c1
Merge pull request #382 from damemi/readme-toc
...
Add table of contents to README
2020-08-20 12:36:51 -07:00
Mike Dame
eb9e62f047
Add table of contents to README
2020-08-20 15:24:41 -04:00
Kubernetes Prow Robot
6ccd80f2ee
Merge pull request #372 from ingvagabund/isevictable
...
Redefine IsEvictable to be customizable for a particular strategy
2020-08-19 02:53:11 -07:00
Jan Chaloupka
d8251b9086
Redefine IsEvictable to be customizable for a particular strategy
...
Use WithXXX methods to extend the list of constraints to also
provide a reasonable error message.
2020-08-19 11:21:26 +02:00
Kubernetes Prow Robot
4cd1f45d90
Merge pull request #375 from KohlsTechnology/helm-chart-update
...
Update Maintainer Details In Helm Chart
2020-08-17 06:42:19 -07:00
Sean Malloy
2dc3f53a13
Update Maintainer Details In Helm Chart
...
Changing the maintainer for the helm chart to SIG scheduling instead of
an individual person.
2020-08-13 22:15:18 -05:00
Kubernetes Prow Robot
f5d8a02f79
Merge pull request #374 from ingvagabund/namespace-as-pointer
...
Promote Namespaces field to a pointer
2020-08-13 19:04:21 -07:00
Jan Chaloupka
a7c51ffae0
Promote Namespaces field to a pointer
2020-08-13 18:38:46 +02:00
Kubernetes Prow Robot
9746fd300f
Merge pull request #364 from lixiang233/ft_allow_custom_priority_threshold
...
Allow custom priority threshold
2020-08-12 07:35:45 -07:00
lixiang
b5e17f91cd
ClusterRole: add permission to access priorityclasses.scheduling.k8s.io
2020-08-12 13:55:53 +08:00
lixiang
f5524153ba
README: add description for priority threshold
2020-08-12 13:55:53 +08:00
lixiang
6d693d06fb
e2e: add testcase for priority threshold
2020-08-12 13:55:53 +08:00
lixiang
4d7a6ee9be
e2e: Add priority and priority class to runPodLifetimeStrategy and RcByNameContainer
2020-08-12 13:55:53 +08:00
lixiang
0fdaac6042
Strategy: Set threshold priority from strategy's parameters
2020-08-12 13:54:57 +08:00
Kubernetes Prow Robot
bb7ab369d7
Merge pull request #370 from damemi/1.19-rc.4
...
Bump k8s dependencies to 1.19-rc.4
2020-08-11 06:42:16 -07:00
Mike Dame
d96cca2221
go mod tidy && go mod vendor
2020-08-11 09:32:00 -04:00
Mike Dame
6ee87d9d7c
Bump(k8s.io): to 1.19-rc.4
2020-08-11 09:31:43 -04:00
lixiang
95ce2a4ff7
PodEvictor: add a new param thresholdPriority to IsEvictable
2020-08-11 09:57:26 +08:00
Kubernetes Prow Robot
19e1387bf1
Merge pull request #369 from damemi/duplicates-panic
...
Add check for ownerref length in DuplicatePods strategy
2020-08-10 07:06:20 -07:00
Mike Dame
ec4c5bed5d
Add check for ownerref length in DuplicatePods strategy
...
This fixes a panic that occurs if a pod has no ownerrefs
later on in the strategy. If a pod has no ownerrefs, there's
nothing for us to do with it.
2020-08-10 09:37:05 -04:00
lixiang
ae38aa63af
StrategyParameters: Add new param ThresholdPriority and ThresholdPriorityClassName
2020-08-07 13:53:29 +08:00
Kubernetes Prow Robot
cdcd677aa0
Merge pull request #366 from lixiang233/podAntiAffinity_add_missing_validation
...
Add missing validation in PodAntiAffinity
2020-07-30 07:34:31 -07:00
lixiang
a5eb9fc36d
Add missing validation in PodAntiAffinity
2020-07-30 16:44:03 +08:00
Kubernetes Prow Robot
96efd2312b
Merge pull request #363 from KohlsTechnology/new-registry-name
...
Update Container Registry to k8s.gcr.io
2020-07-29 08:29:48 -07:00
Sean Malloy
e7699c4f6b
Update Container Registry to k8s.gcr.io
...
The k8s project recently cut over to the new official k8s.gcr.io
container registry. The descheduler image can now be pulled from
k8s.gcr.io. This is just a new DNS name for the container registry. The
previously documented DNS names for the registry still work, but
require more typing.
2020-07-28 22:45:06 -05:00
Kubernetes Prow Robot
d0fbebb77c
Merge pull request #337 from damemi/rebase-1.19
...
Rebase k8s dependencies to 1.19-rc.2
2020-07-28 10:47:47 -07:00
Kubernetes Prow Robot
46bb5b6f55
Merge pull request #362 from damemi/only-release-tags
...
Update version parsing to exclude helm-chart tags
2020-07-28 09:31:48 -07:00
Kubernetes Prow Robot
b799ed074a
Merge pull request #361 from jjmengze/patch-1
...
remove unnecessary line feed in log messages
2020-07-28 09:19:48 -07:00
Kubernetes Prow Robot
eee41ee111
Merge pull request #338 from ingvagabund/filter-out-pods-by-namespaces
...
Filter pods by namespaces
2020-07-28 08:57:47 -07:00
MengZeLee
6ac81e0b9c
remove unnecessary line feed in log messages
...
If we remove these \n, there will be no misspell errors in go report
2020-07-28 23:27:23 +08:00
Mike Dame
5970899029
Update version parsing to exclude helm-chart tags
2020-07-28 10:59:27 -04:00
Mike Dame
5bb0389538
Update API scheme registration for 1.19
2020-07-28 10:24:21 -04:00
Mike Dame
92cb6a378a
Change gnostic/openapiv2 to lowercase in git
2020-07-27 13:55:31 -04:00
Mike Dame
b09932e92a
go mod tidy && go mod vendor
2020-07-27 13:55:29 -04:00
Mike Dame
63603f38d6
Pin k8s deps to 1.19-rc.2
2020-07-27 13:55:13 -04:00
Jan Chaloupka
42db31683f
README: describe usage of the namespace filtering
2020-07-27 10:57:30 +02:00
Jan Chaloupka
c40a9c397f
e2e: add test for included/excluded namespace through PodLifeTime strategy
2020-07-27 10:54:35 +02:00
Kubernetes Prow Robot
4014ebad92
Merge pull request #359 from KohlsTechnology/more-helm-docs
...
More Helm Documentation
2020-07-26 18:56:16 -07:00
Kubernetes Prow Robot
bb7cb05571
Merge pull request #360 from dharmab/descheduler-autoheal-guide
...
Add NPD+CA autohealing use case to user guide
2020-07-24 15:20:16 -07:00
Dharma Bellamkonda
30b2bd5d9f
Add NPD+CA autohealing use case to user guide
2020-07-24 15:40:47 -06:00
Sean Malloy
8d5ab05aa0
Add Helm Badge To README
2020-07-23 22:14:22 -05:00
Sean Malloy
db501da34d
Clean Up End User Helm Documentation
...
* Correct helm install command in documentation
* Add link to helm install docs from main README
2020-07-23 22:11:17 -05:00
Kubernetes Prow Robot
8d60370612
Merge pull request #358 from damemi/helm-chart-name-docs
...
Update helm chart name in docs
2020-07-23 16:38:22 -07:00
Mike Dame
052f011288
Update helm chart name in docs
2020-07-23 15:42:40 -04:00
Kubernetes Prow Robot
6e23579bd0
Merge pull request #356 from damemi/update-helm-action
...
Update Helm release action to work on release branches
2020-07-23 11:05:29 -07:00
Mike Dame
7331f4e5de
Update Helm release action to work on release branches
...
Basing this action on push to `chart-*` tags doesn't work: the action itself
creates the new release tag, so trying to push the changes to a tag ends up
with the releaser comparing the changes to themself (and failing).
This also renames the chart from "descheduler" to "descheduler-helm-chart", to
avoid confusion with automated releases.
2020-07-22 17:12:54 -04:00
Jan Chaloupka
11f1333af7
ListPodsOnANode: allow to include/exclude namespaces
...
Info: field selector is still not properly mocked so it's not possible to unit test it
2020-07-21 15:08:05 +02:00
Jan Chaloupka
74f70fdbc9
ListPodsOnANode: define Options type to pass various options
...
Options like:
- filter
- included/excluded namespaces
- labels
2020-07-21 15:07:45 +02:00
Jan Chaloupka
0006fb039d
ListPodsOnANode: have one function parameter per each line
2020-07-21 15:02:34 +02:00
Kubernetes Prow Robot
0894f7740c
Merge pull request #343 from ingvagabund/test-cleanup
...
Clean e2e test so it's easier to extend it
2020-07-21 05:21:13 -07:00
Kubernetes Prow Robot
c3f07dc366
Merge pull request #351 from KohlsTechnology/helm-release-docs
...
Update Release Documentation For Helm Charts
2020-07-20 20:33:14 -07:00
Sean Malloy
ca8f1051eb
Update Helm Chart Version To 0.18.0
2020-07-20 12:52:38 -05:00
Sean Malloy
c7692a2e9f
Update Release Documentation For Helm Charts
...
The descheduler now has an official helm chart. This change documents the
process to release a new helm chart artifact.
2020-07-20 12:51:50 -05:00
Jan Chaloupka
53badf7b61
e2e: create dedicated ns for each e2e test
2020-07-17 18:15:53 +02:00
Jan Chaloupka
f801c5f72f
e2e: code cleanup
2020-07-17 18:15:13 +02:00
Jan Chaloupka
327880ba51
e2e: separate tests for LowNodeUtilization strategy and evict annotation
2020-07-17 18:11:01 +02:00
Jan Chaloupka
7bb8b4feda
e2e: create and delete RC in the same function body
...
So create/delete are coupled and caller of create is responsible for calling delete as well
2020-07-17 18:06:19 +02:00
Kubernetes Prow Robot
36b1e1f061
Merge pull request #298 from stevehipwell/helm-chart
...
Add Helm chart
2020-07-16 16:15:00 -07:00
Steve Hipwell
4507a90bb6
Add helm chart
2020-07-16 17:36:17 +01:00
Kubernetes Prow Robot
550f68306c
Merge pull request #342 from KohlsTechnology/remove-travis-ci-config
...
Remove Travis CI Configuration
2020-07-16 07:05:41 -07:00
Sean Malloy
2b668566ce
Remove Travis CI Configuration
...
The e2e tests are now being run through Prow. Therefore the Travis CI
configuration can now be completely removed.
2020-07-15 23:52:27 -05:00
Kubernetes Prow Robot
ee414ea366
Merge pull request #344 from ingvagabund/kind-have-version-configurable-through-env
...
e2e: have k8s version configurable when creating cluster through kind
2020-07-14 06:47:21 -07:00
Jan Chaloupka
5761b5d595
e2e: have k8s version configurable when creating cluster through kind
2020-07-14 15:25:02 +02:00
Kubernetes Prow Robot
07f476dfc4
Merge pull request #340 from damemi/update-e2e
...
Update e2e script to use Kind setup
2020-07-13 19:57:20 -07:00
Mike Dame
f5e9f07321
Move kind setup to e2e script
...
This moves the kind setup (previously used by Travis) to the e2e runner script
to accomodate the switch to Prow. This provides a KIND_E2E env var to specify
whether to run the tests in kind, or (by default) to run locally).
2020-07-13 15:49:41 -04:00
Kubernetes Prow Robot
05c69ee26a
Merge pull request #336 from lixiang233/avoid_duplicated_append_RemoveDuplicatePods
...
avoid appending list multiple times in RemoveDuplicates
2020-07-09 01:32:02 -07:00
Kubernetes Prow Robot
1623e09122
Merge pull request #332 from lixiang233/fix_test_struct_lownodeutilization
...
Add maxPodsToEvictPerNode to LowNodeUtilization testcase struct
2020-07-09 01:22:02 -07:00
lixiang
696aa7c505
rename maxPodsToEvict to maxPodsToEvictPerNode to avoid misunderstanding
2020-07-08 15:15:48 +08:00
lixiang
c53dce0805
Add maxPodsToEvictPerNode to testcase struct
2020-07-08 15:15:38 +08:00
lixiang
cd8b5a0354
avoid appending list multiple times in RemoveDuplicates
2020-07-07 14:42:53 +08:00
Kubernetes Prow Robot
b51f24eb8e
Merge pull request #333 from lixiang233/refactor_lowNodeUtilization_func
...
Support only one sorting strategy in lowNodeUtilization
2020-07-02 22:48:47 -07:00
lixiang
ae3b4368ee
support only one sorting strategy in lowNodeUtilization
2020-07-01 09:47:35 +08:00
Kubernetes Prow Robot
61eef93618
Merge pull request #330 from paulfantom/patch-1
...
examples: fix typo
2020-06-29 07:27:24 -07:00
Paweł Krupa
fa0a2ec6fe
examples: fix typo
...
Fix incorrect example causing following error in runtime:
PodsHavingTooManyRestarts thresholds not set
2020-06-28 14:28:41 +02:00
Kubernetes Prow Robot
7ece10a643
Merge pull request #328 from KohlsTechnology/go114
...
Update To Go 1.14.4
2020-06-25 08:26:39 -07:00
Sean Malloy
71c8eae47e
Update To Go 1.14.4
...
The kubernetes project has been updated to use Go 1.14.4. See below pull
request.
https://github.com/kubernetes/kubernetes/pull/88638
After making the updates to Go 1.14 "make gen" no longer worked. The
file hack/tools.go had to be created to get "make gen" working with Go
1.14.
2020-06-23 21:33:28 -05:00
Kubernetes Prow Robot
267b0837dc
Merge pull request #327 from farah/farah/klog-migration
...
Update klog to v2
2020-06-23 08:35:40 -07:00
Kubernetes Prow Robot
c713537d56
Merge pull request #322 from lixiang233/move_pod_sort
...
Move sortPodsBasedOnPriority to pod util
2020-06-22 12:21:40 -07:00
Kubernetes Prow Robot
e374229707
Merge pull request #325 from KohlsTechnology/issue-template
...
Add initial GitHub issue templates
2020-06-22 07:42:40 -07:00
Sean Malloy
f834581a8e
Fix Spelling Error
2020-06-22 09:12:22 -05:00
Ali Farah
15fcde5229
Update klog to v2
2020-06-22 20:43:22 +10:00
Sean Malloy
96c5dd3941
Add initial GitHub issue templates
...
Initially users can open a bug report, feature request, or misc request.
Bug reports and feature requests will have the "kind" label
automatically added.
2020-06-20 00:52:23 -05:00
lixiang
65a03e76bf
Add sorting to RemovePodsViolatingInterPodAntiAffinity
2020-06-19 14:11:23 +08:00
lixiang
43525f6493
Move sortPodsBasedOnPriority to podutil
2020-06-16 19:19:03 +08:00
lixiang
7457626f62
Move helper funcs to testutil
2020-06-16 19:17:28 +08:00
Kubernetes Prow Robot
08c22e8921
Merge pull request #321 from KohlsTechnology/add-event-reason
...
Add Pod Eviction Reason To Events
2020-06-15 08:53:57 -07:00
Sean Malloy
4ff533ec17
Add pod eviction reason to k8s events
...
Prior to this change the event created for every pod eviction was
identical. Instead leverage the newly added eviction reason when
creating k8s events. This makes it easier for end users to understand
why the descheduler evicted a pod when inspecting k8s events.
2020-06-10 01:13:17 -05:00
Sean Malloy
7680e3d079
Use var declaration instead of short assignmnet
...
This is a very minor refactor to use a var declaration for the reason
variable. A var declaration is being used because the zero value for
strings is an empty string.
https://golang.org/ref/spec#The_zero_value
2020-06-10 01:05:05 -05:00
Kubernetes Prow Robot
305801dd0e
Merge pull request #319 from damemi/remove-extra-eviction-log
...
Remove redundant eviction log message and add "Reason" param to EvictPod
2020-06-09 11:25:19 -07:00
Mike Dame
9951b85d60
Add optional reason parameter to EvictPod
2020-06-09 13:35:51 -04:00
Mike Dame
ff21ec9432
Remove redundant eviction log message
2020-06-09 12:17:45 -04:00
Kubernetes Prow Robot
5e15d77bf2
Merge pull request #309 from damemi/change-evict-local-storage-pods
...
Make evictLocalStoragePods a property of PodEvictor
2020-06-08 03:53:46 -07:00
Kubernetes Prow Robot
d833c73fc4
Merge pull request #317 from ingvagabund/extend-owners
...
Add myself to project reviewers
2020-06-05 10:45:44 -07:00
Kubernetes Prow Robot
795a80dfb0
Merge pull request #310 from lixiang233/ignore_no_evictable_pod_node
...
Skip evicting when no evictable pod found on node
2020-06-05 07:41:44 -07:00
Mike Dame
f5e4acdd8a
Make evictLocalStoragePods a property of PodEvictor
...
This is a minor refactor of PodEvictor to include evictLocalStoragePods as a
property (so that it doesn't need to be passed to each strategy function.) It
also removes ListEvictablePodsOnNode and extends ListPodsOnANode with an optional
"filter" function parameter, so that for example IsEvictable can be passed to it
and achieve the same results as the function formerly known as ListEvictablePodsOnNode.
This approach also now allows strategies to more explicitly extend their criteria of what
IsEvictable considers an evictable pod (such as NodeAffinity, which checks that the pod
can fit on any other node).
2020-06-05 10:28:48 -04:00
Jan Chaloupka
eb4c1bb355
Add myself to project reviewers
...
Based on https://github.com/kubernetes/community/blob/master/community-membership.md#requirements-1 :
The following apply to the part of codebase for which one would be a reviewer in an OWNERS file (for repos using the bot).
> member for at least 3 months
For a couple of years now
> Primary reviewer for at least 5 PRs to the codebase
https://github.com/kubernetes-sigs/descheduler/pull/285
https://github.com/kubernetes-sigs/descheduler/pull/275
https://github.com/kubernetes-sigs/descheduler/pull/267
https://github.com/kubernetes-sigs/descheduler/pull/254
https://github.com/kubernetes-sigs/descheduler/pull/181
> Reviewed or merged at least 20 substantial PRs to the codebase
https://github.com/kubernetes-sigs/descheduler/pulls?q=is%3Apr+is%3Aclosed+assignee%3Aingvagabund
> Knowledgeable about the codebase
yes
> Sponsored by a subproject approver
> With no objections from other approvers
> Done through PR to update the OWNERS file
this PR
> May either self-nominate, be nominated by an approver in this subproject, or be nominated by a robot
self-nominating
2020-06-04 18:16:38 +02:00
Kubernetes Prow Robot
6dfa95cc87
Merge pull request #312 from lixiang233/fix_lowUtilization_golint
...
Pass golint check for pkg/descheduler/strategies/
2020-06-04 07:09:15 -07:00
lixiang
eb9d974a8b
pass golint check for pkg/descheduler/strategies/
2020-06-04 14:33:24 +08:00
lixiang
d41a1f4a56
Ignore evicting when no evictable pod found on node
2020-06-04 10:31:15 +08:00
Kubernetes Prow Robot
138ad556a3
Merge pull request #315 from damemi/update-travis-yml
...
Remove redundant tests from Travis CI
2020-06-03 11:44:11 -07:00
Mike Dame
37124e6e45
Remove redundant tests from Travis CI
...
These tests are now covered by k8s test-infra prow tests.
2020-06-03 14:11:08 -04:00
Kubernetes Prow Robot
bd412bf87f
Merge pull request #300 from damemi/refactor-is-evictable
...
Add more verbose logging to IsEvictable checks
2020-05-29 10:03:16 -07:00
Kubernetes Prow Robot
6f9b31f568
Merge pull request #308 from damemi/fix-lint-for-ci
...
Download golangci-lint to _output/bin directory
2020-05-29 09:57:15 -07:00
Mike Dame
c858740c4f
Run golangci-lint from GOPATH
2020-05-29 12:48:42 -04:00
Kubernetes Prow Robot
bfefe634a1
Merge pull request #307 from damemi/make-verify
...
Add parent make verify target
2020-05-29 08:01:16 -07:00
Mike Dame
7b7b9e1cd7
Add parent make verify target
2020-05-29 10:23:38 -04:00
Mike Dame
0a4b8b0a25
Add more verbose logging to IsEvictable checks
2020-05-29 10:20:14 -04:00
Kubernetes Prow Robot
f28183dcbe
Merge pull request #306 from ingvagabund/make-Params-a-pointer-II
...
Add missing address of api.StrategyParameters
2020-05-29 05:53:16 -07:00
Jan Chaloupka
abdf79454f
Add missing address of api.StrategyParameters
...
https://github.com/kubernetes-sigs/descheduler/pull/285 got merged before re-running the unit tests.
2020-05-29 13:34:57 +02:00
Kubernetes Prow Robot
46b570b71d
Merge pull request #296 from ingvagabund/make-Params-a-pointer
...
Make DeschedulerStrategy.Params a pointer
2020-05-28 22:53:15 -07:00
Kubernetes Prow Robot
616a9b5f6b
Merge pull request #285 from lixiang233/Ft_change_lowUtilization_break
...
Change break condition and thresholds validation for lowUtilization
2020-05-28 07:36:02 -07:00
Kubernetes Prow Robot
003a4cdc2b
Merge pull request #302 from lixiang233/clean_up_strategy_enable_check
...
Clean up code in LowNodeUtilization
2020-05-28 07:16:02 -07:00
Kubernetes Prow Robot
54ea05d8bb
Merge pull request #299 from damemi/node-affinity-logs
...
Standardize node affinity strategy logs
2020-05-28 01:52:02 -07:00
lixiang
d0eea0cabb
Clean up code in LowNodeUtilization
2020-05-28 10:35:46 +08:00
Mike Dame
f0297dfe03
Standardize node affinity strategy logs
2020-05-27 16:52:16 -04:00
Kubernetes Prow Robot
ef1f36f8e4
Merge pull request #297 from ingvagabund/add-verify-gofmt
...
Add verify-gofmt make target
2020-05-27 07:02:40 -07:00
Jan Chaloupka
a733c95dcc
Add verify-gofmt and verify-vendor make target
...
So e.g. CI can run 'make verify-gofmt' instead of ./hack/verify-gofmt in case the script location changes.
2020-05-27 15:08:20 +02:00
Jan Chaloupka
5a81a0661b
Make DeschedulerStrategy.Params a pointer
...
To avoid empty params fields when serializing:
RemoveDuplicates:
enabled: true
params: {}
RemovePodsHavingTooManyRestarts:
enabled: true
params:
podsHavingTooManyRestarts: {}
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
params: {}
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
RemovePodsViolatingNodeTaints:
enabled: true
params: {}
2020-05-27 10:31:31 +02:00
Kubernetes Prow Robot
83e04960af
Merge pull request #288 from KohlsTechnology/update-support-matrix
...
Update Compatibility Matrix in README
2020-05-26 06:37:12 -07:00
lixiang
2a8dc69cbb
Stop condition and config validation change for lowUtilization
...
1.Set default CPU/Mem/Pods percentage of thresholds to 100
2.Stop evicting pods if any resource ran out
3.Add thresholds verification method and limit resource percentage within [0, 100]
4.Change testcases and readme
2020-05-25 19:03:37 +08:00
Kubernetes Prow Robot
5d82d08af3
Merge pull request #291 from KohlsTechnology/update-releasedocs
...
Add URL For Viewing Staging Registry
2020-05-22 09:55:11 -07:00
Sean Malloy
c265825166
Add URL For Viewing Staging Registry
...
This newly documented URL can be used to view the descheduler staging
registry in a web browser. This is easier to browse if the gcloud
command is not available.
2020-05-22 11:33:45 -05:00
Kubernetes Prow Robot
ed0126fb63
Merge pull request #290 from KohlsTechnology/bump-install-manifests
...
Update Install Manifests For Release v0.18.0
2020-05-22 07:08:38 -07:00
Sean Malloy
8c7267b379
Update Install Manifests For Release v0.18.0
2020-05-21 22:54:54 -05:00
Kubernetes Prow Robot
d85ce22975
Merge pull request #289 from KohlsTechnology/update-release-docs
...
Update Release Guide
2020-05-20 11:46:19 -07:00
Kubernetes Prow Robot
a9091a1e37
Merge pull request #287 from ingvagabund/evict-pod-mention-dry-run-if-set
...
Mention pod eviction is in dry mode when set
2020-05-20 11:44:19 -07:00
Sean Malloy
d3b0ac8e06
Update Release Guide
...
Starting with descheduler v0.18 a release branch will be created for
each descheduler minor release. The release guide has been updated with
the steps to create release branches.
2020-05-20 11:10:42 -05:00
Sean Malloy
435674fb44
Update Compatibility Matrix in README
...
The matrix has been updated with the soon the be released v0.18
details. Also, clarified the descheduler and k8s version compatibility
requirements and recommendations.
2020-05-20 10:55:57 -05:00
Jan Chaloupka
eacbae72fd
Mention pod eviction is in dry mode when set
...
Indicate whether a pod is only virtually evicted so there's no confusion
with the real eviction.
2020-05-20 10:40:58 +02:00
Kubernetes Prow Robot
34550d4b7c
Merge pull request #275 from damemi/image-in-duplicates
...
Consider pod image in duplicates strategy
2020-05-15 06:51:38 -07:00
Mike Dame
c6ff87dbd6
Consider pod image in duplicates strategy
...
This increases the specificity of the RemoveDuplicates strategy by
removing pods which not only have the same owner, but who also
must have the same list of container images. This also adds a
parameter, `ExcludeOwnerKinds` to the RemoveDuplicates strategy
which accepts a list of Kinds. If a pod has any of these Kinds as
an owner, that pod is not considered for eviction.
2020-05-15 09:37:09 -04:00
Kubernetes Prow Robot
04efe65f90
Merge pull request #279 from KohlsTechnology/eviction-logs
...
Add Additional Details To Pod Eviction Log Messages
2020-05-14 07:20:22 -07:00
Sean Malloy
55afde6251
Remove line break in log message from PodLifeTime strategy
2020-05-14 00:36:52 -05:00
Sean Malloy
7039b6c8aa
Refactor function EvictPod to only return an error
...
The EvictPod function previously returned a bool and an error. The
function now only returns an error. Callers can check for failure by
testing if the returned error is not nil. This aligns the EvictPod
function with idiomatic Go best practices.
Also, the function name has been changed from EvictPod to evictPod
because it is not used outside the evictions package.
2020-05-14 00:11:54 -05:00
Sean Malloy
cff984261e
Log an error when EvictPod method returns a non-nil error
...
End users should be able to see the detailed error from the EvictPod
method when it fails. Updates all strategies to log the error. The
PodLifeTime strategy already logs this error.
2020-05-13 23:36:32 -05:00
Sean Malloy
4819ab9c69
Add namespace to pod eviction log messages
...
In multi-tenant environments it is useful to know which namespace a pod
was evicted from. Therefore log the namespace when evicting pods.
Also, do not log a nil error when successfully evicting pods.
2020-05-13 23:28:25 -05:00
Kubernetes Prow Robot
25336da708
Merge pull request #281 from KohlsTechnology/update-travis-ci
...
Update Travis CI build matrix with latest k8s point releases
2020-05-13 08:20:26 -07:00
Sean Malloy
4941f6a16b
Update Travis CI build matrix with latest k8s point releases
2020-05-12 22:38:23 -05:00
Kubernetes Prow Robot
d7e93058d4
Merge pull request #280 from damemi/k8s-1.18
...
Update to k8s 1.18.2 dependencies
2020-05-12 13:40:21 -07:00
Mike Dame
c20a595370
Update travis.yml with new k8s version and updated kind version
2020-05-12 15:01:25 -04:00
Mike Dame
eec1104d6e
React to 1.18 by adding contexts to client calls
2020-05-12 15:01:25 -04:00
Mike Dame
741b35edf5
Update to k8s 1.18.2 dependencies
2020-05-12 14:07:31 -04:00
Kubernetes Prow Robot
c01cfcf3b6
Merge pull request #274 from KohlsTechnology/pod-lifetime-strategy
...
Add New PodLifeTime Strategy
2020-05-08 07:29:42 -07:00
Sean Malloy
643cd472ef
Add initial production use cases section to user guide
2020-05-08 09:02:24 -05:00
Sean Malloy
668d727fc2
Add VS Code File To .gitignore
2020-05-07 23:10:48 -05:00
Sean Malloy
423ee35846
Add New PodLifeTime Strategy
...
The new PodLifeTime descheduler strategy can be used to evict pods that
were created more than the configured number of seconds ago.
In the below example pods created more than 24 hours ago will be evicted.
````
apiVersion: "descheduler/v1alpha1"
kind: "DeschedulerPolicy"
strategies:
"PodLifeTime":
enabled: true
params:
maxPodLifeTimeSeconds: 86400
````
2020-05-07 23:10:36 -05:00
Kubernetes Prow Robot
31c7855212
Merge pull request #278 from lixiang233/fix_readme
...
Fix readme
2020-05-07 12:19:43 -07:00
Kubernetes Prow Robot
211f3942b6
Merge pull request #276 from damemi/toomanyrestarts-pointer
...
Switch PodsHavingTooManyRestarts params to pointer
2020-05-07 12:17:42 -07:00
Kubernetes Prow Robot
beae282735
Merge pull request #277 from damemi/damemi-approvers
...
Add damemi to approvers
2020-05-07 12:15:42 -07:00
lixiang
635348efb9
Fix readme
2020-05-07 11:47:32 +08:00
Mike Dame
fa335c782f
Switch PodsHavingTooManyRestarts params to pointer
2020-05-06 13:29:05 -04:00
Mike Dame
b019a58525
Add damemi to approvers
2020-05-06 11:00:58 -04:00
Kubernetes Prow Robot
78eef6c343
Merge pull request #267 from ingvagabund/drop-DeschedulerServer-from-strategies
...
Drop descheduler server from strategies
2020-04-28 08:34:06 -07:00
Jan Chaloupka
cbcefb5d2f
Remove options.DeschedulerServer from all strategies
2020-04-28 16:13:33 +02:00
Kubernetes Prow Robot
149085fb57
Merge pull request #240 from ingvagabund/turn-strategy-params-NodeResourceUtilizationThresholds-field-into-pointer
...
Turn StrategyParameters.NodeResourceUtilizationThresholds field into a pointer
2020-04-28 06:48:07 -07:00
Jan Chaloupka
991eddb691
Turn StrategyParameters.NodeResourceUtilizationThresholds field into a pointer
...
The field is intended to be omitempty when not set. Without a pointer the strategy
serialized into json string looks like:
```json
strategies:
LowNodeUtilization:
enabled: true
params:
nodeResourceUtilizationThresholds:
numberOfNodes: 1
targetThresholds:
cpu: 50
memory: 50
pods: 20
thresholds:
cpu: 50
memory: 50
pods: 20
RemoveDuplicates:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
nodeResourceUtilizationThresholds: {}
RemovePodsViolatingNodeTaints:
enabled: true
params:
nodeResourceUtilizationThresholds: {}
```
It's preferred to have the following json string instead:
```
strategies:
LowNodeUtilization:
enabled: true
params:
nodeResourceUtilizationThresholds:
numberOfNodes: 1
targetThresholds:
cpu: 50
memory: 50
pods: 20
thresholds:
cpu: 50
memory: 50
pods: 20
RemoveDuplicates:
enabled: true
RemovePodsViolatingInterPodAntiAffinity:
enabled: true
RemovePodsViolatingNodeAffinity:
enabled: true
params:
nodeAffinityType:
- requiredDuringSchedulingIgnoredDuringExecution
RemovePodsViolatingNodeTaints:
enabled: true
```
2020-04-28 15:20:30 +02:00
Kubernetes Prow Robot
91de471376
Merge pull request #254 from damemi/toomanyrestarts
...
Add RemoveTooManyRestarts policy
2020-04-27 12:48:05 -07:00
Mike Dame
c2d7e22749
make gen && go mod vendor
2020-04-24 10:48:28 -04:00
Mike Dame
e7c42794a0
Add RemovePodsHavingTooManyRestarts strategy
2020-04-24 10:48:28 -04:00
Kubernetes Prow Robot
3a8dfc07ed
Merge pull request #266 from ingvagabund/pod-evictor
...
Move maximum-pods-per-nodes-evicted logic under a single invocation
2020-04-23 16:14:07 -07:00
Jan Chaloupka
077b7f6505
Drop check for MaxNoOfPodsToEvictPerNode and invoke EvictPod wrapper instead
2020-04-22 10:33:22 +02:00
Jan Chaloupka
240fa93bc5
Move maximum-pods-per-nodes-evicted logic under a single invocation
...
Each strategy implements a test for checking if a maximum number of pods per node
was already evicted. The test duplicates a code that can be put
under a single invocation. Thus, reducing the number of arguments passed
to each strategy given EvicPod call can encapsulate both the check
and the invocation of the pod eviction itself.
2020-04-22 10:32:16 +02:00
Kubernetes Prow Robot
6c7f846917
Merge pull request #265 from ingvagabund/tolerations-tains-code-cleanup
...
Tolerations taints code cleanup
2020-04-21 14:27:52 -07:00
Jan Chaloupka
6db7c3b92c
Call utils.TolerationsTolerateTaintsWithFilter directly, not through checkPodsSatisfyTolerations
2020-04-21 22:34:14 +02:00
Kubernetes Prow Robot
030267107a
Merge pull request #262 from ingvagabund/order-pods-by-priority-only-over-over-utilized-nodes
...
Order pods by priority only over over utilized nodes
2020-04-19 14:05:38 -07:00
Jan Chaloupka
1c300a9881
Drop getNoScheduleTaints and allTaintsTolerated in favor of utils.TolerationsTolerateTaintsWithFilter
2020-04-19 22:18:49 +02:00
Jan Chaloupka
0e9b33b822
allTaintsTolerated: remove for iteration through tolerations which is already implemented in utils.TolerationsTolerateTaint
2020-04-19 22:07:34 +02:00
Jan Chaloupka
36e3d1e703
Drop local implementation of toleratesTaint in favor of k8s.io/api/core/v1.Toleration.TolerateTaint
...
Functionally identical implementation of toleratesTaint is already provided in k8s.io/api
2020-04-19 21:58:41 +02:00
Jan Chaloupka
f53264b613
lownodeutilization: evict best-effort pods only
...
Unit test refactored node utilization and pod clasification
2020-04-17 11:32:34 +02:00
Jan Chaloupka
414554ae5e
lownodeutilization: make unit tests with/without priority table driven
2020-04-17 11:32:28 +02:00
Jan Chaloupka
150f945592
lownodeutilization: clasify pods of over utilized nodes only
...
Only over utilized nodes need clasification of pods into categories.
Thus, skipping categorizing of pods which saves computation time in cases
where the number of over utilized nodes makes less than 50% of all nodes
or their fraction.
2020-04-17 11:32:22 +02:00
Kubernetes Prow Robot
9a84afece1
Merge pull request #264 from ingvagabund/remove-pods-violating-node-affinity
...
readme: RemovePodsViolatingNodeAffinity: reword description of the strategy
2020-04-16 20:59:08 -07:00
Jan Chaloupka
e0c101c5ae
readme: RemovePodsViolatingNodeAffinity: reword description of the strategy
...
Compared to https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#node-affinity
the strategy kinda implements requiredDuringSchedulingRequiredDuringExecution node affinity type
for kubelets. Only addition to kubelet is the strategy checks whether is at least another node
capable of respecting the node affinity rules.
When requiredDuringSchedulingRequiredDuringExecution node affinity type is implemented in kubelet,
it's likely the strategy either gets removed or re-implemented. Stressing the relation with
requiredDuringSchedulingRequiredDuringExecution will helps consumers of descheduler
to keep in mind the kubelet will eventually take over the strategy when implemented.
2020-04-15 11:54:37 +02:00
Kubernetes Prow Robot
e3a562aea0
Merge pull request #260 from CriaHu/hyq_descheduler
...
fix broken link :
2020-04-07 18:01:44 -07:00
Kubernetes Prow Robot
4966e8ee08
Merge pull request #256 from damemi/fix-podfitsanynode
...
Fix early return from PodFitsAnyNode check
2020-04-07 08:01:43 -07:00
Kubernetes Prow Robot
d3542d5892
Merge pull request #258 from damemi/verify-deps
...
Add verify-vendor scripts to CI
2020-04-07 07:53:43 -07:00
Mike Dame
62d04b0fc7
go mod tidy && go mod vendor
2020-04-07 10:34:47 -04:00
Mike Dame
6ecbc85448
Add hack/{update,verify}-vendor.sh scripts
2020-04-07 10:34:47 -04:00
Cria Hu
b9b1eae6fb
fix broken link :
...
https://git.k8s.io/community/contributors/guide/contributor-cheatsheet.md
2020-04-06 09:28:09 +08:00
Mike Dame
e95e42930d
Remove early return false from PodFitsAnyNode
2020-04-02 11:53:29 -04:00
Kubernetes Prow Robot
3cabb69014
Merge pull request #255 from KohlsTechnology/go-1.13.9
...
Update to Go 1.13.9
2020-03-31 20:47:27 -07:00
Sean Malloy
ad8f90f177
Update to Go 1.13.9
...
Kubernetes releases 1.16 through 1.19 have been updated
to Go 1.13.9, so it's time to update the descheduler too.
2020-03-31 22:30:52 -05:00
Kubernetes Prow Robot
8a62cf1699
Merge pull request #246 from KohlsTechnology/go-1.13.8
...
Update to Go 1.13.8
2020-03-09 11:17:36 -07:00
Sean Malloy
a6b54dae99
Update to Go 1.13.8
...
Kubernetes releases 1.15 through 1.19 have been updated
to Go 1.13.8, so it's time to update the descheduler too.
https://github.com/kubernetes/release/issues/1134
2020-03-08 23:12:53 -05:00
Kubernetes Prow Robot
112684bcb9
Merge pull request #181 from jw-s/feature/respect-tolerations
...
Respect Node taints with tolerations (if exist)
2020-03-04 10:45:48 -08:00
Kubernetes Prow Robot
682e07c3cd
Merge pull request #249 from ingvagabund/list-node-through-informer-in-every-iteration
...
List nodes through informer in every iteration
2020-03-04 10:43:48 -08:00
Jan Chaloupka
9593ce16d9
List nodes through informer in every iteration
...
Also, refactor the code a bit so it can be tested without checking for eviction support.
2020-03-04 16:26:13 +01:00
Kubernetes Prow Robot
2545c8b031
Merge pull request #244 from KohlsTechnology/docs-revamp
...
Documentation Refresh
2020-03-04 07:23:47 -08:00
Sean Malloy
c9793e7029
Clean README based on feedback from review
2020-03-03 22:07:20 -06:00
Joel Whittaker-Smith
4757132452
check for taints on low nodes and honor them
2020-03-02 14:43:11 +01:00
Sean Malloy
561b3b67b3
Clean README based on feedback from review
2020-02-28 22:38:28 -06:00
Sean Malloy
566f33e6ad
Initial User and Contributor Guide Draft
2020-02-26 01:29:57 -06:00
Sean Malloy
83a75bac80
Create Structure and Links For User and Contributor Guides
2020-02-26 01:30:08 -06:00
Sean Malloy
d8772f5685
Clean up README
...
* Fixed small typos
* Update compatability matrix
2020-02-26 01:29:57 -06:00
Kubernetes Prow Robot
df510187d6
Merge pull request #233 from KohlsTechnology/update-release-docs
...
Add notes section to release documentation
2020-02-21 11:12:12 -08:00
Kubernetes Prow Robot
137b9b72e7
Merge pull request #242 from KohlsTechnology/fix-gcr-registry
...
Fix GCR Image Location In Job and CronJob YAML
2020-02-20 09:41:01 -08:00
Sean Malloy
09b4979673
Fix GCR Image Location In Job and CronJob YAML
...
The correct location for the official descheduler container image is
us.gcr.io/k8s-artifacts-prod/descheduler/descheduler:TAG_NAME.
2020-02-20 00:30:16 -06:00
Kubernetes Prow Robot
eff8185d7c
Merge pull request #239 from aveshagarwal/master-fix-gen
...
Fix email address in docker files.
2020-02-12 07:04:52 -08:00
Avesh Agarwal
83ee94dd08
Fix email address in docker files.
2020-02-12 09:31:24 -05:00
Sean Malloy
aae52ac2ee
Document gcloud command used to get container image details
...
The "gcloud container images describe" command is used to get the SHA256
hash of an image in the staging registry. The SHA256 hash is required
for the image promotion process.
https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter
2020-02-11 22:46:27 -06:00
Sean Malloy
a7c4295c58
Add notes section to release documentation
...
Add a link to the test grid dashboard for automated container image builds,
and documents useful gcloud commands for woking with the staging registry.
This documentation is useful for project maintainers that are creating
releases and publishing container images. The chance of remembering
these commands and links is slim to none. Therefore documenting this
information will be very useful.
2020-02-11 22:41:35 -06:00