Commit Graph

4151 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
83d30f4463
Merge pull request #118342 from yt2985/cleanSA
Fix the flaky legacy_service_account_token_clean_up_test.
2023-06-12 22:33:57 -07:00
tinatingyu
9cb52a6872 Fix the flaky legacy_service_account_token_clean_up_test. 2023-06-13 00:11:13 +00:00
Kubernetes Prow Robot
2057a48ee5
Merge pull request #114771 from sanposhiho/scheduling_perf_scheduler_scheduling_attempt_duration_seconds
feature(scheduler_perf): distinguish result in scheduler_scheduling_attempt_duration_seconds metric result
2023-06-07 06:18:13 -07:00
Kubernetes Prow Robot
c3750e4450
Merge pull request #118379 from sttts/sttts-generic-controlplane-1
kube-apiserver/cmd: stratify construction to follow options/config/server pattern
2023-06-07 04:12:13 -07:00
Dr. Stefan Schimanski
7ac36bd072
test/integration: use t.Log in TestAPIServiceWaitOnStart 2023-06-07 10:11:04 +03:00
Dr. Stefan Schimanski
9be6e7bb33
STRUCTURE: cmd/kube-apiserver/app: stratify construction with options/config/server 2023-06-07 10:05:43 +03:00
Dr. Stefan Schimanski
e6ed4c7934
CLEANUP: cmd/kube-apiserver/app: remove trivial funcs 2023-06-07 10:05:43 +03:00
Kubernetes Prow Robot
da1f52034e
Merge pull request #118489 from testwill/logs
chore: os.SEEK_END os.SEEK_SET and use b.Logf(...) instead of b.Log(f…
2023-06-06 19:40:24 -07:00
Kubernetes Prow Robot
aaaf70c8ad
Merge pull request #118411 from SataQiu/fix-NoNewBetaAPIsByDefault-20230602
Remove enabled by default beta resources that have been removed
2023-06-06 10:20:24 -07:00
guoguangwu
bdfb96c57d chore: os.SEEK_END os.SEEK_SET and use b.Logf(...) instead of b.Log(fmt.Sprintf(...)) 2023-06-06 15:23:19 +08:00
Chris Bandy
2e76ac31fd 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-06-05 21:08:56 -05:00
SataQiu
a51be9786b remove enabled by default beta resources that have been removed 2023-06-03 00:06:50 +08:00
Kensei Nakada
a4ea058cc7 feature(scheduler_perf): distinguish result in scheduler_scheduling_attempt_duration_seconds metric result 2023-06-02 14:45:55 +00:00
Jefftree
2111e79f56 Update gnostic references 2023-06-02 14:34:26 +00:00
Kubernetes Prow Robot
2815a28dfa
Merge pull request #118339 from jpbetz/bump-cel-go
Bump cel go to latest version
2023-06-01 09:09:46 -07:00
Joe Betz
68901de898 Enable optionals and add tests 2023-05-31 18:36:50 -04:00
Mengjiao Liu
074900e81b scheduler: update the scheduler interface and cache methods to use contextual logging 2023-05-29 13:26:32 +08:00
Kubernetes Prow Robot
c35a2775b2
Merge pull request #115554 from yt2985/cleanSA
LegacyServiceAccountTokenCleanUp alpha
2023-05-26 08:54:53 -07:00
Kubernetes Prow Robot
03ebd4b7ef
Merge pull request #116656 from HirazawaUi/fik-fd-leaks
Cleanup fd leaks and file removal cleanup
2023-05-24 22:50:50 -07:00
tinatingyu
133eff3df4 implement LegacyServiceAccountTokenCleanUp alpha 2023-05-24 23:20:17 +00:00
Kubernetes Prow Robot
3efd083b6c
Merge pull request #118012 from mengjiao-liu/runtime-framework-pass-context
kube-scheduler: NewFramework function to pass the context parameter
2023-05-24 11:50:49 -07: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
Kubernetes Prow Robot
d2dc976247
Merge pull request #117591 from zshihang/master
graduate LegacyServiceAccountTokenTracking to GA
2023-05-22 16:48:20 -07:00
Kubernetes Prow Robot
ea028befc1
Merge pull request #118053 from aleskandro/fix-nil-affinity-update
Updating the nodeAffinity of gated pods having nil affinity should be allowed
2023-05-22 09:35:09 -07:00
Patrick Ohly
2db577a560 scheduler-perf: inject "benchmark" as name into JSON result filename
This is required because an empty name is no longer supported: the
perf-dashboard is run with --allow-parsers-matching-all-tests=false with causes
perfdash to skip current configuration for BenchmarkPerfResults as it does not
have name
set (4674704f45/perfdash/metrics-downloader.go (L165-L167)).

The perf-dash config needs to be updated accordingly.
2023-05-22 08:07:15 +02:00
Shihang Zhang
182cd425d3 graduate LegacyServiceAccountTokenTracking to GA 2023-05-19 10:33:34 -07:00
Kubernetes Prow Robot
7ad8303b96
Merge pull request #118104 from liggitt/crd-sync
Fix waiting for CRD sync at server start
2023-05-18 11:26:45 -07:00
Jordan Liggitt
e4102d5e30
Test APIService safe handling at startup 2023-05-18 12:17:37 -04:00
aleskandro
4c9887e3eb Updating the nodeAffinity of gated pods having nil affinity should be allowed 2023-05-18 07:44:34 +02:00
Kubernetes Prow Robot
3ac21a5a30
Merge pull request #117113 from pohly/test-integration-race-detection-scheduler
test/integration/scheduler: fix data races
2023-05-17 21:26:33 -07:00
Patrick Ohly
9e9a6cde4b test/integration/scheduler: fix data races
The plugins get called by scheduler goroutines. At least the polling seems to
be done concurrently and thus needs locking.

Locking the PreBindPlugin state is less obvious. It might be that the scheduler
is really done with the test pod, but that ordering doesn't seem to be enough
for the race detector. It's simpler to add mutex locking.
2023-05-17 17:10:09 +02:00
kerthcet
0616d15712 Fix perf-test by increasing the error margin
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-17 12:14:06 +08:00
Kubernetes Prow Robot
f84ff3d052
Merge pull request #117813 from pohly/scheduler-perf-test-runtime
scheduler-perf: measure workload runtime and relabel workloads
2023-05-15 12:19:18 -07:00
Patrick Ohly
d85b91f343 scheduler-perf: measure workload runtime and relabel workloads
The goal is to only label workloads as "performance" which actually run long
enough to provide useful metrics. The throughput collector samples once per
second, so a workload should run at least 5, better 10 seconds to get at least
a minimal amount of samples for the percentile calculation.

For benchstat analysis of runs with sufficient repetitions to get statistically
meaningful results, each workload shouldn't run more than one minute, otherwise
before/after analysis becomes too slow.

The labels were chosen based on benchmark runs on a reasonably fast desktop. To
know how long each workload takes, a new "runtime_seconds" benchmark result
gets added.
2023-05-15 14:33:40 +02:00
Kubernetes Prow Robot
8479db5876
Merge pull request #117946 from lavalamp/lavalamp-taking-a-break
lavalamp is taking a long break
2023-05-12 14:34:47 -07:00
Daniel Smith
1ffe3f467e lavalamp is taking a long break 2023-05-11 16:43:38 +00:00
Kubernetes Prow Robot
64af2d93e5
Merge pull request #117295 from aojea/transport_cache_metrics
add new metric for the internal client-go cache size
2023-05-11 08:59:02 -07:00
Antonio Ojea
3f3e1d507d add new metrics for the internal client-go transport generator
Add two new metrics to monitor the client-go logic that
generate http.Transports for the clients.

- rest_client_transport_cache_entries is a gauge metrics
with the number of existin entries in the internal cache

- rest_client_transport_create_calls_total is a counter
that increments each time a new transport is created, storing
the result of the operation needed to generate it: hit, miss
or uncacheable

Change-Id: I2d8bde25281153d8f8e8faa249385edde3c1cb39
2023-05-11 09:07:11 +00:00
Kubernetes Prow Robot
8b33eaa0a7
Merge pull request #116207 from pohly/dra-scheduler-perf
scheduler_perf: dynamic resource allocation test cases
2023-05-10 10:58:59 -07:00
Kubernetes Prow Robot
65c13c5c21
Merge pull request #117836 from ruquanzhao/addPodUID
Passing podUID in AddReference and DeleteReference
2023-05-10 00:18:59 -07:00
Kubernetes Prow Robot
a9b08f4cc2
Merge pull request #117642 from carlory/fix-001
remove ability to re-enable serving deprecated node.k8s.io/v1beta1 types
2023-05-09 09:35:56 -07:00
HirazawaUi
5289a7b029 fix fd leaks and failed file removing for test directory 2023-05-09 09:22:31 -05:00
Min Ni
e865b30abd
update serial number to a valid non-zero number in ca certificate (#117791)
* update serial number to a valid non-zero number in ca certificate

* fix the existing problem (0 SerialNumber in all certificate) as part of this PR in a separate commit
2023-05-09 06:34:08 -07:00
Kubernetes Prow Robot
6442024f1c
Merge pull request #116779 from jpbetz/cel-ratcheting
Controlled rollout of CEL libraries and language feautres
2023-05-08 09:51:40 -07:00
Joe Betz
e740f8340e Introduce CEL EnvSets for managing safe rollout of new CEL features, libraries and expression variables 2023-05-08 11:52:31 -04:00
Kubernetes Prow Robot
a8e3344634
Merge pull request #115452 from my-git9/cleanup/sts
Cleanup: modify some sentences about statefulset
2023-05-07 19:47:29 -07:00
RuquanZhao
936265e870 Add podUID in AddReference and DeleteReference
Signed-off-by: Ruquan Zhao <ruquan.zhao@arm.com>
2023-05-06 13:58:14 +08:00
Kubernetes Prow Robot
8a58c00c2a
Merge pull request #117735 from nilekhc/fix-TestKMSv2Healthz-flake
[KMSv2] fix: fixes flake in TestKMSv2Healthz
2023-05-04 15:45:33 -07:00
Patrick Ohly
034528a9f0 scheduler perf: add DynamicResourceAllocation test cases
The default scheduler configuration must be based on the v1 API where the
plugin is enabled by default. Then if (and only if) the
DynamicResourceAllocation feature gate for a test is set, the corresponding
API group also gets enabled.

The normal dynamic resource claim controller is started if needed to create
ResourceClaims from ResourceClaimTemplates.

Without the upcoming optimizations in the scheduler, scheduling with dynamic
resources is fairly slow. The new test cases take around 15 minutes wall clock
time on my desktop.
2023-05-04 13:08:06 +02:00
Kubernetes Prow Robot
fb5e90e5d7
Merge pull request #116634 from kerthcet/feat/integration-test-performance
Improve integration test performance in scheduler
2023-05-04 01:46:42 -07:00