Commit Graph

115852 Commits

Author SHA1 Message Date
SataQiu
1f7c07f355 scheduler: remove deprecated v1beta2 KubeSchedulerConfiguration 2023-05-03 21:43:19 +08:00
Hana (Hyang-Ah) Kim
17c17da97b e2e_node: move getSampleDevicePluginPod to device_plugin_test.go
image_list.go is one of the files included in the non-test variant Go build list, but its getSampleDevicePluginPod function references readDaemonSetV1OrDie function defined in device_plugin_test.go which is included in the test variant Go build list only. (The file name is *_test.go).

As a result, "go build" fails with the undefined reference error.

In practice, that may not be an issue since k8s project contributors aren't meant to run go build on this package. However, tools that depend on go build to operate - e.g., gopls or govulncheck ./... - will report this as an error.

Fix this error and make test/e2e package pass go build by moving this file to also test-only source code.
2023-05-03 08:37:40 -04:00
Marko Mudrinić
c53cc4fe0d
Update distroless-iptables to v0.2.4
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-05-03 14:26:43 +02:00
Dan Winship
c4575c3438 Fix up detect-local-mode validation
Validate the --detect-local-mode value in the API object validation
rather than doing it separately later. Also, remove runtime checks and
unit tests for cases that would be blocked by validation
2023-05-03 08:22:49 -04:00
Dan Winship
3734fe7ab1 Remove some useless error checks
Don't return errors in the event of programmer errors, and don't
double-check things that were already validated.
2023-05-03 08:22:45 -04:00
Kubernetes Prow Robot
af79ecbd4b
Merge pull request #117744 from xmudrii/go1204
[go] Bump images, dependencies and versions to go 1.20.4
2023-05-03 05:16:13 -07:00
Marko Mudrinić
19885264f3
[go] Bump images, dependencies and versions to go 1.20.4
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2023-05-03 12:22:23 +02:00
Kubernetes Prow Robot
eea8086d30
Merge pull request #117328 from humblec/uber
dependencies: update gh/go.uber.org/{atomic,multierr}
2023-05-02 22:44:22 -07:00
Kubernetes Prow Robot
e7162ced04
Merge pull request #117090 from jpmcb/cobra-1.7.0
Upgrades spf13/cobra to v1.7.0
2023-05-02 22:44:11 -07:00
utam0k
d82684e691
Add check to skip PodTopologySpread PreFilter if no constraints are specified
This commit adds a check in the PodTopologySpread PreFilter function to
return a Skip status if there are no topology spread constraints specified
This prevents unnecessary processing and filtering for pods that don't have any topology spread
constraints.
This change is a part of the work for issue #114399.

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-05-03 04:39:00 +00:00
m.nabokikh
7c5573d326 Fix cmd, integration, and conformance tests
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-05-03 01:29:37 +02:00
Akhil Velagapudi
69eccd41b8 endpointslice: reduce visibility of vars/funcs
Reduce the visibility of various public identifiers that are only used
within the scope of a package.

This was originally motivated by KEP-3685 in order to reduce the public
API surface and improve supportability.
2023-05-02 15:58:07 -07:00
Kubernetes Prow Robot
f3cf92b79b
Merge pull request #117711 from msau42/changelog
Move glusterfs 1.25 deprecation notice to the deprecation section.
2023-05-02 15:56:14 -07:00
John McBride
933b665c18 Upgrades spf13/cobra to 1.7.0
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2023-05-02 22:39:52 +00:00
Michelle Au
3653b21e6b Move glusterfs 1.25 deprecation notice to the deprecation section. 2023-05-02 21:24:06 +00:00
Nilekh Chaudhari
9d19c207d2
fix: fixes flake in TestKMSv2Healthz
Signed-off-by: Nilekh Chaudhari <1626598+nilekhc@users.noreply.github.com>
2023-05-02 21:01:48 +00:00
Kubernetes Prow Robot
e121039461
Merge pull request #117727 from kerthcet/cleanup/remove-unused-goroutines
Remove old metric scheduler_goroutines
2023-05-02 13:44:16 -07:00
Claudiu Belu
561548e86c unit tests: Fixes kuberuntime unittests for Windows
InPlace Pod Vertical Scaling has been introduced as a feature recently,
and with it new unit tests. The feature does not have Windows support
yet, thus, the unit tests fail on Windows.

Fixes unit test which checks Linux-specific fields on Windows.
2023-05-02 20:25:42 +00:00
Kubernetes Prow Robot
c76efa64ee
Merge pull request #117723 from Nordix/healthcheck-via-lbadr
Kube-proxy/ipvs: accept access to healthCheckNodePort on LbIP
2023-05-02 12:44:22 -07:00
Kubernetes Prow Robot
d5329696c7
Merge pull request #117721 from ionutbalutoiu/windows-tests/update-conn-check
windows-tests: Update connectivity check util function
2023-05-02 12:44:14 -07:00
m.nabokikh
a40810a2d9 Add comment about removing the feature gate
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-05-02 21:17:57 +02:00
Kubernetes Prow Robot
2e78e07ee5
Merge pull request #117716 from thockin/validation_test_whitespace
Clean up brace whitespace in **/validation_test.go
2023-05-02 10:02:25 -07:00
Kubernetes Prow Robot
0a30e39209
Merge pull request #116947 from rphillips/bump_all_nodes_ready_timeout
e2e node: bump all nodes ready timeout
2023-05-02 10:02:13 -07:00
kerthcet
7be3f8e43f Remove old metric scheduler_goroutines
Signed-off-by: kerthcet <kerthcet@gmail.com>
2023-05-03 00:35:38 +08:00
Kubernetes Prow Robot
42799903af
Merge pull request #117626 from skitt/intstr-fromint32-cloud-network
Network: use new intstr functions
2023-05-02 08:18:59 -07:00
Kubernetes Prow Robot
e114fc0cdc
Merge pull request #117611 from ii/create-apiresources-test
Write e2e test for APIResources endpoints + 12 Endpoints
2023-05-02 08:18:51 -07:00
Kubernetes Prow Robot
e153766a2a
Merge pull request #117545 from saschagrunert/cri-tools
Update cri-tools to v1.27.0
2023-05-02 08:18:43 -07:00
Kubernetes Prow Robot
d11bdad196
Merge pull request #117330 from akhilerm/update-seccomp
dependencies: udpate seccomp/libseccomp-golang to v0.10.0
2023-05-02 08:18:35 -07:00
Kubernetes Prow Robot
061200113b
Merge pull request #117327 from humblec/netlink
dependencies: update {vishvananda/netns,xlab/treeprint}
2023-05-02 08:18:27 -07:00
Kubernetes Prow Robot
a2e2df61a1
Merge pull request #117198 from charles-chenzz/deprecated_function
replace ioutil with os, update doc in kubelet
2023-05-02 08:18:14 -07:00
Ionut Balutoiu
d96f83f02f windows-tests: Update connectivity check util function
Sometimes, the kube-proxy endpoints take longer than 10 seconds to
be ready, so the initial connection check fails (via `gomega.Eventually`).

This patch uses a separate longer timeout for `gomega.Eventually`.

Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
2023-05-02 16:56:09 +03:00
Lars Ekman
e496085bd3 Kube-proxy/ipvs: accept access to healthCheckNodePort on LbIP 2023-05-02 15:51:22 +02:00
m.nabokikh
40de26dcff KEP-3325: Promote SelfSubjectReview to GA
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
2023-05-02 14:50:40 +02:00
Piotr Betkier
d952437921
Fix flaky HPA e2e tests by not failing on context cancelled (#117669)
* Fix flaky HPA e2e tests by not failing on context cancelled

Consume requests are sent during test execution in a loop in a separate goroutine. Once the test completes, it is expected that a consumption request may be pending. Cancelling the request during cleanup should not cause test failures.

Tests started being flaky since #112923 introduced passing test context that gets cancelled during cleanup.

* Use PollUntilContextTimeout and restructure error ignoring logic
2023-05-02 05:42:12 -07:00
Patrick Ohly
5fff8cae74 dependencies: klog v2.100.1 2023-05-02 13:22:30 +02:00
Kubernetes Prow Robot
f51dad586d
Merge pull request #94021 from timoreimann/support-specifying-custom-lb-retry-period-from-cloud-provider
Support specifying custom LB retry period from cloud provider
2023-05-02 01:52:11 -07:00
Tim Hockin
d55b67b349
Clean up brace whitespace in **/validation_test.go
This was making my eyes bleed as I read over code.

I used the following in vim.  I made them up on the fly, but they seemed
to pass manual inspection.

:g/},\n\s*{$/s//}, {/
:w
:g/{$\n\s*{$/s//{{/
:w
:g/^\(\s*\)},\n\1},$/s//}},/
:w
:g/^\(\s*\)},$\n\1}$/s//}}/
:w
2023-05-02 00:48:42 -07:00
Kubernetes Prow Robot
19830bf51b
Merge pull request #117627 from skitt/intstr-fromint32-cloud-node
kubelet: use new intstr functions
2023-05-01 23:42:22 -07:00
Kubernetes Prow Robot
0a37874037
Merge pull request #117430 from charles-chenzz/refactoring_util_pkgs
remove Mkdirtemp func to reduce util pkg for testing
2023-05-01 23:42:11 -07:00
Timo Reimann
2ad2c15c9c Update copyright year to 2023 2023-05-02 07:59:48 +02:00
Timo Reimann
b464d08427 Remove custom fake svc lister in favor of regular indexer 2023-05-02 07:59:16 +02:00
Kubernetes Prow Robot
544bd825f9
Merge pull request #117394 from sourcelliu/allowli
Remove unnecessary if judgments
2023-05-01 22:34:30 -07:00
Kubernetes Prow Robot
f5fff0f2bc
Merge pull request #117105 from yoongon/feature/assert-order
Swap assert.Equal parameters oders to follow convention
2023-05-01 22:34:22 -07:00
Kubernetes Prow Robot
9121e82e64
Merge pull request #117050 from charles-chenzz/remove_seccomp
remove seccomp profile path on security context
2023-05-01 22:34:11 -07:00
yulng
b899ae4847
remove genericfeatures.DryRun in 1.28
Signed-off-by: yulng <wei.yang@daocloud.io>
2023-05-02 13:16:31 +08:00
Kubernetes Prow Robot
72afd8558e
Merge pull request #117612 from saschagrunert/image-pull-errors
Fix image pull error type `ErrRegistryUnavailable`
2023-05-01 21:30:19 -07:00
Kubernetes Prow Robot
1241ddc567
Merge pull request #116376 from swatisehgal/device-mgr-recovery-wip
node: device-mgr: Handle recovery flow by checking if healthy devices exist- attempt 2
2023-05-01 21:30:11 -07:00
Kubernetes Prow Robot
d6471d01a4
Merge pull request #115843 from rikatz/remote-netpol-status
Remove/Withdraw  NetworkPolicy Status
2023-05-01 18:30:10 -07:00
Kubernetes Prow Robot
af20b027c6
Merge pull request #117568 from alexzielenski/apiserver/smp/merge-with-empty
Fix Strategic Merge merging leaving patch directives in objects when field doesn't exist
2023-05-01 16:34:23 -07:00
Kubernetes Prow Robot
2588ae9a04
Merge pull request #114998 from alexzielenski/apiserver/smd/ssa-conditionals
Fix SSA being silently disabled by lack of OpenAPI config
2023-05-01 16:34:11 -07:00