Commit Graph

108528 Commits

Author SHA1 Message Date
Mikhail Mazurskiy
29dc50c149 tls.Dial() validates hostname, no need to do that manually
Handshake() is still needed for tls.Client() code path. See https://github.com/kubernetes/kubernetes/pull/109750
2022-05-16 23:26:15 +10:00
Kubernetes Prow Robot
45844049fc
Merge pull request #110062 from wojtek-t/fix_storage_object_count_tracker_registration
Avoid leaking StorageObjectCountTracker goroutine
2022-05-16 06:04:17 -07:00
Francesco Romani
23147ff4b3 e2e: node: devplugin: tolerate node readiness flip
In the AfterEach check of the e2e node device plugin tests,
the tests want really bad to clean up after themselves:
- delete the sample device plugin
- restart again the kubelet
- ensure that after the restart, no stale sample devices
  (provided  by the sample device plugin) are reported anymore.

We observed that in the AfterEach block of these e2e tests
we have quite reliably a flip/flop of the kubelet readiness
state, possibly related to a race with/ a slow runtime/PLEG check.

What happens is that the kubelet readiness state is true,
but goes false for a quick interval and then goes true again
and it's pretty stable after that (observed adding more logs
to the check loop).

The key factor here is the function `getLocalNode` aborts the
test (as in `framework.ExpectNoError`) if the node state is
not ready. So any occurrence of this scenario, even if it
is transient, will cause a test failure. I believe this will
make the e2e test unnecessarily fragile without making it more
correct.

For the purpose of the test we can tolerate this kind of glitches,
with kubelet flip/flopping the ready state, granted that we meet
eventually the final desired condition on which the node reports
ready AND reports no sample devices present - which was the condition
the code was trying to check.

So, we add a variant of `getLocalNode`, which just fetches the
node object the e2e_node framework created, alongside to a flag
reporting the node readiness. The new helper does not make
implicitly the test abort if the node is not ready, just bubbles
up this information.

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 14:22:25 +02:00
Francesco Romani
56c539bff0 e2e: node: deviceplug: deepcopy the pod dev template
Let's avoid unexpected side effects

Signed-off-by: Francesco Romani <fromani@redhat.com>
2022-05-16 14:22:24 +02:00
Wojciech Tyczyński
564b376812 Avoid leaking StorageObjectCountTracker goroutine 2022-05-16 11:12:00 +02:00
FillZpp
85e3194cf6 Fix maxUnavailable of StatefulSet should not less than 1
Signed-off-by: FillZpp <FillZpp.pub@gmail.com>
2022-05-16 16:58:19 +08:00
Kubernetes Prow Robot
22a21f974f
Merge pull request #110063 from wojtek-t/cleanup_testing_namespaces_in_integration
Simplify Create/Delete-TestingNamespace functions
2022-05-16 01:50:18 -07:00
Wojciech Tyczyński
deef9e40de Simplify Create/Delete-TestingNamespace functions 2022-05-15 23:06:26 +02:00
Kubernetes Prow Robot
69cabe778b
Merge pull request #109733 from terloo/master
Unified v1/event NewREST function with other
2022-05-15 06:06:16 -07:00
terloo
8d09083101 Unified v1/event NewREST function with other 2022-05-15 12:44:59 +08:00
Kubernetes Prow Robot
dfee09a27d
Merge pull request #109651 from ash2k/ash2k/spdy-cleanup
Fix issues in SPDY RoundTripper
2022-05-14 21:00:16 -07:00
Kubernetes Prow Robot
8fb2b901ad
Merge pull request #110050 from cpanato/prombot
Update publishing-bot rules for Go 1.17.10
2022-05-14 14:57:17 -07:00
Brian Pursley
db9d5c1e77 Increase csiNodeInfoTimeout from 1 minute to 2 minutes 2022-05-14 16:29:28 -04:00
Kubernetes Prow Robot
8dc9bd3efb
Merge pull request #110021 from RaunakShah/updatecrd
Update snapshot CRDs to v6 in add on folder
2022-05-14 10:59:17 -07:00
Brian Pursley
a8ec462e6f Add unit tests for completion command 2022-05-14 11:12:00 -04:00
Brian Pursley
13e0120bf0 Add unit tests for api-resources and api-versions commands 2022-05-14 11:06:49 -04:00
cpanato
0f553fcda2
Update publishing-bot rules for Go 1.17.10
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-05-14 15:25:44 +02:00
Kubernetes Prow Robot
b11ac8be28
Merge pull request #110047 from pacoxu/kubeadm-docker
kubeadm: container runtime is by default docker in kubelet v1.23
2022-05-14 05:01:17 -07:00
Paco Xu
ab51557a0c kubeadm: container runtime is by default docker in kubelet v1.23
- can be removed in v1.26
2022-05-14 18:31:48 +08:00
Kubernetes Prow Robot
28ab02df19
Merge pull request #110043 from cpanato/go118
[GO] Update Go to 1.18.2
2022-05-14 00:37:18 -07:00
Raunak Pradip Shah
43bd5f8648 Add OneOf 2022-05-14 11:54:37 +05:30
cpanato
90871a0b2f
Update Go to 1.18.2
Signed-off-by: cpanato <ctadeu@gmail.com>
2022-05-14 00:57:15 +02:00
Kubernetes Prow Robot
bbdcce6a9e
Merge pull request #109880 from Jefftree/patch-4
Remove warning log for crd merging
2022-05-13 15:31:54 -07:00
Kubernetes Prow Robot
3441850891
Merge pull request #109987 from gnufied/fix-ephemeral-volume-expansion
Fix resizing of ephemeral volumes
2022-05-13 14:24:06 -07:00
Kubernetes Prow Robot
00f829b352
Merge pull request #109824 from my-git9/kubectlurl
update kubectl doc url
2022-05-13 14:23:55 -07:00
Kubernetes Prow Robot
47bb8c6d0c
Merge pull request #108777 from pjo256/recursive-rollout-status
feat(kubectl rollout): support multiple resources for rollout status
2022-05-13 13:15:55 -07:00
Jefftree
fad5353ef8 Integration test for openapi scale & status 2022-05-13 11:45:31 -07:00
Kubernetes Prow Robot
30adcd0b6c
Merge pull request #110025 from stevekuznetsov/skuznets/skuznets-reviews-storage
apiserver/storage: add myself to the reviewers list
2022-05-13 08:52:01 -07:00
Kubernetes Prow Robot
f7857f0846
Merge pull request #109830 from AllenZMC/fix_test
fix defer in loop, maybe resource leak
2022-05-13 08:51:49 -07:00
Steve Kuznetsov
162450c01c
storage: move some list tests to generic package
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-13 07:41:50 -07:00
Kubernetes Prow Robot
1a6adee3d6
Merge pull request #109753 from matthyx/109577
do not install docker with curl
2022-05-13 07:33:49 -07:00
Takashi Kusumi
187af7781a Fix cluster IP allocator metrics 2022-05-13 22:33:30 +09:00
Matthias Bertschy
d42321dc05 recommend containerd instead of docker, cleanup 2022-05-13 15:25:15 +02:00
Kubernetes Prow Robot
9720d130e4
Merge pull request #110030 from wojtek-t/clean_shutdown_2
Minor cleanups in integration test shutdown
2022-05-13 03:43:48 -07:00
Wojciech Tyczyński
492e7111a0 Minor cleanup of apply tests 2022-05-13 11:37:22 +02:00
Wojciech Tyczyński
89549142c0 Stop leaking apiserver in tracing test 2022-05-13 09:47:24 +02:00
Manish Kumar
f1ed75bcd7 etcd: Build image 3.5.4-0 2022-05-13 13:02:40 +05:30
Kubernetes Prow Robot
9d85e18ec0
Merge pull request #110022 from neolit123/1.25-handle-kubelet-flags-without-dockershim
kubeadm: perform dockershim cleanup for 1.25
2022-05-13 00:14:00 -07:00
Kubernetes Prow Robot
340ba56567
Merge pull request #109989 from tallclair/image-type
Use typed ImageID for imageutils images
2022-05-13 00:13:48 -07:00
Steve Kuznetsov
0d616946c0
apiserver/storage: add myself to the reviewers list
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-12 15:40:45 -07:00
Steve Kuznetsov
a8067f8e86
storage/etcd3: make some list tests generic
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-12 15:13:23 -07:00
Steve Kuznetsov
8fcf00ef91
storage/etcd3: factor out non-paginated list tests
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-12 15:10:38 -07:00
Steve Kuznetsov
31d7a28c65
storage/etcd3: factor store setup into a separate function
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-12 15:10:38 -07:00
Kubernetes Prow Robot
2d08104ee3
Merge pull request #110013 from enj/enj/i/remove_azure_gcp_auth_plugins
Remove gcp and azure auth plugins
2022-05-12 14:57:55 -07:00
Kubernetes Prow Robot
46469f62db
Merge pull request #109971 from stevekuznetsov/skuznets/isolate-continue
storage: move continue token definition to storage
2022-05-12 14:57:48 -07:00
Kubernetes Prow Robot
0e567664ed
Merge pull request #110009 from azylinski/fix-create-cr-scope
Fix requests scope classification
2022-05-12 13:47:48 -07:00
Jeffrey Ying
b1e9162182 Remove warning log for merging meta and scale type 2022-05-12 13:11:45 -07:00
Kubernetes Prow Robot
1be1ec4aa3
Merge pull request #109970 from stevekuznetsov/skuznets/isolate-versioner
storage: move the APIObjectVersioner definition to storage
2022-05-12 12:32:44 -07:00
Kubernetes Prow Robot
6e04ca634d
Merge pull request #109729 from MikeSpreitzer/wrap-weighted-histograms
Wrap weighted histograms
2022-05-12 12:32:32 -07:00
Steve Kuznetsov
e50cb6c8d3
storage: move test utiltiies out of test files
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2022-05-12 11:52:40 -07:00