Cookiery
4ce7f8547d
chore: cleanup code
...
chore: cleanup code
chore: cleanup code
chore: cleanup code
2024-10-04 20:43:01 +08:00
Matthieu MOREL
f777addb05
fix: use ErrorContains(t, err instead of Contains(t, err.Error()
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2024-09-26 22:22:20 +02:00
Aaron Prindle
701e6c7ab1
chore: bump DefaultKubeBinaryVersion to 1.32, make 1.32 CEL changes, fix int tests to handle 1 version off API deprecation, and fix prerelease-lifecycle-gen for # of APIs
2024-09-17 19:32:14 +00:00
Jefftree
fac7581640
feedback: leasecandidate clients
2024-07-24 14:38:12 +00:00
Dr. Stefan Schimanski
68226b0501
Review feedback
...
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com >
2024-07-24 14:38:12 +00:00
Jefftree
c47ff1e1a9
CLE controller and client changes
2024-07-24 14:38:11 +00:00
Siyuan Zhang
40cddbe215
add emulated-version flag to kube-scheduler to control the feature gate.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-07-09 09:04:41 -07:00
Eric Lin
44c08fdbd5
Add /readyz for kube-scheduler
...
/readyz contains `sched-handler-sync`, `leaderElection` (when election is
enabled) and `shutdown` checks
2024-05-27 19:11:24 +00:00
Eric Lin
708180be69
Add /livez to kube-scheduler
...
Health endpoint `/livez` only contains ping check.
2024-05-27 19:11:24 +00:00
Marek Siarkowicz
3ee8178768
Cleanup defer from SetFeatureGateDuringTest function call
2024-04-24 20:25:29 +02:00
Wei Huang
01db4ae9e7
Graduate PodSchedulingReadiness to stable
2024-02-28 23:18:44 -08:00
Kubernetes Prow Robot
f139450e9b
Merge pull request #122885 from claudiubelu/unittests-10
...
unittests: Fixes unit tests for Windows (part 10)
2024-02-28 05:38:40 -08:00
Claudiu Belu
b8df7e7684
unittests: Fixes unit tests for Windows (part 10)
...
Currently, there are some unit tests that are failing on
Windows due to various reasons:
- Different "File not found" error messages on Windows.
- Files need to be closed on Windows before removing them.
- The default RootHnsEndpointName (root-hnsendpoint-name) flag value is 'cbr0'
- On Windows, Unix Domain sockets are not checked in the same way in golang, which is why
hostutils_windows.go checks for it differently. GetFileType will return an error in this
case. We need to check for it, and see if it's actually a Unix Domain Socket.
2024-01-22 13:43:42 +00:00
Kubernetes Prow Robot
a02a00ecd7
Merge pull request #122142 from pohly/client-go-events-adapter-context
...
client-go events: also support context for NewEventBroadcasterAdapter
2024-01-18 08:44:12 +01:00
Patrick Ohly
f8e25eff92
client-go events: also support context for NewEventBroadcasterAdapter
...
27a68aee3a introduced context support. In order to use that
also with NewEventBroadcasterAdapter, a variant of the call is needed to allow
the caller to specify the context.
The `logcheck:context` comment ensures that code which is meant to be
contextual uses the new call.
2024-01-17 18:06:29 +01:00
kerthcet
b6eac505fb
Add testcase setup scheduler
...
Signed-off-by: kerthcet <kerthcet@gmail.com >
2023-12-19 17:53:24 +08:00
Kubernetes Prow Robot
040c59bb9d
Merge pull request #122013 from sanposhiho/patch-10
...
Fix: modify a flag doc of pod-max-in-unschedulable-pods-duration
2023-12-14 05:09:34 +01:00
AxeZhan
210ed2ebbd
add preScore for volumeBinding
2023-12-06 15:35:35 +08:00
Kensei Nakada
f221098d2c
Fix: modify a flag doc of pod-max-in-unschedulable-pods-duration
2023-11-23 13:24:38 +00:00
Mengjiao Liu
a7466f44e0
Change the scheduler plugins PluginFactory function to use context parameter to pass logger
...
- Migrated pkg/scheduler/framework/plugins/nodevolumelimits to use contextual logging
- Fix golangci-lint validation failed
- Check for plugins creation err
2023-09-20 17:49:54 +08:00
Kubernetes Prow Robot
d393d4e151
Merge pull request #120574 from logicalhan/cslis
...
promote component SLIs to GA; remove feature gates for component slis
2023-09-14 22:52:12 -07: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
Han Kang
e6435e98ed
promote component SLIs to GA; remove feature gates for component slis
2023-09-11 09:15:32 -07:00
Kubernetes Prow Robot
c7a04e10a6
Merge pull request #120153 from SataQiu/clean-scheduler-20230824
...
using wait.PollUntilContextTimeout instead of deprecated wait.Poll/PollWithContext/PollImmediate/PollImmediateWithContext methods for scheduler
2023-08-28 02:11:42 -07:00
SataQiu
5524f1651a
using wait.PollUntilContextTimeout instead of deprecated wait.Poll/PollWithContext/PollImmediate/PollImmediateWithContext methods for scheduler
2023-08-24 18:35:59 +08:00
SataQiu
427b703c37
scheduler: remove deprecated v1beta2 KubeSchedulerConfiguration
2023-08-17 13:27:21 +08:00
vadasambar
c52911e59a
docs: add comment describing LoadConfigFromFile
2023-07-13 09:59:39 +05:30
vadasambar
5c18810f35
chore: update license date for configfile tests
2023-07-13 09:59:39 +05:30
vadasambar
72aeb96132
test: add tests for LoadConfigFromFile
2023-07-13 09:59:39 +05:30
vadasambar
b3373ae273
refactor: make only LoadConfigFromFile public
...
- `loadConfig` can be made public again when needed (not required now)
2023-07-13 09:59:39 +05:30
vadasambar
8e284389a5
feat: make loadConfig and loadConfigFile public functions
...
- so that users who import kube-scheduler libraries can use these functions to read kube scheduler config
2023-07-13 09:59:39 +05:30
SataQiu
3a5268502f
Remove deprecated scheduler CLI flags
2023-07-07 23:33:33 +08:00
Kubernetes Prow Robot
e5efa0a5ee
Merge pull request #117108 from pohly/test-integration-race-detection-component-base-logs
...
component-base/logs: improve handling of re-applying a configuration
2023-07-05 21:29:08 -07:00
Patrick Ohly
02efe09abe
component-base/logs: improve handling of re-applying a configuration
...
Normal binaries should never have to do this. It's not safe when there are
already some goroutines running which might do logging. Therefore the new
default is to return an error when a binary accidentally re-applies.
A few unit ensure that there are no goroutines and have to call the functions
more then once. The new ResetForTest API gets used by those to enable changing the
logging settings more than once in the same process.
Integration tests use the same code as the normal binaries. To make reuse of
that code safe, component-base/logs can be configured to silently ignore any
additional calls. This addresses data races that were found when enabling -race
for integration tests. To catch cases where the integration test does want
to modify the config, the old and new config get compared and an error is
raised when it's not the same.
To avoid having to modify all integration tests which start test servers,
reconfiguring component-base/logs is done by the test server packages.
2023-07-05 19:08:54 +02:00
kidddddddddddddddddddddd
9c7166ff63
wait for eventhandlers to sync before run scheduler
2023-06-27 23:19:34 +08:00
Mengjiao Liu
1c05cf1d51
kube-scheduler: NewFramework function to pass the context parameter
...
Co-authored-by: Aldo Culquicondor <1299064+alculquicondor@users.noreply.github.com >
2023-05-23 10:17:34 +08:00
Eric Lin
a52dcd0d9f
Add DelayCacheUntilActive option to start informers after leader election
...
If scheduler fails to be active (elected if leader election is enabled),
setting this option will not start informers so that to avoid memory
overhead.
Signed-off-by: Eric Lin <exlin@google.com >
2023-05-15 19:52:04 +00:00
Kubernetes Prow Robot
763b10f000
Merge pull request #117421 from cbandy/scheduler-testing-setenv
...
Replace os.Setenv with testing.T.Setenv in tests
2023-05-03 23:54:53 -07:00
SataQiu
1f7c07f355
scheduler: remove deprecated v1beta2 KubeSchedulerConfiguration
2023-05-03 21:43:19 +08:00
Chris Bandy
fc643d2e40
Replace os.Setenv with testing.T.Setenv in tests
...
T.Setenv ensures that the environment is returned to its prior state
when the test ends. It also panics when called from a parallel test to
prevent racy test interdependencies.
2023-04-17 19:34:03 -05:00
Monis Khan
e9866d2794
Clear front proxy headers after authentication is complete
...
This matches the logic we have for the Authorization header as well
as the impersonation headers.
Signed-off-by: Monis Khan <mok@microsoft.com >
2023-03-21 10:51:22 -04:00
tangwz
be080584c6
scheduler(NodeResourcesFit & NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase ( #115655 )
...
* scheduler(NodeResourcesFit): calculatePodResourceRequest in PreScore phase
* scheduler(NodeResourcesFit and NodeResourcesBalancedAllocation): calculatePodResourceRequest in PreScore phase
* modify the comments and tests.
* revert the tests.
* don't need consider nodes.
* use list instead of map.
* add comment for podRequests.
* avoid using negative wording in variable names.
2023-03-10 07:44:53 -08:00
Wei Huang
72863f65d6
Graduate PodSchedulingReadiness to beta
2023-02-17 18:45:20 -08:00
Lucas Severo Alves
6b34fafdaf
Add ctx logging involved in KS startup ( #115588 )
...
* ctx logging involved in startup
as per https://github.com/kubernetes/kubernetes/pull/111155#pullrequestreview-1283257121
* use klog.Background().Error in flag handling
* revert scheduler_perf changes
* refence issue in code comment
* enable ctx logcheck for cmd/kube-scheduler
2023-02-13 09:19:29 -08:00
Kubernetes Prow Robot
4b074c816e
Merge pull request #115298 from knelasevero/StartTestServerCtx
...
Pass context to StartTestServer to get contextualized logger from it during tests
2023-01-30 09:07:12 -08:00
Kubernetes Prow Robot
a94a35293b
Merge pull request #114490 from MadhavJivrajani/update-contention-profiling-docs
...
*: Make docs more accurate for the contention-profiling flag
2023-01-29 17:20:49 -08:00
Lucas Severo Alves
6a06b63554
comment change from t.Fatal to panic
2023-01-25 11:44:12 +01:00
Lucas Severo Alves
636f8e1a3e
chore: changes needed before #111155
2023-01-24 17:55:32 +01:00
Daniel Vega-Myhre
41817b1888
optionally ignore preferred terms of existing pods unless incoming pod
...
has inter-pod affinities
2023-01-13 23:15:53 +00:00
Jordan Liggitt
78cb3862f1
Fix indentation/spacing in comments to render correctly in godoc
2022-12-17 23:27:38 -05:00