Commit Graph

123962 Commits

Author SHA1 Message Date
Gunju Kim
a10cd79f63
Remove deprecated sets.String from pkg/kubelet
- s/sets.String/sets.New[string]/g
- s/sets.NewString/sets.New[string]/g
- Use sets.List instead of (sets.String).List
2024-06-03 20:50:26 +09:00
Dr. Stefan Schimanski
3a3be8c704
controlplane: add generic storage construction
Signed-off-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2024-06-03 13:50:04 +02:00
Kubernetes Prow Robot
548d50da98
Merge pull request #125157 from carlory/kubeadm-2563
kubeadm: update warning message for the swap check
2024-06-03 04:20:55 -07:00
Arda Güçlü
e24b9a022f Add new --wait-for-creation flag in kubectl wait command
kubectl wait command errors out when the waited resource does not exist.
But we need to provide a way to the users about intentionally also waiting for
the creation of resources.

This PR introduces a new flag to cover waiting for the creation of resources
with preserving the default behavior.
2024-06-03 13:31:35 +03:00
Kubernetes Prow Robot
d0aaa66bf7
Merge pull request #125288 from p0lyn0mial/upstream-fix-125244
cacher: dispatchEvents is synced to watchCache.listResourceVersion
2024-06-03 03:06:17 -07:00
carlory
f5c69fde39 kubeadm: update warning message for the swap check
Co-authored-by: Lubomir I. Ivanov <neolit123@gmail.com>
2024-06-03 17:09:20 +08:00
Claudiu Belu
cc60b26dee windows: Fixes following container log rotation
If we're following a file, that file will remain open, and we continue
to read data from it when new data becomes available.

On Windows, this can be an issue if the container logs needs to be rotated.
Log rotation is done by renaming the file, but this action may fail if
the file is already opened.

Setting the FILE_SHARE_DELETE flag when opening the file will prevent this
issue, as documented: "Delete access allows both delete and rename operations" [1].

In golang, there's no way to set this flag [2], the sharemode is always set to:
sharemode := uint32(FILE_SHARE_READ | FILE_SHARE_WRITE)

Thus, we need to open the file ourselves with the right flags.

[1] https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea?redirectedfrom=MSDN
[2] https://cs.opensource.google/go/go/+/refs/tags/go1.22.2:src/syscall/syscall_windows.go;l=366
2024-06-03 08:58:35 +00:00
Lukasz Szaszkiewicz
a20abdb1f4 cacher: dispatchEvents is synced to watchCache.listResourceVersion
The internal informer populates the RV as soon as it conducts
The first successful sync with the underlying store.
The cache must wait until this first sync is completed to be deemed ready.
Since we cannot send a bookmark when the lastProcessedResourceVersion is 0,
we poll aggressively for the first list RV before entering the dispatch loop.
2024-06-03 10:26:50 +02:00
Kubernetes Prow Robot
2d8a3ad572
Merge pull request #125265 from neolit123/1.31-use-actual-kubelet-address-port
kubeadm: use the actual configured kubelet healthz address:port
2024-06-02 23:14:32 -07:00
bzsuni
1b66e1eb52 update kube-dns and nodelocaldns to 1.23.1
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-06-03 11:19:02 +08:00
Matthias Bertschy
367e8c5578 ignore starting order in RunTogether, add another that does
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-06-02 22:00:40 +02:00
moriya
3f3ce8659f update_comment 2024-06-02 23:58:06 +09:00
moriya
a3e6fd724c remove_comment 2024-06-02 23:56:45 +09:00
moriya
e2632d0ed8 simplify_test 2024-06-02 23:55:41 +09:00
moriya
657bba80de simplify_test 2024-06-02 23:54:39 +09:00
moriya
105f9396b8 review_comment 2024-06-02 23:34:01 +09:00
moriya
a4b3ce8876 simplify 2024-06-02 22:24:35 +09:00
Kubernetes Prow Robot
9fc0315ce8
Merge pull request #125272 from mauri870/hotfix/GOTOOLCHAIN-make-verify
build: don't copy GOPATH out of docker container
2024-06-02 05:09:58 -07:00
Mauri de Souza Meneguzzo
c1238f345a build: don't copy GOPATH out of docker container
When using GOTOOLCHAIN with make verify the build results copied out of
the dockerized environment contains a go toolchain folder that is
write protected. In order to prevent failures during the cleanup step
opt-out of copying $GOPATH to the host.
2024-06-01 22:09:13 -03:00
Kubernetes Prow Robot
b70a5ad6a1
Merge pull request #125269 from jeremyrickard/revert-pr-109939
Revert "build: Adds Windows kube-proxy image"
2024-06-01 15:17:19 -07:00
Kubernetes Prow Robot
a78542e357
Merge pull request #125209 from humblec/etcd-3.5.14
make use of etcd v3.5.14 in the builds.
2024-06-01 14:12:31 -07:00
Jeremy Rickard
f62cf3914f
Revert "build: Adds Windows kube-proxy image"
This reverts commit 3b0cec323e.
2024-06-01 10:43:08 -06:00
Lubomir I. Ivanov
52302e4ad5 kubeadm: use the actual configured kubelet healthz address:port
When doing a kubelet health check on init/join, do not
hardcode the "localhost" address. Instead, use the
KubeletConfiguration HealthzBindAddress and HealthzPort
fields.
2024-06-01 10:10:31 +03:00
Humble Chirammal
07ef65a834 make use of etcd v3.5.14 in the builds.
https://github.com/etcd-io/etcd/releases/tag/v3.5.14

This release has been built with GO 1.21.10

Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-06-01 09:06:35 +05:30
Joe Betz
d57acd327f Add nop test case for applying a CRD with defaulted atomic field 2024-05-31 21:24:52 -04:00
Kubernetes Prow Robot
f386b4cd4a
Merge pull request #125241 from danwinship/pod-debug
Log namespace of pods in e2e failure debug
2024-05-31 15:07:18 -07:00
Kubernetes Prow Robot
34665173a4
Merge pull request #125124 from humblec/up
update snapshot controller to v8.0.0
2024-05-31 15:07:12 -07:00
Ed Bartosh
a240cc6190 features: update milestone for DevicePluginCDIDevices 2024-06-01 00:12:42 +03:00
Kubernetes Prow Robot
790dfdbe38
Merge pull request #125238 from munnerz/kep-4193-nodebinding-beta
KEP-4193: promote ServiceAccountTokenNodeBinding feature to beta
2024-05-31 12:27:18 -07:00
Kubernetes Prow Robot
723c269641
Merge pull request #124916 from TessaIO/test-improve-unit-tests-for-container-name-autocompletion
test: improve unit tests for container name autocompletion
2024-05-31 12:27:09 -07:00
Sohan Kunkerkar
d9a84266e3 KEP-4265: promote ProcMountType feature gate to beta
Signed-off-by: Sohan Kunkerkar <sohank2602@gmail.com>
2024-05-31 14:57:12 -04:00
Alexander Zielenski
fd656ad3b4 add tests for completeness cases 2024-05-31 11:20:00 -07:00
Gabe
c8f0ea1a54 Don't fill in NodeToStatusMap with UnschedulableAndUnresolvable 2024-05-31 15:52:16 +00:00
Kubernetes Prow Robot
2f0cf23645
Merge pull request #125235 from humblec/etcd_build_3.5.14
etcd: build etcd image of v3.5.14
2024-05-31 08:25:57 -07:00
Kubernetes Prow Robot
3a4e52b328
Merge pull request #123050 from kerthcet/cleanup/reorganize-templates
Reorganize scheduler perf templates
2024-05-31 07:20:06 -07:00
Kubernetes Prow Robot
802983e714
Merge pull request #109939 from claudiubelu/windows/kube-proxy-hostprocess
build: Adds Windows kube-proxy image
2024-05-31 07:19:57 -07:00
Dan Winship
b82bc5d935 Log namespace of pods in e2e failure debug 2024-05-31 09:14:58 -04:00
Kubernetes Prow Robot
6d0aab2e38
Merge pull request #125014 from carlory/fix-120287
Remove volumesNeedReportedInUse for reconstructed volumes
2024-05-31 05:32:24 -07:00
Kubernetes Prow Robot
4cc989a7a9
Merge pull request #124740 from bells17/use-sets-set-string
[pkg/volume] Changed to use sets.Set[string] instead of sets.String
2024-05-31 05:32:15 -07:00
James Munnelly
5481e630de KEP-4193: promote ServiceAccountTokenNodeBinding feature to beta 2024-05-31 12:16:03 +01:00
Humble Chirammal
8dda1a76f6 etcd: build etcd image of v3.5.14
Signed-off-by: Humble Chirammal <humble.devassy@gmail.com>
2024-05-31 15:29:52 +05:30
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