Commit Graph

116561 Commits

Author SHA1 Message Date
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
Kubernetes Prow Robot
fea314a89a
Merge pull request #117423 from cbandy/test-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-06-06 10:20:12 -07:00
Kubernetes Prow Robot
6f116dc4d5
Merge pull request #118416 from sttts/sttts-etcd-options-complete
k8s.io/apiserver: remove skewed completion from EtcdOptions
2023-06-06 09:20:22 -07:00
Kubernetes Prow Robot
bfb3c37410
Merge pull request #117294 from humblec/open-containers
dependencies: update go-humanize to latest version
2023-06-06 09:20:11 -07:00
Antonio Ojea
26801d6541 kube-proxy avoid race condition using LocalModeNodeCIDR
Since kube-proxy in LocalModeNodeCIDR needs to obtain the PodCIDR
assigned to the node it watches for the Node object.

However, kube-proxy startup process requires to have these watches in
different places, that opens the possibility of having a race condition
if the same node is recreated and a different PodCIDR is assigned.

Initializing the second watch with the value obtained in the first one
allows us to detect this situation.

Change-Id: I6adeedb6914ad2afd3e0694dcab619c2a66135f8
Signed-off-by: Antonio Ojea <aojea@google.com>
2023-06-06 15:03:22 +00:00
SataQiu
4dbece1e20 e2e-framework: remove node-role.kubernetes.io/master taint from non-blocking-taints 2023-06-06 22:19:55 +08:00
Kubernetes Prow Robot
f812ac5445
Merge pull request #118349 from bart0sh/PR116-fix-ginkgo-deprecation-warning
Fix ginkgo deprecation warning
2023-06-06 06:59:01 -07:00
Kubernetes Prow Robot
93ec57734f
Merge pull request #118362 from linxiulei/zero_copy
Do not copy bytes for cached serializations
2023-06-06 05:33:00 -07:00
Rajalakshmi Girish
dddbecb47e prune's xml files to display only top level tests and failed sub-tests 2023-06-06 05:26:00 -07:00
Paco Xu
8b0a6ed699 re-send the shutdown signal in case the dbus restart is not done 2023-06-06 18:04:29 +08:00
Jan Safranek
4d0e25151d Fix SELinux contexts used in e2e tests 2023-06-06 11:30:27 +02:00
Humble Chirammal
010343562c dependencies: update github.com/dustin/go-humanize v1.0.1
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-06-06 14:45:00 +05:30
Paco Xu
743e5525ed fix eviction failing test for nil feature gates assignment 2023-06-06 17:05:04 +08:00
Madhav Jivrajani
6d66fbc6b6 storage: Move cacher tests to reside with the cacher code
Doing this allows us to implement some more nuanced cacher manipulations
to be used in testing. For ex: implementing a test-only compaction method
for the watch cache.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 14:11:03 +05:30
Madhav Jivrajani
70978e4af6 cacher: Move common testing utils to a single file
This commit prepares for when cacher tests are moved here
from the `tests` package. Tests in that package redeclare
some of the testing utils that exist here, so dedup-ing them.

This commit also adapts to any changes in test util signatures.
There are still some utils that can be reused but currently are
highly specific to some tests. (ex: watch_cache_test.go)

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 14:08:25 +05:30
Kubernetes Prow Robot
d220ecb415
Merge pull request #118486 from testwill/framework
chore: use strings.Contains instead
2023-06-06 00:39:00 -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
Kubernetes Prow Robot
16cbdef00a
Merge pull request #118330 from MadhavJivrajani/test-watch-from-zero
storage: Implement TestWatchFromZero for cacher
2023-06-05 23:41:00 -07:00
guoguangwu
923db7bd8e chore: use strings.Contains instead 2023-06-06 14:29:20 +08:00
Dr. Stefan Schimanski
e9e4acb1dd
k8s.io/apiserver: remove skewed completion from EtcdOptions 2023-06-06 08:32:34 +03:00
Madhav Jivrajani
4d85a1f00c storage: Implement TestWatchFromZero for cacher
There exists a storage test to test for rv=0 and production
of ADDED events. This commit adapts the test to be used for
the watch cache as well.

Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>
2023-06-06 10:53:04 +05:30
Kubernetes Prow Robot
587f0a2210
Merge pull request #118467 from yuanchen8911/naming
Rename scheduler queue variables for consistency
2023-06-05 22:20:59 -07: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
Stephen Heywood
5d4bf0b6f9 Promote CSIDriver e2e test to Conformance 2023-06-06 10:28:39 +12:00
Kubernetes Prow Robot
c07c739f04
Merge pull request #118282 from wojtek-t/retry_after_followup
Follow up from dynamic retryAfter
2023-06-05 15:03:06 -07:00
Eric Lin
3085b57869 Do not copy bytes for cached serializations
Since cachingObject has the encoded data cached and they are not
supposed to change. It's memory efficient to just copy the slice
references.

Signed-off-by: Eric Lin <exlin@google.com>
2023-06-05 18:03:48 +00:00
Humble Chirammal
c009667c6c deprecate CephFS plugin from available in-tree drivers.
https://groups.google.com/a/kubernetes.io/g/dev/c/g8rwL-qnQhk
based on above, the consensus was to start the deprecation in v1.28.

This commit start the deprecation process of CephFS plugin from
in-tree drivers.

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2023-06-05 23:26:43 +05:30
Kubernetes Prow Robot
2901730626
Merge pull request #118451 from jingxu97/june/podonly
Add mininumKubelet tag into ReadWriteOncePod test
2023-06-05 10:51:27 -07:00
TommyStarK
1fcfd1d509 pkg/util/iptables: use buf.String() instead of string(buf.Bytes())
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-05 19:47:47 +02:00
Yuan Chen
9eaa50cc82 Rename scheduler queue variables for consistency 2023-06-05 09:02:06 -07:00
Kubernetes Prow Robot
bba9833c39
Merge pull request #118404 from pohly/verify-failures
better JUnit failure messages for golangci-lint and verify in general
2023-06-05 08:31:26 -07:00
Kubernetes Prow Robot
34abd36e88
Merge pull request #118443 from TommyStarK/kubectl-clean-code-bytes-buffer
kubectl: use bytes.Buffer.String
2023-06-05 07:31:38 -07:00
Kubernetes Prow Robot
43dd3cce73
Merge pull request #118413 from mimowo/fix-backoff-delay-computation
Adjust the algorithm for computing the pod finish time
2023-06-05 07:31:26 -07:00
jay vyas
6195f96e56
minor fix comments in netpol so its easy to understand the tests for newcomers, remove one misleading comment (#118264)
* Fix comments in the netpol tests for new contributors to understand them better

* typo
2023-06-05 05:31:25 -07:00
Kubernetes Prow Robot
72a3990728
Merge pull request #118442 from SataQiu/clean-scheduler-20230604
Scheduler: fix code style issues for pkg/scheduler
2023-06-05 04:13:25 -07:00
SataQiu
410b6023d6 scheduler: fix code style issues for pkg/scheduler 2023-06-05 17:29:49 +08:00
Michal Wozniak
71ab7dc791 Remarks 2023-06-05 10:48:32 +02:00
Michal Wozniak
70d3bb43e5 Adjust the algorithm for computing the pod finish time
Change-Id: Ic282a57169cab8dc498574f08b081914218a1039
2023-06-05 10:06:56 +02:00
jinxu
b994e639a6 Add mininumKubelet tag into ReadWriteOncePod test
ReadWriteOncePod feature needs min requirement of 1.27 kubelet, add the
tag to skip test if kubelet version is smaller than 1.27

Change-Id: I27959156db90f2477cead6dfc16f42dbc54663bc
2023-06-04 23:10:10 -07:00
Sascha Grunert
db9fcfeed2
Move cri/streaming to k8s.io/kubelet staging repository
Container runtimes like CRI-O and containerd reuse the code by copying
it from Kubernetes. To have a single source of truth for the streaming
server we now move the already isolated implementation to the
k8s.io/kubelet staging repository. This way runtimes can re-use the code
without copying the parts.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2023-06-05 08:08:18 +02:00
TommyStarK
da4a8d831b kubectl: use bytes.Buffer.String
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2023-06-04 15:45:24 +02:00
Kubernetes Prow Robot
eca1f9d2d5
Merge pull request #118433 from testwill/ipvs
chore: should use buf.String() instead of string(buf.Bytes())
2023-06-04 02:54:41 -07:00
Kubernetes Prow Robot
bb87860868
Merge pull request #118356 from ritazh/ec-admission
Add ephemeralcontainer to imagepolicy securityaccount admission plugin
2023-06-03 05:30:41 -07:00
guoguangwu
fd92acba5a chore: should use buf.String() instead of string(buf.Bytes()) 2023-06-03 13:48:15 +08:00
Kubernetes Prow Robot
039ae1edf5
Merge pull request #118414 from thockin/remove_codegen_debug
Fix errant debugging code in codegen
2023-06-02 13:58:41 -07:00
Antoine Pelisse
20866b3f85 dryrun: Don't reuse current object for conversion
dry-run and non-dry-run are currently a little different since dry-run
was using the destination object to get the current status. That causes
a weird duplication bug with the HorizontalPodAutoscaler conversion
code. Addresses the bug by using an empty object for the current state
and keep the destination for its actual "out" purpose.
2023-06-02 13:40:48 -07:00
Dr. Stefan Schimanski
f351c6d1ec
k8s.io/apiserver: apply storage object count tracker implicitly 2023-06-02 20:24:06 +02:00
Tim Hockin
45c9e06616
Fix errant debugging code in codegen 2023-06-02 10:09:51 -07:00
Kubernetes Prow Robot
bd0ac4cba3
Merge pull request #118384 from Jefftree/gnostic-models-branch
Update gnostic library to point to gnostic-models
2023-06-02 10:06:53 -07:00
SataQiu
a51be9786b remove enabled by default beta resources that have been removed 2023-06-03 00:06:50 +08:00