Commit Graph

115766 Commits

Author SHA1 Message Date
Timo Reimann
0fcf42f321 Move test double queue to test file and unexport 2023-05-01 20:18:14 +02:00
Timo Reimann
208af2d1d8 Localize SpyWorkQueue to cloud-provider for now 2023-05-01 20:18:14 +02:00
Timo Reimann
a15013ec8b Document RetryError properly 2023-05-01 20:18:14 +02:00
Timo Reimann
73bc9861d2 Improve error logging in processNextServiceItem 2023-05-01 20:18:14 +02:00
Timo Reimann
18e978a89d Improve RetryError GoDocs 2023-05-01 20:18:14 +02:00
Kubernetes Prow Robot
32703dec0f
Merge pull request #117623 from skitt/intstr-fromint32-api-machinery
API machinery: use new intstr functions
2023-05-01 11:18:07 -07:00
Kubernetes Prow Robot
540f478774
Merge pull request #117622 from skitt/intstr-fromint32-api
API: use new intstr functions
2023-05-01 11:17:55 -07:00
Kubernetes Prow Robot
5053b43d34
Merge pull request #117629 from skitt/intstr-fromint32-cloud-registry
Registry: use new intstr functions
2023-05-01 10:20:30 -07:00
Kubernetes Prow Robot
34d6b92a8c
Merge pull request #117576 from wzshiming/fix/clientcmd-localtion-of-origin
Fix LocationOfOrigin shows up unexpectedly
2023-05-01 10:20:18 -07:00
Jefftree
de34540248 Update kube-openapi to fix race 2023-05-01 17:19:03 +00:00
Kubernetes Prow Robot
d33853edcf
Merge pull request #117253 from akhilerm/update-containerd-dependencies
dependencies: update cgroups, ttrpc, ebpf versions
2023-05-01 08:50:18 -07:00
Shiming Zhang
d0677f528c Add json tag 2023-05-01 23:05:32 +08:00
charles-chenzz
aaa30439bd reduce util pkg for testing in tempdir. 2023-05-01 19:58:41 +08:00
Stephen Kitt
026e7c7cb3
registry: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:45 +02:00
Stephen Kitt
0ee9f1b7a7
kubelet: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:35 +02:00
Stephen Kitt
1c4b97ea27
network: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:30 +02:00
Stephen Kitt
5bfe738af2
apps: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:17:05 +02:00
Stephen Kitt
94410ee807
api-machinery: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:16:27 +02:00
Stephen Kitt
4911e9de4a
api: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2023-05-01 09:16:15 +02:00
Kubernetes Prow Robot
f871d5fabe
Merge pull request #116665 from skitt/intstr-fromint32
intstr: add constructor from int32, deprecate int constructor
2023-04-30 23:08:17 -07:00
Timo Reimann
fc8b4657c1 Add tests 2023-04-30 22:43:56 +02:00
Timo Reimann
ea4ce5dc28 Alias api/errors instead of stdlib errors 2023-04-30 22:37:34 +02:00
Timo Reimann
a179203bdb Support specifying custom LB retry period from cloud provider
This change allows cloud providers to specify a custom retry period by
returning a RetryError. The purpose is to bypass the work queue-driven
exponential backoff algorithm when there is no need to back off.

Specifically, this can be the case when a cloud load balancer operation
such as a create or delete is still pending and the cloud API should be
polled for completion at a constant interval. A backoff algorithm would
not always be reasonable to apply here since there is no API or
performance degradation warranting an increasing wait time between API
requests.
2023-04-30 22:37:34 +02:00
Kubernetes Prow Robot
4115b2b180
Merge pull request #117664 from carlory/fix-006
Remove ability to re-enable serving deprecated discoveryv1beta1 APIs
2023-04-30 08:18:16 -07:00
carlory
da922f0af6 Remove ability to re-enable serving deprecated discoveryv1beta1 APIs 2023-04-30 19:21:46 +08:00
Kubernetes Prow Robot
f47d7f3a16
Merge pull request #117690 from pacoxu/revert-117297-proxy-startup-config
Revert "proxy startup-time config handling cleanup"
2023-04-30 03:08:17 -07:00
Kubernetes Prow Robot
bc872028ab
Merge pull request #117660 from pacoxu/UpgradeAddonsBeforeControlPlane
kubeadm: add deprecated FG UpgradeAddonsBeforeControlPlane
2023-04-29 20:50:17 -07:00
Kubernetes Prow Robot
7278eaddca
Merge pull request #117661 from carlory/fix-004
Remove ability to re-enable serving deprecated autoscalingapiv2beta APIs
2023-04-29 19:52:23 -07:00
Kubernetes Prow Robot
141e207219
Merge pull request #117347 from mohitsharma-in/deps-update/warnings-v0.1.2
dependencies : update gopkg.in/warnings.v0 v0.1.2
2023-04-29 19:52:16 -07:00
Paco Xu
e28f3de656
Revert "proxy startup-time config handling cleanup" 2023-04-30 09:05:42 +08:00
Kubernetes Prow Robot
760cb9042d
Merge pull request #117425 from cbandy/apimachinery-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-04-29 12:12:28 -07:00
Kubernetes Prow Robot
b4c6a70927
Merge pull request #117230 from pohly/scheduler-perf-throughput
scheduler_perf: update throughputCollector
2023-04-29 12:12:17 -07:00
Arda Güçlü
d94c733ee2
Use absolute path instead requestURI in openapiv3 discovery (#117495)
Currently, openapiv3 discovery uses requestURI to discover resources.
However, that does not work when the rest endpoint contains prefixes
(e.g. `http://localhost/test-endpoint/`).
Because requestURI overwrites prefixes also in rest endpoint
(e.g. `http://localhost/openapiv3/apis/apps/v1`).

Since `absPath` keeps the prefixes in the rest endpoint,
this PR changes to absPath instead requestURI.
2023-04-29 08:28:27 -07:00
Kubernetes Prow Robot
8353d4623b
Merge pull request #117427 from cbandy/pkg-testing-setenv
Replace os.Setenv with testing.T.Setenv in tests
2023-04-29 08:28:16 -07:00
Mohit Sharma
34d3c7520b
update Deps gopkg.in/warnings.v0 v0.1.1 to v0.1.2 2023-04-29 14:27:35 +05:30
carlory
944a4cd311 Remove ability to re-enable serving deprecated autoscalingapiv2beta APIs 2023-04-29 16:51:48 +08:00
Kubernetes Prow Robot
d8bdddcab4
Merge pull request #117531 from mfordjody/master
remove validation GCE-ism
2023-04-28 18:28:16 -07:00
Kubernetes Prow Robot
c5aead3987
Merge pull request #117678 from msau42/changelog
Correct the changelog for GlusterFS removal in 1.26.
2023-04-28 17:32:23 -07:00
Kubernetes Prow Robot
e8130ba572
Merge pull request #117297 from danwinship/proxy-startup-config
proxy startup-time config handling cleanup
2023-04-28 17:32:16 -07:00
Kubernetes Prow Robot
54284f1068
Merge pull request #117657 from tzneal/add-init-container-restart-test
test for init container restarts
2023-04-28 15:40:16 -07:00
Michelle Au
671a3f43fd Correct the changelog for GlusterFS removal in 1.26. 2023-04-28 22:03:31 +00:00
Kubernetes Prow Robot
be7b2eeec6
Merge pull request #117671 from pawbana/enable-auth-provider-in-test
Set ENABLE_AUTH_PROVIDER_GCP to true in gce tests
2023-04-28 14:14:27 -07:00
Kubernetes Prow Robot
9df749c597
Merge pull request #117349 from mohitsharma-in/deps-update/natefinch-lumberjack.v2
dependencies :  update  gopkg.in/natefinch/lumberjack.v2 v2.0.0 to v2.2.1
2023-04-28 14:14:16 -07:00
Todd Neal
28c573358b test for init container restarts
Refactor tests and add an additional one to ensure init containers
don't restart upon regular container restart.
2023-04-28 13:13:55 -05:00
Kubernetes Prow Robot
4ca7bcec24
Merge pull request #117665 from carlory/fix-007
Remove ability to re-enable serving deprecated eventv1beta1 APIs
2023-04-28 11:08:27 -07:00
Kubernetes Prow Robot
f2073fff6c
Merge pull request #117662 from carlory/fix-005
Remove ability to re-enable serving deprecated batchapiv1beta1 APIs
2023-04-28 11:08:15 -07:00
Kubernetes Prow Robot
51edcd963e
Merge pull request #115019 from Nordix/nodeip-as-lbip
Allow node addresses to be used as loadBalancer addresses for proxy-mode=ipvs
2023-04-28 09:14:16 -07:00
Swati Sehgal
d727df1741 node: device-plugin: e2e: Additional test cases
Additional test cases added:
Keeps device plugin assignments across pod and kubelet restarts (no device plugin re-registration)
Keeps device plugin assignments after the device plugin has re-registered (no kubelet or pod restart)

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-28 14:45:21 +01:00
Swati Sehgal
3dbb741c97 node: device-plugin: add node reboot test scenario
Add a test suit to simulate node reboot (achieved by removing pods
using CRI API before kubelet is restarted).

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-28 14:45:21 +01:00
Swati Sehgal
a26f4d855d node: device-plugin: e2e: Capture pod admission failure
This test captures that scenario where after kubelet restart,
application pod comes up and the device plugin pod hasn't re-registered
itself, the pod fails with admission error. It is worth noting that
once the device plugin pod has registered itself, another
application pod requesting devices ends up running
successfully.

For the test case where kubelet is restarted and device plugin
has re-registered without involving pod restart, since the
pod after kubelet restart ends up with admission error,
we cannot be certain the device that the second pod (pod2) would
get. As long as, it gets a device we consider the test to pass.

Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
2023-04-28 14:44:42 +01:00