Commit Graph

129475 Commits

Author SHA1 Message Date
Darren Shepherd
cf8033cb13 Add ability to disable proxy hostname check 2025-07-16 11:38:24 -03:00
Darren Shepherd
75b72c7ccb Hide deprecated warnings 2025-07-16 11:38:24 -03:00
Darren Shepherd
e56a96c5c1 Set all sources so node+agent in the same process doesn't get restricted 2025-07-16 11:38:24 -03:00
Darren Shepherd
9a6c459df2 Don't check for cpuset cgroup, not always required? 2025-07-16 11:38:24 -03:00
Darren Shepherd
1137b9fb5f Wait for kube-apiserver for 2 minutes for slow (ARM) systems 2025-07-16 11:38:24 -03:00
Darren Shepherd
22143b5cbb Make kubelet.sock path changable 2025-07-16 11:38:24 -03:00
Darren Shepherd
2dd69d18c6 only use the resolved name if port was zero 2025-07-16 11:38:24 -03:00
Darren Shepherd
01a7dd875d If you can't set hashsize on nf_conntrack don't fail 2025-07-16 11:38:24 -03:00
Darren Shepherd
d333fcfdc8 Drop credential providers 2025-07-16 11:38:24 -03:00
Darren Shepherd
484baae5bd Drop storage plugins 2025-07-16 11:38:24 -03:00
Darren Shepherd
a043442f54 Drop client-go cloud auth 2025-07-16 11:38:24 -03:00
Kubernetes Release Robot
80779bd6ff Release commit for Kubernetes v1.33.3 2025-07-15 17:59:41 +00:00
Kubernetes Prow Robot
25709109dd
Merge pull request #132272 from Peac36/automated-cherry-pick-of-#132168-upstream-release-1.33
Automated cherry pick of #132168: reduce logspam when calculating sandbox resources
2025-07-11 18:17:35 -07:00
Kubernetes Prow Robot
5158ef67a2
Merge pull request #131577 from ndbaker1/automated-cherry-pick-of-#131251-origin-release-1.33
Automated cherry pick of #131251: fix(kubelet): acquire imageRecordsLock when removing image
2025-07-11 18:17:28 -07:00
Kubernetes Prow Robot
f95a538dc5
Merge pull request #132728 from mimowo/automated-cherry-pick-of-#132614-upstream-release-1.33
Automated cherry pick of #132614: Fix validation for Job with suspend=true,completions=0 to set Complete condition
2025-07-11 17:07:28 -07:00
Kubernetes Prow Robot
a95af19070
Merge pull request #132860 from mimowo/automated-cherry-pick-of-#132502-upstream-release-1.33
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
Michal Wozniak
053e244efb Skip linter validation to allow cherrypick 2025-07-10 11:30:20 +02:00
Ben Luddy
6a9319c527 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:12:40 +02:00
Kubernetes Prow Robot
ecc8d0ae6a
Merge pull request #132337 from hakuna-matatah/automated-cherry-pick-of-#132244-upstream-release-1.33
Automated cherry pick of #132244: 1.33 regression - Consistent paginated lists serve from cache
2025-07-09 21:47:26 -07:00
Kubernetes Prow Robot
54a0ceab5f
Merge pull request #132280 from neolit123/automated-cherry-pick-of-#130782-origin-release-1.33
Automated cherry pick of #130782: Kubeadm issue #3152 ControlPlane node setup failing with "etcdserver: can only promote a learner member"
2025-07-09 09:01:28 -07:00
Kubernetes Prow Robot
e9c25f7a90
Merge pull request #132158 from linxiulei/automated-cherry-pick-of-#132109-release-1.33
Automated cherry pick of #132109: Clean backoff record earlier
2025-07-09 05:43:26 -07:00
Michal Wozniak
068079fb7e Review remarks 2025-07-04 11:28:46 +02:00
Michal Wozniak
3851253305 Fix validation for Job with suspend=true,completions=0 to set Complete condition 2025-07-04 11:28:46 +02:00
Kubernetes Release Robot
f208b6c73d Update CHANGELOG/CHANGELOG-1.33.md for v1.33.2 2025-06-17 19:04:01 +00:00
Kubernetes Release Robot
a57b6f7709 Release commit for Kubernetes v1.33.2 2025-06-17 18:31:31 +00:00
Harish Kuna
d4a4a1d881 Fix -Consistent paginated lists serve from cache 2025-06-16 17:48:00 +00:00
Kubernetes Prow Robot
83613fcfd5
Merge pull request #132316 from HirazawaUi/automated-cherry-pick-of-#132308-upstream-release-1.33
Automated cherry pick of #132308: Kubeadm: fix failing e2e tests
2025-06-16 02:20:58 -07:00
HirazawaUi
05e72aa38d fix kubeadm e2e tests 2025-06-15 13:24:28 +08:00
Kubernetes Prow Robot
2242f6c369
Merge pull request #132226 from cpanato/update-go-1-33
[release-1.33] [go] Bump images, dependencies and versions to go 1.24.4 and distroless iptables
2025-06-13 03:46:57 -07:00
bconry
cb130042b1 Add check to see if promote worked within the retry loop 2025-06-13 10:04:18 +03:00
Nikola
4c8c88d4cc reduce logspam when calculating sandbox resources
Signed-off-by: Nikola <peac36@abv.bg>
2025-06-12 20:43:01 +03:00
Carlos Panato
612e055556
Bump images, dependencies and versions to go 1.24.4 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-06-11 08:35:06 +02:00
Eric Lin
d2be12ab76 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:45:35 +00:00
Kubernetes Prow Robot
f900f01725
Merge pull request #131987 from gnufied/automated-cherry-pick-of-#131868-upstream-release-1.33
Automated cherry pick of #131868: Remove superflous expansion calls if controller finished expansion
2025-06-05 18:50:50 -07:00
Kubernetes Prow Robot
ee4b297f37
Merge pull request #131767 from ingvagabund/automated-cherry-pick-of-#131742-upstream-release-1.33
Automated cherry pick of #131742: [sig-scheduling] SchedulerPreemption [Serial] validates various priority Pods preempt expectedly with the async preemption: replace finalizers with preStop hook and TerminationGracePeriodSeconds
2025-06-05 18:50:43 -07:00
Kubernetes Prow Robot
9a90a6cca2
Merge pull request #132098 from gnufied/automated-cherry-pick-of-#131408-upstream-release-1.33
Automated cherry pick of #131408: Remove warning about resizing failed for unknown reason
2025-06-05 14:02:38 -07:00
Kubernetes Prow Robot
6ea58e512b
Merge pull request #131649 from princepereira/automated-cherry-pick-of-#131506-upstream-release-1.33
Automated cherry pick of #131506: Update hnslib version in Windows KubeProxy.
2025-06-05 11:20:38 -07:00
Kubernetes Prow Robot
1fe90c4c7d
Merge pull request #131993 from superbrothers/automated-cherry-pick-of-#131962-upstream-release-1.33
Automated cherry pick of #131962: Revert shorthand for kubectl explain --output
2025-06-05 07:56:42 -07:00
Kubernetes Prow Robot
18edacf576
Merge pull request #131781 from rata/automated-cherry-pick-of-#131623-upstream-release-1.33
Automated cherry pick of #131623: kubelet: userns: Improve errors returned to the user
2025-06-05 04:14:39 -07:00
Kubernetes Prow Robot
6144faccba
Merge pull request #131876 from pohly/automated-cherry-pick-of-#131844-origin-release-1.33
Automated cherry pick of #131844: DRA node: reject static pods which reference ResourceClaims
2025-06-04 11:02:42 -07:00
Hemant Kumar
a792b77906 Remove warning about resizing failed for unknown reason 2025-06-04 11:35:44 -04:00
Hemant Kumar
ea3aa29181 Add tests that validate the return value of resize operation 2025-05-28 11:52:34 -04:00
Kazuki Suda
060a498537
Revert shorthand for kubectl explain --output 2025-05-28 09:30:07 +09:00
Kubernetes Prow Robot
f20adaecd4
Merge pull request #131935 from cpanato/update-go-1.33
[release-1.33] [go]Bump images, dependencies and versions to go 1.24.9 and distroless iptables
2025-05-26 01:43:18 -07:00
Carlos Panato
c4f2287f8a
Bump images, dependencies and versions to go 1.24.9 and distroless iptables
Signed-off-by: Carlos Panato <ctadeu@gmail.com>
2025-05-23 09:14:58 -04:00
Patrick Ohly
1fde2b884c DRA node: reject static pods which reference ResourceClaims
If someone gains the ability to create static pods, they might try to use that
ability to run code which gets access to the resources associated with some
existing claim which was previously allocated for some other pod. Such an
attempt already fails because the claim status tracks which pods are allowed to
use the claim, the static pod is not in that list, the node is not authorized
to add it, and the kubelet checks that list before starting the pod in
195803cde5/pkg/kubelet/cm/dra/manager.go (L218-L222).

Even if the pod were started, DRA drivers typically manage node-local resources
which can already be accessed via such an attack without involving DRA. DRA
drivers which manage non-node-local resources have to consider access by a
compromised node as part of their threat model.

Nonetheless, it is better to not accept static pods which reference
ResourceClaims or ResourceClaimTemplates in the first place because there
is no valid use case for it.

This is done at different levels for defense in depth:
- configuration validation in the kubelet
- admission checking of node restrictions
- API validation

Co-authored-by: Jordan Liggitt <liggitt@google.com>

Code changes by Jordan, with one small change (resourceClaims -> resourceclaims).
Unit tests by Patrick.
2025-05-21 08:40:50 +02:00
Rodrigo Campos
2628e18dab 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:20:04 +02:00
Rodrigo Campos
514da8a95a 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:20:04 +02:00
Rodrigo Campos
992924664b 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:20:04 +02:00
Kubernetes Release Robot
76747b4eed Update CHANGELOG/CHANGELOG-1.33.md for v1.33.1 2025-05-15 08:46:51 +00:00