Commit Graph

125655 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
9d140b136c
Merge pull request #125372 from hungnguyen243/pvcScalabilityFix
Improve PVC protection controller's scalability by batch-processing PVCs by namespace & caching live pod list results
2024-08-13 18:52:42 -07:00
Kubernetes Prow Robot
5fdab96c6c
Merge pull request #121997 from dongjiang1989/admission-ioutil
chores: Replace deprecation ioutil fucntions
2024-08-13 14:44:42 -07:00
Kubernetes Prow Robot
b2799bbda7
Merge pull request #124690 from mowangdk/test/add_e2e_test_for_volume_health
chore: Add e2e test for NodeGetVolumeStats
2024-08-13 13:00:43 -07:00
Maciej Skoczeń
5894e201fa Measure metrics only during a specific op in scheduler_perf 2024-08-13 12:34:06 +00:00
Sascha Grunert
b22bac4ba8
Update cri-tools to v1.31.1
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-13 12:53:32 +02:00
Tobias Klauser
99a90df3d0
client-go: fix typo in leaderelection error log message 2024-08-13 11:22:46 +02:00
Arda Güçlü
d981b19ad3 Add timeout cancellation to kubectl cp destination path check 2024-08-13 11:02:04 +03:00
Kubernetes Release Robot
09f025973a CHANGELOG: Update directory for v1.31.0 release 2024-08-13 07:56:14 +00:00
0x5457
81824b7c2e apiserver: declare kubeClient and dynamicClient as interface types to avoid panic 2024-08-13 11:25:11 +08:00
googs1025
529d13c746 refactor: kubelet preemption TestEvictPodsToFreeRequests() method 2024-08-13 08:41:07 +08:00
Wei Huang
f6a11da279
fix a scheduler preemption issue that victim is not patched properly 2024-08-12 15:25:10 -07:00
Peter Hunt
41e6162cc0 e2e/storage: update block device test to always specify a valid path
in the isEphemeral case, the pvcBlock doesn't have a filled in name, which means the DevicePath is "/mnt".

When using the OCI runtime runc, this is valid because runc sanitizes the path, mounting it in `/mnt` in the container.
However, the OCI runtime crun does not do this.

One can argue the validity of passing a path structured like a directory as a block device, but ultimately from what I can see
this wasn't intentional.

As such, fix it by setting the mount to be based on the first Volume name, which both cases should have filled out.

Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-08-12 12:36:11 -04:00
Kubernetes Prow Robot
099a88370d
Merge pull request #126638 from soltysh/fix_wait
wait: don't lowercase condition in --for argument
2024-08-12 09:10:55 -07:00
Maciej Szulik
fad6c424ac
wait: don't lowercase condition in --for argument 2024-08-12 16:59:17 +02:00
Paco Xu
85c3c67094 fix a typo in kubeadm v1beta4 doc 2024-08-12 15:12:20 +08:00
Paco Xu
69a67556c7 kubelet: add warning log and events for cgroup v2 running on kernel < 5.8 2024-08-12 14:06:56 +08:00
古九
9fef30117f fix short circuit if the compaction request from apiserver is disabled 2024-08-12 10:21:49 +08:00
xin.li
42e8446d7e kubeadm: increase ut coverage for util/version
Signed-off-by: xin.li <xin.li@daocloud.io>
2024-08-09 09:23:10 +08:00
Peter Hunt
c7b7ea0514 e2e_node: update node cgroup manager test to verify kubelet recreates kubepods cgroup
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-08-08 16:53:44 -04:00
Peter Hunt
dd2dcc0b0a e2e_node: enable and fix cgroups test for systemd
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-08-08 15:57:49 -04:00
Hung Nguyen
eb16aa1d4a improve PVC Protection Controller's processing mechanism with sample performance test 2024-08-08 16:57:55 +00:00
Sascha Grunert
d850fb6756
kubeadm: don't warn if crictl binary does not exist
kubeadm does not rely on `crictl` any more, so we can now drop the
warning in 1.32 as outlined in:

https://github.com/kubernetes/kubeadm/issues/3064

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-08-08 15:28:31 +02:00
Omer Aplatony
18c0d6a79e chore(validatingadmissionpolicystatus): use WaitForCacheSync after sharedInformerFactory Start in unit test
Signed-off-by: Omer Aplatony <omerap12@gmail.com>
2024-08-08 14:45:26 +03:00
Jingyuan Liang
a2dc34cb17 kubectl/describe: use function calls to build field selector
Instead of using string concatenation.

Signed-off-by: Jingyuan Liang <jingyuanliang@google.com>
2024-08-08 00:54:23 +00:00
Sergey Kanzhelev
e28251ec38 remove health-monitor service as it does more harm than good 2024-08-07 21:23:38 +00:00
Luca Berneking
90906ab1ea Reduce memory usage/allocations during wait for volume attachment
After a node restart kubelet tries to (re)attach all volumes to the
pods. We poll the `verifyVolumesMountedFunc` every 300ms to check whether
the mount has succeeded. This function called the
`GetMountedVolumesForPod` function that allocates memory for every
volumes on every pod (`len(asw.attachedVolumes)`). Because this function
is executed for every pod simultaneously, this results in exponential
memory usage and high cpu usage due to garbage collection.
We already know the exact volume names and pod name and are able to
completly remove the slice allocation.

Signed-off-by: Luca Berneking <l.berneking@mittwald.de>
2024-08-07 20:47:58 +02:00
Abu Kashem
8fa3e61399
apiserver: improve logging for apf tests in server/filters package 2024-08-07 14:23:09 -04:00
mprahl
db2218d16e Stop the RetryWatcher when failing due to permissions issue
When the client does not have permission to watch a resource, the
RetryWatcher continuously retried. In this case, it's better to send an
error and stop retrying to let the caller handle this case since this is
not a transient error that can be recovered without user intervention.

This is particularly helpful in applications that leverage a user
provided service account and the application needs to notify the user to
set the correct permissions for the service account.

This also accounts for invalid credentials from the watch client.

Signed-off-by: mprahl <mprahl@users.noreply.github.com>
2024-08-07 09:58:24 -04:00
carlory
b6ef1c80e2 Collect more info for debugging #124136 2024-08-07 16:39:07 +08:00
Adarsh-verma-14
838d7c9049 remove duplicate call for ServeMux 2024-08-07 02:56:49 +05:30
Taahir Ahmed
2ad2bd8907 Define credential IDs for X.509 certificates
This commit expands the existing credential ID concept to cover X.509
certificates.  We use the certificate's signature as the credential ID,
since this safe and unique.
2024-08-06 11:33:01 -07:00
Antonio Ojea
5845492cb4 hostNetwork pods mount /etc/hosts without network
hostNetwork pods mount the /etc/hosts from the root namespaces, hence
does not depend on PodIPs to be populated to mount the /etc/hosts file
and add the argumentes specified in the Pod.Spec like hostAliases.
2024-08-06 16:56:57 +00:00
Will Daly
d59687c367 kube-proxy: initialization wait for node and serviceCIDR synced
Follow-on from https://github.com/kubernetes/kubernetes/pull/126532
to wait for pre-sync events delivered for the remaining two informers
in kube-proxy (node and serviceCIDR).
2024-08-06 09:01:42 -07:00
jonyhy96
dde23bb0b1
apiserver: fix data race in apf tests in server/filters package
Signed-off-by: jonyhy96 <hy352144278@gmail.com>
Co-authored-by: chenwen  <wen.chen@daocloud.io>
2024-08-06 11:12:06 -04:00
Kubernetes Release Robot
60c4c2b252 CHANGELOG: Update directory for v1.31.0-rc.1 release 2024-08-06 06:14:49 +00:00
Sergey Kanzhelev
5c5b86accc adding SergeyKanzhelev as SIG Node approver 2024-08-05 20:11:33 +00:00
Monis Khan
bff6ce4a38
ForbiddenStatusError: make linter happy on error construction
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-08-05 10:50:51 -04:00
杨军10092085
56bbae4807 Updated incorrect description of persistentVolumeClaimRetentionPolicy 2024-08-05 21:30:25 +08:00
Stephen Kitt
f4ddb44c36
Handle all mock header generation with mockery
mockery is set up to generate headers in all the mocks it produces, so
the separate header generation in update-mocks.sh is no longer useful
(and leads to duplicate headers in three cases). This removes the
relevant parts of the shell script.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-08-05 11:19:37 +02:00
SataQiu
506d5c8966 kubeadm: add a validation warning when the certificateValidityPeriod is more than the caCertificateValidityPeriod 2024-08-05 16:15:24 +08:00
carlory
cba2b3f773 kube-scheduler remove non-csi volumelimit plugins 2024-08-05 15:02:32 +08:00
googs1025
6427243676 use logger instead of new klog.FromContext(ctx) 2024-08-04 21:09:02 +08:00
Kubernetes Prow Robot
00236ae0d7
Merge pull request #126519 from dims/bjhaid-bjhaid-topology-verbosity-take-2
[kube-proxy] add log verbosity to endpoint topology hint loop - Take 2
2024-08-03 16:54:37 -07:00
Will Daly
5bd6cbba33 kube-proxy: initialization wait for service and endpoint handlers synced
Ensure kube-proxy waits for the services/endpointslices informer
caches to be synced *and* all pre-sync events delivered before
setting isInitialized=true. Otherwise, in clusters with many services,
some services may be missing from svcPortMap when kube-proxy starts
(e.g. during daemonset rollout). This can cause kube-proxy to temporarily
remove service DNAT rules and then skip cleanup of UDP conntrack entries
to a service VIP.

Resolves: https://github.com/kubernetes/kubernetes/issues/126468
2024-08-03 13:01:29 -07:00
Davanum Srinivas
4fc6d8daf5
[kube-proxy] add log verbosity to endpoint topology hint loop - Take 2
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-08-02 22:28:51 -04:00
Monis Khan
857127f7c4
SSA: improve create authz error message
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-08-02 17:20:53 -04:00
Monis Khan
d76eae46fc
SSA: add integration test to exercise authz
Signed-off-by: Monis Khan <mok@microsoft.com>
2024-08-02 17:04:51 -04:00
Gyuho Lee
5b2c70870b
fix(staging/cri-client): typos in README links
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
2024-08-03 00:09:52 +08:00
Drew Sirenko
726734b0b0 Fix broken A/D Controller metrics test 2024-08-01 17:52:33 -04:00
Siyuan Zhang
35488ef5c7 Verify: add static analysis to verify new feature gates are added as versioned feature specs.
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-08-01 13:52:32 -07:00