Itamar Holder
a6b971f14b
Use kubelet owned directories for mounting rather than /tmp
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
74f29880bd
Replace log entry by a warning event
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
29535c0463
Warn of swap is enabled on the OS and tmpfs noswap is not supported
...
When --fail-swap-on=false kubelet CLI argument
is provided, but tmpfs noswap is not supported
by the kernel, warn about the risks of memory-backed
volumes being swapped into disk
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
e7df4d17c4
Add a isSwapOnAccordingToProcSwaps() function and swap utils unit tests
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
2a174d09fa
If the kernel version is at least 6.4, assume tmpfs noswap is supported
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
3b9b03935e
unit test: Use tmpfs noswap if supported
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
Itamar Holder
fb6c78c90b
Use tmpfs noswap if supported
...
use the tmpfs noswap option in order
to mount memory-backed volumes if it's supported.
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 13:18:16 +03:00
胡玮文
c916f5e755
e2e/framework/node: use gomega.Eventually to poll
2024-05-21 18:07:19 +08:00
Kubernetes Prow Robot
8c1983ffc0
Merge pull request #122791 from p0lyn0mial/upstream-cleanup-watch-list-env-var
...
cleanup: replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate
2024-05-21 02:05:35 -07:00
Itamar Holder
e9b1a5e185
Expect NoSwap on NodeConformance, test LimitedSwap only in serial tests
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
ab5f84e8ed
Refactor: Better pod image, read cgroup file from container
...
- Improve cgroup file read: execute from container instead of host
- Clean unused variables/functions
- BeTrue/BeFalse -> BeTrueBecause/BeFalseBecause
- Use agnhost instread of stress image
- Improve description and fix typo
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
b17050927c
Update node conformance to use NoSwap
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
bdeb80a846
Add serial tests
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
2230ed7dc6
Refactor: helper functions and quantity improvement
...
- Add getSleepingPod() helper function
- Refactor: quantity functions to return resource.quantity instead of int64
- Improve helper functions for memory capacity
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
13403e836a
Fix swap feature gate check by introduting IsFeatureGateEnabled()
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
959d01cbbf
Remove cgroup v1 support for swap tests
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
eb5d647655
Move current test under its own NodeConformance context
...
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Itamar Holder
9f344f23fb
Add NodeSwap as a node feature in nodefeature.go
...
Also, Remove wrong documentation about
tempSetCurrentKubeletConfig() returning bool
Signed-off-by: Itamar Holder <iholder@redhat.com>
2024-05-21 11:19:54 +03:00
Lukasz Szaszkiewicz
9248cccc27
replace ENABLE_CLIENT_GO_WATCH_LIST_ALPHA with WatchListClient gate
2024-05-21 08:47:31 +02:00
Ziqi Zhao
588b72a942
SyncPod record error and set error status to span when return err is not nil
...
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
2024-05-21 13:35:56 +08:00
Kubernetes Prow Robot
a70089ab99
Merge pull request #125009 from BenTheElder/make-branch
...
define BRANCH to silence undefined variable warning
2024-05-20 21:56:44 -07:00
AxeZhan
3a2a500182
check restartpolicy in getFinishTimeFromContainers
2024-05-21 11:58:06 +08:00
Kubernetes Prow Robot
b168ad5a31
Merge pull request #125008 from eddiezane/ez/sig-cli-owners
...
Update sig-cli owners
2024-05-20 20:18:56 -07:00
Kubernetes Prow Robot
62aae86899
Merge pull request #125005 from brianpursley/fix-deprecated-ptr
...
Use ptr.To instead of deprecated pointer functions
2024-05-20 18:14:08 -07:00
Benjamin Elder
0973b4b6c4
define BRANCH to silence undefined variable warning
2024-05-20 17:05:52 -07:00
Eddie Zaneski
0ad33b1267
Update sig-cli owners
...
Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
2024-05-20 17:08:03 -06:00
Kubernetes Prow Robot
765e7ef0d2
Merge pull request #124912 from enj/enj/i/enc_config_typos
...
encryptionconfig: detect typos
2024-05-20 15:40:41 -07:00
Matthias Bertschy
893ab296d7
increase memory limit for e2e test containers
...
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
2024-05-20 22:40:03 +02:00
Brian Pursley
288d132cf6
Use ptr.To instead of deprecated pointer functions
2024-05-20 16:14:54 -04:00
Kubernetes Prow Robot
7b73bc472c
Merge pull request #125002 from jmcgrath207/revert-122631-disable-service-links
...
Revert "DisableServiceLinks admission controller"
2024-05-20 11:39:33 -07:00
Alexander Zielenski
b34197dc14
feedback
2024-05-20 11:21:31 -07:00
John McGrath
e72788d58e
Revert "DisableServiceLinks admission controller"
2024-05-20 12:20:46 -05:00
Kubernetes Prow Robot
56147500da
Merge pull request #124929 from HirazawaUi/remove-unused-proxy-function
...
[kube-proxy]: Remove unused util functions
2024-05-20 10:17:57 -07:00
Kubernetes Prow Robot
31d43ee485
Merge pull request #124867 from p0lyn0mial/upstream-progress-notification-for-waitUntilWatchCacheFreshAndForceAllEvents
...
storage/cacher: waitUntilWatchCacheFreshAndForceAllEvents checks if storage.RequestWatchProgress is supported
2024-05-20 09:12:29 -07:00
Kubernetes Prow Robot
073c1596f2
Merge pull request #124602 from Iceber/fix_discovery_prioritized_versions
...
fix the version order of 'discovery.k8s.io'
2024-05-20 09:12:20 -07:00
Kubernetes Prow Robot
935292b62d
Merge pull request #124754 from p0lyn0mial/upstream-cacher-dispatchevents-progress-requester
...
storage/cacher: dispatchEvents use progressRequester
2024-05-20 08:10:32 -07:00
moriya
1b8fb3a838
pvc
2024-05-20 23:13:56 +09:00
Lubomir I. Ivanov
4a6d3187fa
kubeadm: deprecate the RootlessControlPlane feature gate
...
The feature was left in alpha for a few releases, since
k8s started planning on a broader feature UserNamespacesSupport,
which is what kubeadm should integrate with.
UserNamespacesSupport graduated to beta in 1.30.
Once it graduates to GA kubeadm can start using it an remove
RootlessControlPlane.
2024-05-20 16:55:11 +03:00
Kubernetes Prow Robot
b10a141fd2
Merge pull request #124614 from p0lyn0mial/upstream-reflector-warn-no-bookmark-event
...
client-go/reflector: warns when the bookmark event for initial events hasn't been received
2024-05-20 06:46:50 -07:00
Lukasz Szaszkiewicz
93960f4890
client-go/reflector: warns when the bookmark event for initial events hasn't been received
2024-05-20 14:42:48 +02:00
Lukasz Szaszkiewicz
33f81ee23f
storage/cacher: dispatchEvents use progressRequester
2024-05-20 14:18:36 +02:00
HirazawaUi
facf702e64
Remove useless util functions
2024-05-20 19:57:43 +08:00
Roman Bednar
5ea0c7be1e
graduate PersistentVolumeLastPhaseTransitionTime to GA in 1.31
2024-05-20 13:46:24 +02:00
AxeZhan
e4348a1210
consider sidecar containers in getFinishTimeFromContainers
2024-05-20 18:31:23 +08:00
TommyStarK
902a6b55eb
cmd/kubelet: remove deprecated otel NewNoopTracerProvider
...
Signed-off-by: TommyStarK <thomasmilox@gmail.com>
2024-05-19 23:43:06 +02:00
SataQiu
4bd3baece3
kube-controller-manager: remove the deprecated horizontal-pod-autoscaler-upscale-delay and horizontal-pod-autoscaler-downscale-delay flags
2024-05-19 17:49:23 +08:00
胡玮文
f3f44f70bf
e2e/storage: speed up kubectl commands
...
Speed up stopping by not waiting for Node not ready, `systemctl` will ensure
kubelet process stopped before return. This should save 40s per case.
Since stop command does not wait for not ready, start command needs to wait for
the next heartbeat to ensure we are checking status from new process.
implement restart by stop then start, to get heartbeat time when kubelet is
down. And we do not need to sleep 30s now. The sleep is moved to callers, since
they still need them to ensure the volume does not disappear.
Dropped support for non-systemd system.
2024-05-19 02:51:32 +08:00
moriya
58143ff3eb
volumezone: scheduler queueing hints
2024-05-18 23:34:39 +09:00
AxeZhan
b5f25c41ce
add an integration test when nodeAffinity specifies a non-existent node.
2024-05-18 05:00:59 +08:00
AxeZhan
d6d1e6ad8a
base on allNodes when calculating nextStartNodeIndex
2024-05-18 00:30:38 +08:00