JaneLiuL
7068fc6082
Add k8s compatibility warnings to logs
2023-03-13 19:30:40 +08:00
lucming
02b1e8b8b9
remove some logic useless
2023-02-16 17:25:00 +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
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
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
Amir Alavi
46e43a07bf
support client connection configuration to provide QPS and burst
2023-01-05 22:00:33 -05: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
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
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
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
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
Lucas Severo Alves
398ffa7ee0
add namespace filter to nodeutilization
2022-10-30 00:52:30 +02: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刘诚
3d28b85212
remove unused file: validation_pluginargs.go
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
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
Lucas Severo Alves
edec8fe010
add PreEvictionFilter extension to DefaultEvictor Plugin
2022-09-20 17:29:41 +02:00
Lucas Severo Alves
f47c2c4407
add new preevectionfilter plugin with args
2022-09-12 16:56:21 +02: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
Julian Lawrence
bfcd310a16
removing dupe plugin interface check
2022-08-24 16:12:24 -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
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