Commit Graph

124553 Commits

Author SHA1 Message Date
Toru Komatsu
a7242fcff7
Implement PVC/Add QueueingHint in CSILimit plugin (#124703)
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-08-13 21:02:42 -07:00
Jordan Liggitt
c181912dc5
Restore honoring --version build ID overrides 2024-08-13 21:52:58 -04:00
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
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
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
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
Adarsh-verma-14
838d7c9049 remove duplicate call for ServeMux 2024-08-07 02:56:49 +05:30
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
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
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
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
Kubernetes Prow Robot
dbc2b0a5c7
Merge pull request #126383 from Shubham82/correct_comment_for_StableLoadBalancerNodeSet
Update the Comment for StableLoadBalancerNodeSet Feature Gate.
2024-08-01 07:20:02 -07:00
Benjamin Elder
b33ef18bdf update coredns/corefile-migration to v1.0.23 to support coredns v1.11.3 2024-07-31 13:36:01 -07:00
Kubernetes Prow Robot
f8d5b2074c
Merge pull request #126489 from mehabhalodiya/bump-publishing-131
releng: update publishing bot rules for 1.31
2024-07-31 13:32:20 -07:00
Kubernetes Prow Robot
c19d9edfde
Merge pull request #126329 from serathius/concurrent-transformation-chan-of-chan
[chan of chan] Make object transformation concurrent to remove watch cache scalability issue for conversion webhook
2024-07-31 10:41:42 -07:00
mehabhalodiya
017d7b8387 releng: update publishing bot rules for 1.31
Signed-off-by: mehabhalodiya <mehabhalodiya@gmail.com>
2024-07-31 22:40:42 +05:30
Marek Siarkowicz
bb686f2033 Make object transformation concurrent to remove watch cache scalability issue for conversion webhook
Test by enabling consistent list from cache in storage version migrator stress test that uses
conversion webhook that bottlenects events comming to watch cache.

Set concurrency to 10, based on maximum/average transform latency when
running stress test. In my testing max was about 60-100ms, while average
was 6-10ms.
2024-07-31 18:30:46 +02:00
Marek Siarkowicz
93a10a7569 Introduce ConcurrentWatchObjectDecode feature gate disabled by default 2024-07-31 18:30:45 +02:00
Lionel Jouin
4532d90068 DRA: Fix ResourceClaimTemplateSpec comment
ObjectMeta for the ResourceClaimTemplateSpec are copied into
ResourceClaim not PVC.

Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
2024-07-31 17:53:47 +02:00
Kubernetes Prow Robot
eb729d1db7
Merge pull request #126469 from serathius/beta2
Move ConsistentListFromCache to Beta default again
2024-07-31 08:35:47 -07:00
Kubernetes Release Robot
9413cf204a CHANGELOG: Update directory for v1.31.0-rc.0 release 2024-07-31 10:16:15 +00:00
Patrick Ohly
d71d59b91e scheduler: document behavior of Error status returned by Filter
This behavior was useful for https://github.com/kubernetes/kubernetes/pull/125488 but
wasn't obvious when reading the documentation.
2024-07-31 08:55:46 +02:00