Commit Graph

124611 Commits

Author SHA1 Message Date
Darren Shepherd
d0ab390dd7 Hide deprecated warnings 2025-07-16 11:55:58 -03:00
Darren Shepherd
cc89f95642 Set all sources so node+agent in the same process doesn't get restricted 2025-07-16 11:55:58 -03:00
Darren Shepherd
5df9ae2d7a Don't check for cpuset cgroup, not always required? 2025-07-16 11:55:58 -03:00
Darren Shepherd
af624a9eb7 Wait for kube-apiserver for 2 minutes for slow (ARM) systems 2025-07-16 11:55:58 -03:00
Darren Shepherd
79732e4e81 Make kubelet.sock path changable 2025-07-16 11:55:58 -03:00
Darren Shepherd
d1e12cab41 only use the resolved name if port was zero 2025-07-16 11:55:58 -03:00
Darren Shepherd
1e53dabe30 If you can't set hashsize on nf_conntrack don't fail 2025-07-16 11:55:58 -03:00
Darren Shepherd
6a530626ff Drop credential providers 2025-07-16 11:55:58 -03:00
Darren Shepherd
7dc32f6971 Drop storage plugins 2025-07-16 11:55:58 -03:00
Darren Shepherd
7c78b541be Drop client-go cloud auth 2025-07-16 11:55:58 -03:00
Kubernetes Release Robot
7e94e1ce5c Release commit for Kubernetes v1.31.11 2025-07-15 18:05:31 +00:00
Kubernetes Prow Robot
2d515779bd
Merge pull request #132862 from mimowo/automated-cherry-pick-of-#132502-upstream-release-1.31
Automated cherry pick of #132502: Fix flake caused by invalid detection of active policies in VAP integration tests
2025-07-11 13:35:28 -07:00
Ben Luddy
fc02d1eaf5 Use per-policy marker names for VAP integration tests.
Writes to policy resources don't instantaneously take effect in admission. ValidatingAdmissionPolicy
integration tests determine that the policies under test have taken effect by adding a sentinel
policy rule and polling until that rule is applied to a request.

If the marker resource names are the same for each test case in a series of test cases, then
observing a policy's effect on a marker request only indicates that _any_ test policy is in effect,
but it's not necessarily the policy the current test case is waiting for. For example:

1. Test 1 creates a policy and binding.

2. The policy and binding are observed by the admission plugin and take effect.

3. Test 1 observes that a policy is in effect via marker requests.

4. Test 1 exercises the behavior under test and successfully deletes the policy and binding it
created.

5. Test 2 creates a policy and binding.

6. Test 2 observes that a policy is in effect via marker requests, but the policy in effect is still
the one created by Test 1.

7. Test 2 exercises the behavior under test, which fails because it was evaluated against Test 1's
policy.

Generating a per-policy name for the marker resource in each test resolves the timing issue. In the
example, step (6) will not proceed until the admission plugin has observed the policy and binding
created in (5).
2025-07-10 10:13:27 +02:00
Kubernetes Prow Robot
5ea44b894a
Merge pull request #132282 from neolit123/automated-cherry-pick-of-#130782-origin-release-1.31
Automated cherry pick of #130782: Kubeadm issue #3152 ControlPlane node setup failing with "etcdserver: can only promote a learner member"
2025-07-09 02:43:28 -07:00
Kubernetes Prow Robot
e55af8ae27
Merge pull request #132160 from linxiulei/automated-cherry-pick-of-#132109-release-1.31
Automated cherry pick of #132109: Clean backoff record earlier
2025-07-09 00:19:28 -07:00
Kubernetes Release Robot
ef4a037da2 Update CHANGELOG/CHANGELOG-1.31.md for v1.31.10 2025-06-17 18:55:04 +00:00
Kubernetes Release Robot
61183587c0 Release commit for Kubernetes v1.31.10 2025-06-17 18:33:34 +00:00
Kubernetes Prow Robot
7ae3874571
Merge pull request #132224 from cpanato/update-go-1-31
[release-1.31] [go] Bump images, dependencies and versions to go 1.23.10 and distroless iptables
2025-06-13 03:46:57 -07:00
bconry
152efa9268 Add check to see if promote worked within the retry loop 2025-06-13 10:05:33 +03:00
Carlos Panato
262df1aacc
Bump images, dependencies and versions to go 1.23.10 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-06-11 08:30:46 +02:00
Eric Lin
a4ac2e3b63 Clean backoff record earlier
Once received job deletion event, it cleans the backoff records for that
job before enqueueing this job so that we can avoid a race condition
that the syncJob() may incorrect use stale backoff records for a newly created
job with same key.

Co-authored-by: Michal Wozniak <michalwozniak@google.com>
2025-06-06 20:58:34 +00:00
Kubernetes Prow Robot
756c2db4e8
Merge pull request #131785 from rata/automated-cherry-pick-of-#130243-upstream-release-1.31
Automated cherry pick of #130243: Revert userns kernel check
2025-06-05 06:12:40 -07:00
Kubernetes Prow Robot
b62290aaff
Merge pull request #131783 from rata/automated-cherry-pick-of-#131623-upstream-release-1.31
Automated cherry pick of #131623: kubelet: userns: Improve errors returned to the user
2025-06-04 18:48:38 -07:00
Kubernetes Prow Robot
a44b0a321c
Merge pull request #131787 from rata/automated-cherry-pick-of-#130800-upstream-release-1.31
Automated cherry pick of #130800: Fix unit tests on windows
2025-06-04 09:32:37 -07:00
Kubernetes Prow Robot
ec216889b6
Merge pull request #131937 from cpanato/update-go-1.31
[release-1.31] [go] Bump images, dependencies and versions to go 1.23.9 and distroless iptables
2025-05-26 01:45:16 -07:00
Carlos Panato
d67d7edfa1
Bump images, dependencies and versions to go 1.23.9 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-05-23 09:30:56 -04:00
Rodrigo Campos
c9dbae7d06 pkg/kubelet/userns: Remove skip on windows
We don't build these tests for Windows, let's remove this skip.

We should have never added that skip, we should have skipped the entire
suite on Windows.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:34:54 +02:00
Rodrigo Campos
2e0622bf23 pkg/kubelet/userns: Wrap error to get mappings
I needed to wrap the error for debugging, let's just keep this as it is
useful.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:34:54 +02:00
Rodrigo Campos
4c652757ad pkg/kubelet/userns: Provide stub implementation for windows
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:34:54 +02:00
Rodrigo Campos
156c80a613 pkg/kubelet: Fix userns tests on Windows
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:34:54 +02:00
Rodrigo Campos
1e53e59c3a Revert "Enforce the Minimum Kernel Version 6.3 for UserNamespacesSupport feature"
This reverts commit 8597b343fa.

I wrote in the Kubernetes documentation:

	In practice this means you need at least Linux 6.3, as tmpfs started
	supporting idmap mounts in that version. This is usually needed as
	several Kubernetes features use tmpfs (the service account token that is
	mounted by default uses a tmpfs, Secrets use a tmpfs, etc.)

The check is wrong for several reasons:
	* Pods can use userns before 6.3, they will just need to be
	  careful to not use a tmpfs (like a serviceaccount). MOST users
	  will probably need 6.3, but it is possible to use earlier kernel
	  versions. 5.19 probably works fine and with improvements in
          the runtime 5.12 can probably be supported too.
	* Several distros backport changes and the recommended way is
	  usually to try the syscall instead of testing kernel versions.
	  I expect support for simple fs like tmpfs will be backported
	  in several distros, but with this check it can generate confusion.
	* Today a clear error is shown when the pod is created, so it's
	  unlikely a user will not understand why it fails.
	* Returning an error if utilkernel fails to understand what
	  kernel version is running is also too strict (as we are
	  logging a warning even if it is not the expected version)
	* We are switching to enabled by default, which will log a
	  warning on every user that runs on an older than 6.3 kernel,
	  adding noise to the logs.

For there reasons, let's just remove the hardcoded kernel version check.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:27:10 +02:00
Rodrigo Campos
c88aef2d63 Revert "Switch hard error to a WARNING for kernel version check"
This reverts commit fd06dcd604.

The revert is not to make it a hard error again, this revert is needed
to revert cleanly the commit that added this as an error in the first
place.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:27:10 +02:00
Rodrigo Campos
e885986393 userns: Wrap more errors
Most errors where already wrapped, but these were missing.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:23:17 +02:00
Rodrigo Campos
c0eb9e3433 userns: Improve error returned if userns is not supported
This makes it clear the error comes due to a user namespace
configuration. Otherwise the error returned looks too generic and is not
clear.

Before this PR, the error was:

	  Warning  FailedCreatePodSandBox  1s    kubelet            Failed to create pod sandbox: the handler "" is not known

Now it is:

	  Warning  FailedCreatePodSandBox  1s    kubelet            Failed to create pod sandbox: runtime does not support user namespaces

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:23:17 +02:00
Rodrigo Campos
e983d3f575 userns: Use len to handle empty non-nil slices
When using an old runtime like containerd 1.7, this message is not
implemented and what we get here is an empty non-nil slice. Let's check
the len of the slice instead.

While we are there, let's just return false and no error. In the
following commits we will wrap the error and we didn't find any more
info to add here.

Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
2025-05-15 12:23:17 +02:00
Kubernetes Release Robot
16dd861dbb Update CHANGELOG/CHANGELOG-1.31.md for v1.31.9 2025-05-15 09:32:00 +00:00
Kubernetes Release Robot
8f3800390d Release commit for Kubernetes v1.31.9 2025-05-15 09:10:41 +00:00
Kubernetes Prow Robot
88e9d8fe6a
Merge pull request #131439 from gnufied/automated-cherry-pick-of-#131418-upstream-release-1.31
Automated cherry pick of #131418: Check for newer fields when deciding expansion recovery feature status
2025-05-13 22:57:16 -07:00
Kubernetes Prow Robot
356ae8145f
Merge pull request #131537 from ameukam/update-go-1-23-8-k8s-1-31
[release-1.31][go] Bump images, dependencies and versions to go 1.23.8 and distroless iptables
2025-05-13 04:53:16 -07:00
Kubernetes Prow Robot
502497200a
Merge pull request #131429 from princepereira/automated-cherry-pick-of-#131138-upstream-release-1.31
Automated cherry pick of #131138: Fix for HNS local endpoint was being deleted instead of the remote endpoint.
2025-05-06 17:59:13 -07:00
Arnaud Meukam
46a3947662
Bump images, dependencies and versions
Bump images, dependencies, versions to Go 1.23.8

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
2025-04-29 22:17:24 +02:00
Prince Pereira
92e3993bc7 Manually adding fix for failing pull-kubernetes-typecheck tests which had dependency with this commit: 6186303580 2025-04-27 21:54:22 -07:00
Hemant Kumar
e4e7f313ff Mark NodeExpansion finsihed without featuregate check 2025-04-24 12:45:41 -04:00
Hemant Kumar
4370821c87 Also change final status by removing featuregate check 2025-04-24 12:38:29 -04:00
Hemant Kumar
014728e763 Check for newer fields when deciding expansion recovery feature status 2025-04-24 12:38:22 -04:00
Prince Pereira
a1bb711b85 Fix for HNS local endpoint was being deleted instead of the remote endpoint. 2025-04-23 23:09:23 -07:00
Kubernetes Release Robot
772a0f45dd Update CHANGELOG/CHANGELOG-1.31.md for v1.31.8 2025-04-22 16:15:33 +00:00
Kubernetes Release Robot
3f46d435cd Release commit for Kubernetes v1.31.8 2025-04-22 15:53:27 +00:00
Kubernetes Prow Robot
3a67945ee1
Merge pull request #130685 from carlory/automated-cherry-pick-of-#130335-upstream-release-1.31
Automated cherry pick of #130335: Fix kubelet restart unmounts volumes of running pods if the referenced PVC is being deleted by the user
2025-04-17 10:31:07 -07:00
Kubernetes Prow Robot
6ed5abcf2d
Merge pull request #131160 from wojtek-t/automated-cherry-pick-of-#131020-upstream-release-1.31
Automated cherry pick of #131020: Fix race for sending errors in watch
2025-04-17 09:21:07 -07:00