Commit Graph

123306 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
8565e37525
Merge pull request #125127 from my-git9/ut-compute
kubeadm: increase ut coverage for compute
2024-05-31 02:41:37 -07:00
kerthcet
e678496c6e reorganize the scheduler_perf testcases
Signed-off-by: kerthcet <kerthcet@gmail.com>
2024-05-31 16:47:19 +08:00
xin.li
d24d82eda9 kubeadm: increase ut coverage for compute
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-05-31 16:39:51 +08:00
Claudiu Belu
3b0cec323e build: Adds Windows kube-proxy image
Adds the KUBE_BUILD_WINDOWS option to make release-images and quick-release-images,
which will allow it to build the a Windows kube-proxy image as well. That image can
then be used with Windows Host Process Containers to start the kube-proxy
service on Windows nodes.
2024-05-31 08:04:00 +00:00
Markus Lehtonen
fbb441cf8a kube_codegen: smarter grepping of codegen tags
Be smarter about finding the input packages for genclient et al.  The
previous grep patterns were too generic. This caused code-generator, for
example, to pick up it's own auto-generated packages. In this particular
case having a status field in the type adds a comment to the
autogenerated code like:

  // Add a +genclient:noStatus comment above the type...

This, in turn causes problems in some scenarios where the input (api)
and the target package for the auto-generated code reside in separate go
modules.
2024-05-31 10:49:25 +03:00
Kubernetes Prow Robot
39c6bc3136
Merge pull request #123919 from hakuna-matatah/apf
Annotate APF Wait Queue Latnecy  at the request level
2024-05-30 20:36:09 -07:00
Kubernetes Prow Robot
6938c29a38
Merge pull request #125225 from aojea/ipmode
fix loadbalancer status comparison
2024-05-30 18:34:57 -07:00
Kubernetes Prow Robot
e6e39db4c1
Merge pull request #125203 from danwinship/kind-loadbalancers-2
Fix eTP:Local NodePort test
2024-05-30 16:06:02 -07:00
Kubernetes Prow Robot
71061871ff
Merge pull request #125128 from humblec/up-3-npd
update ip-masq-agent and npd to latest versions in cluster addons
2024-05-30 16:05:55 -07:00
Antonio Ojea
59adf3f833 remove unused function LoadBalancerStatusEqual
It is duplicated in the cloud provider package, and is only used
there for the service load balancer controller.
2024-05-30 23:03:54 +00:00
Antonio Ojea
f28b8fee7f fix loadbalancer status comparison
The loadbalancer status has added new fields during the latest releases,
but the helper function used by the service load balancer controller was
not updated with all the new fields, and for the new IPMode field it was
not taking into consideration that the field is a pointer.

Instead of checking fields one by one  use the DeepEqual function that
provides semantic equality for these types.
2024-05-30 22:49:40 +00:00
Kubernetes Prow Robot
f30a87d517
Merge pull request #122832 from benluddy/cbor-fuzz-native-to-unstructured-via
KEP-4222: Add roundtrip tests to Unstructured via CBOR and JSON.
2024-05-30 15:00:31 -07:00
Kubernetes Prow Robot
2d083d0a4d
Merge pull request #125219 from danwinship/kind-loadbalancers-3
Fix LoadBalancerSourceRanges test
2024-05-30 13:26:10 -07:00
Kubernetes Prow Robot
a0e3a70d53
Merge pull request #124671 from saschagrunert/logs-staging
Move `pkg/kubelet/kuberuntime/logs` to `k8s.io/cri-client` staging
2024-05-30 13:26:01 -07:00
Dan Winship
fff883ab4a Improve eTP:Local NodePort test
It previously assumed that pod-to-other-node-nodeIP would be
unmasqueraded, but this is not the case for most network plugins. Use
a HostNetwork exec pod to avoid problems.

This also requires putting the client and endpoint on different nodes,
because with most network plugins, a node-to-same-node-pod connection
will end up using the internal "docker0" (or whatever) IP as the
source address rather than the node's public IP, and we don't know
what that IP is.

Also make it work with IPv6.
2024-05-30 11:43:07 -04:00
carlory
2794baf4c0 fix dra flaky test on TestPlugin 2024-05-30 23:22:37 +08:00
Kubernetes Prow Robot
b503409e9c
Merge pull request #124363 from claudiubelu/unittests-11
unittests: Fixes unit tests for Windows (part 11)
2024-05-30 08:17:24 -07:00
Kubernetes Prow Robot
fc6c7d743d
Merge pull request #124069 from carlory/clean-100000
fix ProbeControllerVolumePlugins func
2024-05-30 08:17:15 -07:00
Kubernetes Prow Robot
72226c7511
Merge pull request #123315 from bart0sh/PR134-graduate-DevicePluginCDIDevices-to-GA
Graduate DevicePluginCDIDevices to GA
2024-05-30 08:17:06 -07:00
Kubernetes Prow Robot
c811521331
Merge pull request #112104 from oldium/fix-windows-editor-launch
Fix editor launch with Windows cmd.exe when KUBE_EDITOR has spaces in path
2024-05-30 08:16:52 -07:00
Kubernetes Prow Robot
2acdbae664
Merge pull request #125178 from my-git9/unusedfunction
kubeadm: remove some unused function
2024-05-30 06:47:02 -07:00
Kubernetes Prow Robot
36f1d73c1f
Merge pull request #123440 from Ritikaa96/kubectl-improve-get
Improving kubectl get output
2024-05-30 06:46:48 -07:00
Sascha Grunert
0c9949b6ec
Move pkg/kubelet/kuberuntime/logs to k8s.io/cri-client staging
Particulary helpful to decouple cri-tools from k/k.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-30 15:13:22 +02:00
Kubernetes Prow Robot
2c46fafa23
Merge pull request #125150 from humblec/csi-update
update CSI spec to v1.9.0 which has modifyVolume API support and other updated libraries in place
2024-05-30 05:13:48 -07:00
Dan Winship
d01b264345 Improve LoadBalancerSourceRanges test
The existing test had two problems:

  - It only made connections from within the cluster, so for VIP-type
    LBs, the connections would always be short-circuited and so this
    only tested kube-proxy's LBSR implementation, not the cloud's.

  - For non-VIP-type LBs, it would only work if pod-to-LB connections
    were not masqueraded, which is not the case for most network
    plugins.

Fix this by (a) testing connectivity from the test binary, so as to
test filtering external IPs, and ensure we're testing the cloud's
behavior; and (b) using both pod and node IPs when testing the
in-cluster case.

Also some general cleanup of the test case.
2024-05-30 07:24:36 -04:00
Kubernetes Prow Robot
bce55b94cd
Merge pull request #125212 from saschagrunert/kubeadm-runtime-ready
kubeadm: check only for `RuntimeReady` condition
2024-05-30 00:46:07 -07:00
Sascha Grunert
51a36294a3
kubeadm: check only for RuntimeReady condition
We only check for the `RuntimeReady` condition instead of anything else
like the `NetworkReady` to allow kubeadm to provision the cluster.

Refers to https://github.com/kubernetes/kubernetes/pull/124685#issuecomment-2138655482
Follow-up on: https://github.com/kubernetes/kubernetes/pull/124685

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-05-30 08:33:22 +02:00
Ritikaa96
b9ec8b3c46 correcting description as per review
Signed-off-by: Ritikaa96 <ritika@india.nec.com>
2024-05-30 11:53:02 +05:30
Kubernetes Prow Robot
957c953867
Merge pull request #118148 from linxiulei/sched_readyz
Expose /readyz & /livez in kube-scheduler
2024-05-29 22:09:17 -07:00
Humble Chirammal
d87bfc8392 update ip-masq-agent and npd to latest versions in cluster addons
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-30 09:44:02 +05:30
Kubernetes Prow Robot
83c2db067e
Merge pull request #125179 from SataQiu/clean-20240528
kubeadm: only add the klog flags that are still supported for kubeadm, rather than disabling the unwanted flags
2024-05-29 20:14:55 -07:00
Kubernetes Prow Robot
9a44f68916
Merge pull request #123974 from p0lyn0mial/upstream-client-go-features-testing
client-go/features/testing: intro SetFeatureGatesDuringTest
2024-05-29 17:01:25 -07:00
Kubernetes Prow Robot
f44bb5e6e5
Merge pull request #125176 from mauri870/feature/testing-MainStart-go1.23
pkg/util/coverage: update fakeTestDeps methods
2024-05-29 15:40:38 -07:00
Shingo Omura
552fd7e850
KEP-3619: Fine-grained SupplementalGroups control (#117842)
* Add `Linux{Sandbox,Container}SecurityContext.SupplementalGroupsPolicy` and `ContainerStatus.user` in cri-api

* Add `PodSecurityContext.SupplementalGroupsPolicy`, `ContainerStatus.User` and its featuregate

* Implement DropDisabledPodFields for PodSecurityContext.SupplementalGroupsPolicy and ContainerStatus.User fields

* Implement kubelet so to wire between SecurityContext.SupplementalGroupsPolicy/ContainerStatus.User and cri-api in kubelet

* Clarify `SupplementalGroupsPolicy` is an OS depdendent field.

* Make `ContainerStatus.User` is initially attached user identity to the first process in the ContainerStatus

It is because, the process identity can be dynamic if the initially attached identity
has enough privilege calling setuid/setgid/setgroups syscalls in Linux.

* Rewording suggestion applied

* Add TODO comment for updating SupplementalGroupsPolicy default value in v1.34

* Added validations for SupplementalGroupsPolicy and ContainerUser

* No need featuregate check in validation when adding new field with no default value

* fix typo: identitiy -> identity
2024-05-29 15:40:29 -07:00
Ben Luddy
d7cccf3e79
Update indirect dependencies with ./hack/update-vendor.sh.
Implementing custom marshaling on several API types for CBOR makes the upstream CBOR library an
indirect dependency of several staging modules.
2024-05-29 17:50:21 -04:00
Ben Luddy
0600269c1a
Fuzz roundtrip to Unstructured via both JSON and CBOR. 2024-05-29 17:48:10 -04:00
Ben Luddy
d2dfce59ff
Implement cbor.Marshaler and cbor.Unmarshaler for resource.Quantity. 2024-05-29 17:48:10 -04:00
Ben Luddy
14367eee5a
Implement cbor.Marshaler and cbor.Unmarshaler for metav1.MicroTime. 2024-05-29 17:48:10 -04:00
Ben Luddy
7b3129e015
Implement cbor.Marshaler and cbor.Unmarshaler for metav1.Time. 2024-05-29 17:48:09 -04:00
Ben Luddy
d93a9121b8
Implement cbor.Marshaler and cbor.Unmarshaler for IntOrString. 2024-05-29 17:48:09 -04:00
Kubernetes Prow Robot
ee2c1ffa80
Merge pull request #124630 from carlory/fix-123731
DRA: scheduler: index claim and class parameters to simplify lookup
2024-05-29 14:38:14 -07:00
Dan Winship
41527afe28 Move eTP:Local NodePort test from loadbalancer.go to service.go
(And in particular, remove `[Feature:LoadBalancer]` from it.)
2024-05-29 16:21:36 -04:00
Dan Winship
5230bab600 Convert test/e2e/network/service.go to utils/ptr 2024-05-29 16:21:34 -04:00
Alexander Zielenski
cd41a7d8e1 store validatingadmissionpolicy and bindings at v1 2024-05-29 13:14:51 -07:00
Kubernetes Prow Robot
e821e4f978
Merge pull request #125200 from soltysh/fix_typo
Fix the field typo in statefulset patch operation
2024-05-29 13:06:15 -07:00
Kubernetes Prow Robot
4c0afd74c3
Merge pull request #125113 from bzsuni/bz/build/cni
update cni from 1.4.1 to 1.5.0
2024-05-29 13:06:08 -07:00
Kubernetes Prow Robot
1ebc3d2a64
Merge pull request #120699 from liyuerich/ptrderefcontroller
drop deprecated pointer package in controller
2024-05-29 10:12:36 -07:00
Maciej Szulik
23bf694830
Fix the field typo in statefulset patch operation 2024-05-29 18:55:35 +02:00
Mauri de Souza Meneguzzo
b8e5a3ed32 pkg/util/coverage: update fakeTestDeps methods
Go 1.23 changed the signature of the testDeps interface so we need to
add a blank implementation for InitRuntimeCoverage to fakeTestDeps.
2024-05-29 12:31:22 -03:00
Kubernetes Prow Robot
1cfaa95cab
Merge pull request #124898 from alexzielenski/apiserver/prerelease-ga-tags
Require prerelease lifecycle tags on GA types
2024-05-29 08:02:42 -07:00