Jon Huhn
8cdbbf5cda
Update k8s.io/utils for new generic ring buffer
2025-06-04 12:56:39 -05:00
Itamar Holder
8d3fb9ee0a
[KEP-2400] kubectl top: add a --show-swap option ( #129458 )
...
* top, refactor: turn package-exposed variables to unexpose struct fields
Signed-off-by: Itamar Holder <iholder@redhat.com >
* kubectl top node: add the --show-swap option
Example output:
> kubectl top node --show-swap
NAME CPU(cores) CPU(%) MEMORY(bytes) MEMORY(%) SWAP(bytes) SWAP(%)
node01 500m 8% 2836Mi 60% 0Mi 0%
node02 260m 5% 2206Mi 47% 512Mi 50%
Signed-off-by: Itamar Holder <iholder@redhat.com >
* kubectl top pod: add the --show-swap option
Example output:
> kubectl top pod -n kube-system --show-swap
NAME CPU(cores) MEMORY(bytes) SWAP(bytes)
coredns-58d5bc5cdb-5nbk4 2m 19Mi 0Mi
coredns-58d5bc5cdb-jsh26 3m 37Mi 0Mi
etcd-node01 51m 143Mi 0Mi
kube-apiserver-node01 98m 824Mi 0Mi
kube-controller-manager-node01 20m 135Mi 0Mi
kube-proxy-ffgs2 1m 24Mi 0Mi
kube-proxy-fhvwx 1m 39Mi 0Mi
kube-scheduler-node01 13m 69Mi 0Mi
metrics-server-8598789fdb-d2kcj 5m 26Mi 0Mi
Signed-off-by: Itamar Holder <iholder@redhat.com >
* kubectl top node --show-swap: add unit tests
Signed-off-by: Itamar Holder <iholder@redhat.com >
* kubectl top pod --show-swap: Add unit tests
Signed-off-by: Itamar Holder <iholder@redhat.com >
* Explicitly mark swap as unavailable when necessary
Signed-off-by: Itamar Holder <iholder@redhat.com >
---------
Signed-off-by: Itamar Holder <iholder@redhat.com >
2025-06-04 07:10:38 -07:00
Kubernetes Prow Robot
caa9324842
Merge pull request #132082 from aramase/aramase/t/kep_3331_revocation_unit_test
...
KEP-3331: Add test to simulate revocation via user validation rule using unique identifier (jti)
2025-06-03 15:46:37 -07:00
Anish Ramasekar
6a495241ef
KEP-3331: Add test to simulate revocation via user validation rule using unique identifier (jti)
...
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com >
2025-06-03 14:40:17 -07:00
Kubernetes Prow Robot
bd87e4d2a6
Merge pull request #132061 from miltosdoul/fix_typeprovider_datarace
...
fix: datarace in ResolverTypeProvider
2025-06-03 14:34:44 -07:00
Kubernetes Prow Robot
68a0142976
Merge pull request #131980 from LucaBernstein/fix-typo
...
Fix typo in the `--anonymous-auth` flag name
2025-06-03 14:34:37 -07:00
Kubernetes Prow Robot
1c56fff49b
Merge pull request #132077 from ffromani/e2e-node-cgroup-v2-only
...
e2e: node: cpumanager: require cgroup v2
2025-06-03 12:10:46 -07:00
Kubernetes Prow Robot
a883be6e36
Merge pull request #132031 from atiratree/update-getRSPods
...
add orphanedPods parameter to getRSPods and improve code flow in syncReplicaSet
2025-06-03 12:10:39 -07:00
Kubernetes Prow Robot
e98d47001c
Merge pull request #132053 from pohly/test-integration-race-configurable
...
test-integration: allow enabling race detection
2025-06-03 10:02:46 -07:00
Kubernetes Prow Robot
9819f760f0
Merge pull request #131991 from SergeyKanzhelev/clarifyTheTokenScope
...
Clarified the token scope and future plans for the next security scan…
2025-06-03 10:02:38 -07:00
Francesco Romani
7e7aa6d810
e2e: node: cpumanager: require cgroup v2
...
in general, the rewritten e2e cpumanager test assume cgroup v2.
A limited set of these may be updated to work also with the
obsolete and declining cgroup v1, but these need to be reviewed
on test-by-test matter.
To fix test failures, we add a top level require for cgroup v2,
skipping otherwise. This will fix the red lanes while we review
the testcases and the deprecation plan of the other tests.
Signed-off-by: Francesco Romani <fromani@redhat.com >
2025-06-03 18:22:48 +02:00
Kubernetes Prow Robot
e9b3d62c9a
Merge pull request #132055 from soltysh/default_prefs_tests
...
kuberc: add tests for DefaultGetPreferences
2025-06-03 08:20:39 -07:00
Maciej Szulik
68efb079aa
kuberc: add tests for DefaultGetPreferences
...
Signed-off-by: Maciej Szulik <soltysh@gmail.com >
2025-06-03 16:17:25 +02:00
Kubernetes Prow Robot
d23407b0e2
Merge pull request #132035 from haircommander/userns-test-fix
...
e2e: fix userns test
2025-06-03 06:18:42 -07:00
Kubernetes Prow Robot
62f72addf2
Merge pull request #120816 from tnqn/fix-unreachable-taint-delay
...
NoExecute taint should be added when a Node's ready condition becomes Unknown
2025-06-03 00:54:44 -07:00
Kubernetes Prow Robot
b65f712d2c
Merge pull request #131907 from gnufied/do-not-expand-non-expnadable-volumes
...
Do not expand non expnadable volumes
2025-06-02 21:38:37 -07:00
Miltiadis Doulgeris
de1d6fbf24
fix: ResolverTypeProvider data race
2025-06-03 01:12:31 +03:00
Kubernetes Prow Robot
fd53f7292c
Merge pull request #132039 from alvaroaleman/fix-w-unstructured
...
FieldManagedObjectTracker: Fix to work with unstructured
2025-06-02 15:04:42 -07:00
Kubernetes Prow Robot
901d1249b5
Merge pull request #131801 from natasha41575/move-handle-pod-additions
...
move pod admission and resize logic into the allocation manager
2025-06-02 13:42:38 -07:00
Natasha Sarkar
9b8d7ce498
pr review feedback
2025-06-02 17:51:03 +00:00
Sergey Kanzhelev
a512de6e09
Clarified the token scope and future plans for the next security scan to refer to it
2025-06-02 16:53:10 +00:00
Patrick Ohly
6cb14884b6
test-integration: allow enabling race detection
...
A job may now enable race detection via KUBE_RACE=-race.
2025-06-02 11:47:42 +02:00
Kubernetes Prow Robot
849a82b727
Merge pull request #132036 from adrianmoisey/kep-4427
...
KEP-4427: Promote Relaxed DNS search string validation to GA
2025-06-01 14:02:43 -07:00
Kubernetes Prow Robot
7f139457c1
Merge pull request #131961 from cyclinder/fix_proxy_unknown_option
...
proxy: remove iptables wait interval flag
2025-06-01 14:02:36 -07:00
Kubernetes Prow Robot
002faa6baa
Merge pull request #131847 from HirazawaUi/fix-test-leak
...
kubelet: Fix potential goroutine leak in unit tests
2025-05-31 13:00:11 -07:00
Kubernetes Prow Robot
531b767896
Merge pull request #131659 from mortent/MoreEffectiveAllocatorForPartitionable
...
DRA: Improve implementation of counter management in allocator
2025-05-31 00:16:18 -07:00
Adrian Moisey
0a7d9f9bfd
KEP-4427: Promote Relaxed DNS search string validation to GA
2025-05-31 07:45:16 +02:00
Morten Torkildsen
2aa7ef3d27
Address comments
2025-05-30 22:20:30 +00:00
Kubernetes Prow Robot
4832b57e48
Merge pull request #131968 from pohly/dra-kubelet-prepare-validation
...
DRA kubelet: validation pass before changing claim info cache
2025-05-30 12:40:19 -07:00
Alvaro Aleman
dbdd6a3b43
FieldManagedObjectTracker: Fix to work with unstructured
...
Prior to this patch, this fails because the skipnonappliedfieldmanager
uses the `objectcreater` (aka `*runtime.Scheme`) to create a new object
for which it never sets the GVK. In the case of
`*unstructured.Unstructured`, the GVK can not be derived from the object
itself so the operation would subsequently fail [here][0] with an
```
Object 'Kind' is missing in 'unstructured object has no kind'
```
error. Fix this by explicitly setting the GVK in case of unstructured.
[0]: 02eb7d424a/staging/src/k8s.io/apimachinery/pkg/util/managedfields/internal/structuredmerge.go (L98)
2025-05-30 15:33:42 -04:00
Peter Hunt
ee33c1a9fc
e2e: fix userns test
...
after creating two pods, we need to ensure we wait on each to be ready before we collect their logs
Signed-off-by: Peter Hunt <pehunt@redhat.com >
2025-05-30 13:32:52 -04:00
Kubernetes Prow Robot
02eb7d424a
Merge pull request #130787 from pohly/test-integration-e2e-suite-removal
...
hack: remove verify-e2e-suites.sh
2025-05-30 07:36:18 -07:00
Kubernetes Prow Robot
e0859f91b7
Merge pull request #131887 from ania-borowiec/extract_cyclestate_interface
...
Moving Scheduler interfaces to staging: split CycleState into interface and implementation, move interface to staging repo
2025-05-30 04:00:18 -07:00
Kubernetes Prow Robot
11abe268c0
Merge pull request #131983 from pohly/dra-resourceclaim-status-tests
...
DRA integration: move and extend device status test
2025-05-30 02:34:18 -07:00
Patrick Ohly
4f91a69f2b
DRA integration: move and extend device status test
...
This moves the enabled/disabled test into the common test/integration/dra which
simplifies the code a bit and amortizes the cost of starting the apiserver
because several different tests can use the same instance, running in parallel.
While at it, setting the status via SSA also gets tested.
2025-05-30 10:29:18 +02:00
Cyclinder Kuo
0a96613754
proxy: remove iptables wait interval flag
...
Signed-off-by: cyclinder <kuocyclinder@gmail.com >
2025-05-30 16:13:06 +08:00
Patrick Ohly
a5aabf9f7e
DRA kubelet: validation pass before changing claim info cache
...
If preparing for a pod failed because the driver was not registered, it failed
after already having added the pod and claim to the claim info cache. The
effect was that deletion of the pod was blocked until the driver got
installed. Other errors had a similar effect. Now as many errors as possible
are checked in a read-only loop before proceeding to changing the claim info
cache.
The error message that was surfaced for the problem was not very readable:
Failed to prepare dynamic resources: failed to get gRPC client for driver dra-1411.k8s.io: plugin name dra-1411.k8s.io not found in the list of registered DRA plugins
To address this, error messages and wrapping get updated according to these
guidelines:
// Most errors returned by the manager show up in the context of a pod.
// They try to adher to the following convention:
// - Don't include the pod.
// - Use terms that are familiar to users.
// - Don't include the namespace, it can be inferred from the context.
// - Avoid repeated "failed to ...: failed to ..." when wrapping errors.
// - Avoid wrapping when it does not provide relevant additional information to keep the user-visible error short.
2025-05-30 09:52:22 +02:00
Kubernetes Prow Robot
c5c87bde8f
Merge pull request #132004 from alvaroaleman/fix-fasf
...
ManagedFieldsObjectTracker: Reload scheme
2025-05-29 16:54:17 -07:00
Kubernetes Prow Robot
fc0e3bf957
Merge pull request #132022 from Jefftree/client-go-template
...
Update client-go PR template
2025-05-29 15:02:18 -07:00
Jeffrey Ying
b9496d1a9d
Update client-go template with backticks
2025-05-29 16:18:47 -04:00
Jefftree
d70fcf731b
Update client-go PR template
2025-05-29 20:13:56 +00:00
Ania Borowiec
d75af825fb
Extract interface CycleState and move is to staging repo. CycleState implementation remains in k/k/pkg/scheduler/framework
2025-05-29 16:18:36 +00:00
Kubernetes Prow Robot
cd3b5c5766
Merge pull request #131658 from dims/allow-specifying-a-directory-for-image-credential-providers-json-configuration
...
Allow specifying a directory for image credential providers json configuration
2025-05-29 07:46:20 -07:00
Davanum Srinivas
be6807e6a5
Allow specifying a directory for image credential providers json/yaml configuration
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com >
2025-05-29 09:42:26 -04:00
Kubernetes Prow Robot
3e5849972e
Merge pull request #132012 from pacoxu/dns-1.26
...
kube-dns bump to v1.26.4
2025-05-29 04:56:19 -07:00
Filip Křepinský
aac00c1f0e
add orphanedPods parameter to getRSPods
...
and improve code flow in syncReplicaSet
2025-05-29 10:50:32 +02:00
Paco Xu
d13dcbbf95
kube-dns bump to v1.26.4
2025-05-29 13:05:32 +08:00
Kubernetes Prow Robot
90a108cb86
Merge pull request #129918 from sunnylovestiramisu/stresstest
...
Add Stress Tests for VolumeAttributesClass
2025-05-28 20:22:16 -07:00
Kubernetes Prow Robot
ce21ce5d3b
Merge pull request #131869 from pohly/dra-test-integration-scheduling
...
DRA integration: set up nodes for scheduling
2025-05-28 11:36:24 -07:00
Kubernetes Prow Robot
bfb5c3781a
Merge pull request #131794 from ffromani/e2e-serial-node-cpumanager-fix-lowcpu
...
e2e: node: always declare testcase CPU requirements
2025-05-28 11:36:16 -07:00