Kensei Nakada
bf1b3a161b
add(nodevolumelimits): return UnschedulableAndUnresolvable when PVC is not found
2023-12-30 23:00:56 +00:00
utam0k
aba817ac1d
return not-found errors properly from fake listeres
...
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-11-20 19:14:08 +09:00
Stephen Kitt
3cb0b520d6
Scheduler CSI tests: switch maxVols to int32
...
This ends up stored in an int32 Count, use the target type throughout
to avoid narrowing conversions.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-09-15 09:52:50 +02:00
Stephen Kitt
9990307146
kube-scheduler: drop deprecated pointer package
...
This replaces deprecated k8s.io/utils/pointer functions with their ptr
equivalent.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-09-13 09:42:19 +02:00
kerthcet
6fbb8ec7e4
Move scheduler testing utils to /scheduler/testing
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-09-12 13:42:38 +08:00
Kubernetes Prow Robot
87f3acf7f6
Merge pull request #115398 from tangwz/add_NodeVolumeLimits_PreFilter
...
feat(NodeVolumeLimits): return Skip in PreFilter
2023-04-27 01:44:14 -07:00
tangwz
8ed861889a
feat(NodeVolumeLimits): return Skip in PreFilter
2023-04-26 20:17:04 +08:00
sarab
8d18ae6fc2
Use the generic Set in scheduler
2023-04-09 11:34:17 +05:30
Sunny Song
5e2f12e943
Fix nil pointer error in nodevolumelimits csi logging
2023-01-25 09:37:46 -08:00
kidddddddddddddddddddddd
e789beb213
errMsg
2022-12-19 23:52:06 +08:00
Jan Safranek
5b284a50b7
Revert "Remove references to openstack and cinder"
...
This reverts commit 9bbf01bae9
.
2022-11-10 18:25:30 +01:00
Kubernetes Prow Robot
34aa4c39e0
Merge pull request #111845 from ialidzhikov/cleanup/pkg-scheduler
...
pkg/scheduler: Replace deprecated func usage from the `k8s.io/utils/pointer` pkg
2022-08-23 20:08:15 -07:00
Davanum Srinivas
9bbf01bae9
Remove references to openstack and cinder
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-08-22 16:43:14 -04:00
ialidzhikov
7c8a151faa
pkg/scheduler: Replace deprecated func usage from the k8s.io/utils/pointer
pkg
2022-08-16 08:39:18 +03:00
Matthew Wong
777f43062c
Remove unit tests that set & test CSIMigrationAWS false since it's now locked to true
2022-07-29 13:52:06 -07:00
Jiawei Wang
760365d5c9
CSIMigration feature gate to GA
2022-06-06 21:19:19 +00:00
Kubernetes Prow Robot
8aaea8e24c
Merge pull request #107787 from Jiawei0227/volumelimit
...
CSI migration doesn't count inline volumes for attach limit
2022-05-11 23:09:13 -07:00
Jiawei Wang
9d01f0bf52
Count inline volume for NodeVolumeLimit when CSI migration enabled
...
Previsouly, when kube-scheduler schedule a pod, it does
not take inline intree volume into account when CSI
migration is enabled. This could lead to failures where
pod scheduled to a node but volume attachment fails.
2022-05-10 07:43:28 +00:00
Yibo Zhuang
bc8f3198d5
cleanup: move scheduler plugin tests to use PodWrapper
...
Move scheduler plugin unit tests use testing PodWrapper
where applicable to reduce duplicating pod creation
code and shorten number of lines.
Signed-off-by: Yibo Zhuang <yibzhuang@gmail.com>
2022-05-05 10:48:55 -07:00
Patrick Ohly
a8c930ef46
generic ephemeral volume: graduation to GA
...
The feature gate gets locked to "true", with the goal to remove it in two
releases.
All code now can assume that the feature is enabled. Tests for "feature
disabled" are no longer needed and get removed.
Some code wasn't using the new helper functions yet. That gets changed while
touching those lines.
2021-10-11 20:54:20 +02:00
Patrick Ohly
bc263f3ba5
scheduler: use generic ephemeral volume helper functions
...
The name concatenation and ownership check were originally considered small
enough to not warrant dedicated functions, but the intent of the code is more
readable with them.
2021-10-11 17:33:57 +02:00
Patrick Ohly
1d181ad84f
scheduler: fail the volume attach limit when PVC is missing
...
Previously, the situation was ignored, which might have had the effect that Pod
scheduling continued (?) even though the Pod+PVC weren't known to be in an
acceptable state.
2021-10-01 17:03:44 +02:00
Patrick Ohly
1e26115df5
consider ephemeral volumes for host path and node limits check
...
When adding the ephemeral volume feature, the special case for
PersistentVolumeClaim volume sources in kubelet's host path and node
limits checks was overlooked. An ephemeral volume source is another
way of referencing a claim and has to be treated the same way.
2021-10-01 17:03:44 +02:00
Ali
09b2e8f638
Move scheduler interface to pkg/scheduler/framework
2020-10-13 13:13:27 +11:00
Abdullah Gharaibeh
a5d8172715
move nodeinfo type to framework pkg
2020-04-07 10:25:24 -04:00
Abdullah Gharaibeh
ed3fe054df
move scheduler nodeinfo to pkg/scheduler/types
2020-03-31 21:02:09 -04:00
Abdullah Gharaibeh
fb66e807cd
Remove scheduler framework dependency on predicates package
2020-01-13 13:02:31 -05:00
Haosdent Huang
aae9a7f704
Break nodevolumelimits Filter plugins dependency on predicates package
2020-01-06 02:30:40 +08:00
draveness
320ac4e277
feat(scheduling): implement azure, cinder, ebs and gce as filter plugin
2019-12-28 11:46:40 +08:00
draveness
291a7bb164
feat(scheduling): move csi volume predicates to csi filter plugin
2019-12-27 09:14:35 +08:00
Fabio Bertinatto
a59abc3cc3
Convert scheduler to use CSINode GA
2019-11-12 09:43:54 +01:00
Fabio Bertinatto
affcd0128b
Promote volume limits to GA
2019-11-12 09:43:53 +01:00
zouyee
b86dbb97df
rename scheduler fake listers
...
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-10-25 13:09:01 +08:00
Abdullah Gharaibeh
d393804237
separate listers into their own package
2019-10-22 18:11:02 -04:00
louisgong
70ca08ec89
filter plugin for cloud provider storage predicate
2019-10-21 23:56:23 +08:00