Commit Graph

106515 Commits

Author SHA1 Message Date
Abu Kashem
2ae70e85d2
fix flake in TestTimeoutHeaders 2022-02-07 14:38:34 -05:00
Madhav Jivrajani
7f2aa7ad3a cacher: Use watchCacheInterval to reduce lock contention
- Modify GetAllEventsSinceThreadUnsafe to return a watchCacheInterval
- Modify Watch() to compute a watchCacheInterval rather than a slice
  of all "initEvents" and pass this interval to process()
- Use interval::Next() to obtain events to process rather than obtain
  them all at once
- Modify tests accordingly to use interval
- On invalidation, stop processing and stop the watch.
- Make indexValidator injectable for testing
- Add unit test for verifying the behaviour of stopping the watch.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2022-02-07 19:59:22 +05:30
Kubernetes Prow Robot
9f791bbf5b
Merge pull request #107982 from SataQiu/fix-duplicated-altnames
kubeadm: fix the bug that 'kubeadm certs generate-csr' command does not remove duplicated SANs
2022-02-07 05:25:44 -08:00
Kubernetes Prow Robot
a266805f33
Merge pull request #107971 from liggitt/kubelet-round-trip
Fix kubelet cri round trip test
2022-02-07 02:01:45 -08:00
SataQiu
dcf959c782 kubeadm: fix the bug that 'kubeadm certs generate-csr' command does not remove duplicated SANs 2022-02-07 17:12:38 +08:00
hxie
83974e4940 Remove option 'T' from wget on Windows
Command 'wget' in Windows image agnhost does not support option timeout,
this test fails:
  - should be able to up and down services
2022-02-07 00:38:07 -08:00
Kubernetes Prow Robot
e1c16d24a1
Merge pull request #107975 from tkashem/refactor-webhook-duration
refactor: rename webhook duration tracker
2022-02-07 00:23:43 -08:00
Patrick Ohly
c62d7407c8 scheduler_perf: dump test data when writing it failed
Occasionally, writing as JSON failed because a NaN float couldn't be
encoded. The extended log message helps understand where that comes from, for
example:

F0120 20:24:45.515745  511835 scheduler_perf_test.go:540] BenchmarkPerfScheduling: unable to write measured data {Version:v1 DataItems:[{Data:map[Average:35.714285714285715 Perc50:2 Perc90:36 Perc95:412 Perc99:412] Unit:pods/s Labels:map[Metric:SchedulingThroughput Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:27.863967530999993 Perc50:13.925925925925926 Perc90:30.06711409395973 Perc95:31.85682326621924 Perc99:704] Unit:ms Labels:map[Metric:scheduler_e2e_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:11915.651577744 Perc50:15168.796680497926 Perc90:19417.759336099585 Perc95:19948.87966804979 Perc99:20373.77593360996] Unit:ms Labels:map[Metric:scheduler_pod_scheduling_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2]} {Data:map[Average:1.1865832049999983 Perc50:0.7636363636363637 Perc90:2.891903719912473 Perc95:3.066958424507659 Perc99:5.333333333333334] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Filter]} {Data:map[Average:NaN Perc50:NaN Perc90:NaN Perc95:NaN Perc99:NaN] Unit:ms Labels:map[Metric:scheduler_framework_extension_point_duration_seconds Name:BenchmarkPerfScheduling/PreemptionPVs/500Nodes/namespace-2 extension_point:Score]}]}: json: unsupported value: NaN
2022-02-07 08:59:19 +01:00
Patrick Ohly
8d44b819b3 scheduler_perf: avoid ambiguous test names
"-bench=PerfScheduling/Preemption/500Nodes" ran both the
PerfScheduling/Preemption/500Nodes and the
PerfScheduling/PreemptionPVs/500Nodes benchmark.

This can be avoided by choosing names where none is the prefix of another.
2022-02-07 08:59:19 +01:00
Patrick Ohly
535d885c29 test: fix info message for etcd startup
The output redirection in the info message did not match the actual
invocation (stdout and stderr swapped).
2022-02-07 08:59:19 +01:00
Patrick Ohly
259a8ad0b7 test: allow controlling etcd log level
When running an integration test that measures performance, like for example
test/integration/scheduler_perf, running etcd with debug level output is
undesirable because it creates additional load on the system and isn't
realistic.

The default is still "debug", but ETCD_LOGLEVEL=warn can be used to override
that.
2022-02-07 08:59:19 +01:00
Patrick Ohly
1f341ee7b5 kube-scheduler: downgrade namespace log message from "error" to "info"
GetNamespaceLabelsSnapshot has a fallback when it gets errors when looking up a
namespace, therefore reporting the error is more informational than a real
error. In particular, not finding the namespace is normal when running
test/integration/scheduler_perf and happens so frequently that there is a lot
of output on stderr:

E0120 12:19:09.204768   95305 plugin.go:138] "getting namespace, assuming empty set of namespace labels" err="namespace \"namespace-1\" not found" namespace="namespace-1"
2022-02-07 08:59:19 +01:00
Marcus Puckett
8b541910c0 Update tests to account for new describe line for IngressClassName 2022-02-06 19:07:59 -08:00
Kubernetes Prow Robot
7f9fb6eaf0
Merge pull request #107877 from endocrimes/dani/default-no-docker
make test-e2e-node: default to containerd
2022-02-06 15:32:52 -08:00
sanposhiho
ed23e2162a Add log to see the extender's error 2022-02-07 02:50:08 +09:00
Jordan Liggitt
3a132bd206 Fix kubelet cri round trip test 2022-02-05 17:59:29 -05:00
Jordan Liggitt
064763ebdd Make JSON schema round tripping test more strict 2022-02-05 16:57:34 -05:00
Kubernetes Prow Robot
9b09612d1b
Merge pull request #107656 from dims/add-labels-when-there-are-sig-aliases-used-in-approvers-reviewers
Add labels when there sig aliases used in approvers/reviewers
2022-02-05 02:20:50 -08:00
Kubernetes Prow Robot
a274ec0afa
Merge pull request #107348 from smarterclayton/warn_about_admission
release-note: Describe issues around node admission in 1.22
2022-02-04 22:54:50 -08:00
Kubernetes Prow Robot
04969280be
Merge pull request #107961 from liggitt/x509
Add 1.23 release note for x509 commonname
2022-02-04 21:50:50 -08:00
Kubernetes Prow Robot
8dee712448
Merge pull request #107956 from benluddy/xvalidations-deepcopy
Deeply copy JSONSchemaProps.XValidations.
2022-02-04 20:18:56 -08:00
Jordan Liggitt
8dde08711f Add 1.23 release note for x509 commonname 2022-02-04 21:00:48 -05:00
Kubernetes Prow Robot
6410ddaba9
Merge pull request #107623 from bbarnes52/podtopologyoptimization
Optimize pod topology spread performance
2022-02-04 15:58:58 -08:00
Clayton Coleman
28198919f8
release-note: Describe issues around node admission in 1.22
The 1.22 release fixed an issue where pods that were terminating
were not always properly accounting for the resources they used.
As a consequence, certain workloads that saturate a single node with
pods may see increased pod creation failures until existing pods
fully terminate. Inform users of that change and link to where we
will resolve in the future.
2022-02-04 16:41:11 -05:00
Kubernetes Prow Robot
469c4c4a30
Merge pull request #106715 from aojea/dual_hostnet_pods
set secondary address on host-network pods
2022-02-04 12:17:30 -08:00
Ben Luddy
5af2984a37
Deeply copy JSONSchemaProps.XValidations. 2022-02-04 14:26:04 -05:00
Kubernetes Prow Robot
2a2e3db782
Merge pull request #107947 from soltysh/show_managedfields
Make ShowManagedFields public so printers users can tweak the value
2022-02-04 11:13:31 -08:00
Brian Barnes
4222d3a48e optimize pod topology spread 2022-02-04 10:27:58 -08:00
Kubernetes Prow Robot
c1190f5aa2
Merge pull request #107935 from ravisantoshgudimetla/wire-contexts-disruption
Wire contexts to Disruption controllers
2022-02-04 10:08:13 -08:00
Kubernetes Prow Robot
8f5a12d701
Merge pull request #107924 from gnufied/fix-reconciler-flake
fix flake in detach tests
2022-02-04 10:08:01 -08:00
Antonio Ojea
bc8e7ac1a0 ignore CRI PodSandboxNetworkStatus for host network pods 2022-02-04 18:41:57 +01:00
Kubernetes Prow Robot
cd6e0ece04
Merge pull request #107942 from BenTheElder/root-owners-approvers-are-reviewers
for ./OWNERS, ensure approvers are in reviewers and emeritus approver…
2022-02-04 08:40:01 -08:00
Wojciech Tyczyński
90a77bc482 DeleteCollection respects context cancellation 2022-02-04 17:01:47 +01:00
ravisantoshgudimetla
65ff81757d Wire contexts to Disruption controllers 2022-02-04 10:32:04 -05:00
Maciej Szulik
47d8450c90
Make ShowManagedFields public so printers users can tweak the value 2022-02-04 14:00:03 +01:00
Kubernetes Prow Robot
76cdb57ccf
Merge pull request #107941 from MikeSpreitzer/fix-serve-prom-typo
Fixed typo in hack/serve-prom-scrapes.sh
2022-02-04 02:41:59 -08:00
Benjamin Elder
4e635ae042 for ./OWNERS, ensure approvers are in reviewers and emeritus approvers are not in reviewers 2022-02-03 22:43:04 -08:00
Mike Spreitzer
3e44d95857 Fixed typo in hack/serve-prom-scrapes.sh 2022-02-04 01:33:06 -05:00
Kubernetes Prow Robot
8e5089ad17
Merge pull request #107666 from aojea/dualga
dual-stack feature gate ga
2022-02-03 21:25:59 -08:00
Kubernetes Prow Robot
39931456db
Merge pull request #107740 from brianpursley/legacy-script-fixes
legacy-script.sh fixes - junit output and add missing record_command
2022-02-03 17:34:00 -08:00
Kubernetes Prow Robot
d3c1e26c7f
Merge pull request #105297 from jackfrancis/RunCordonOrUncordon-nil
RunCordonOrUncordon error if drainer has nil Ctx or Client
2022-02-03 16:32:00 -08:00
Kubernetes Prow Robot
c1f2fbf65a
Merge pull request #107940 from csantanapr/update-changelog-owners-124
Update CHANGELOG OWNERS with 1.24 release note team members
2022-02-03 15:18:57 -08:00
Carlos Santana
81dfbd7bb0 Update CHANGELOG OWNERS with 1.24 release note team members
Signed-off-by: Carlos Santana <csantana23@gmail.com>
2022-02-03 17:16:34 -05:00
Kubernetes Prow Robot
7efc928dfa
Merge pull request #107764 from heybronson/wrap-error
wrap error from RunCordonOrUncordon
2022-02-03 12:22:58 -08:00
Sebastian Sterk
efdfaab301
Update pkg/apis/coordination/validation/validation.go
Co-authored-by: Katrina Verey <kn.verey@gmail.com>
2022-02-03 18:25:43 +01:00
Kubernetes Prow Robot
adbda068c1
Merge pull request #106015 from ahrtr/replace_ioutil_with_io_os_test
Replace ioutil with os and io for the test
2022-02-03 04:31:44 -08:00
Kubernetes Prow Robot
a5e70054bd
Merge pull request #107162 from ardaguclu/invalidate-cache-after-delete
Add manually invalidate cache documentation into delete
2022-02-02 23:51:45 -08:00
Kubernetes Prow Robot
1f88942501
Merge pull request #107832 from adisky/fix-ubuntu-containerd-install
[CI Job failure] Fix job containerd-e2e-ubuntu
2022-02-02 20:51:45 -08:00
brianpursley
e120f11438 Change legacy-script.sh to produce junit output in location set by the
ARTIFACTS environment variables if KUBE_JUNIT_REPORT_DIR is not set.

Add missing record_command to a couple of tests in legacy-script.sh.

Fix some typos in /test/cmd/README.md
2022-02-02 21:51:15 -05:00
Kubernetes Prow Robot
baad1caee9
Merge pull request #107900 from smarterclayton/pr-107854
kubelet: Pods that have terminated before starting should not block startup
2022-02-02 15:51:45 -08:00