Stephen Kitt
f55b59fc02
pkg/controller: drop pointer wrapper functions
...
The new k8s.io/utils/ptr package provides generic wrapper functions,
which can be used instead of type-specific pointer wrapper functions.
This replaces the latter with the former, and migrates other uses of
the deprecated pointer package to ptr in affected files.
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-07-02 16:19:12 +02:00
Maciej Szulik
4b5cf0a276
Remove deprecated kubectl drain flag
...
delete-local-data was deprecated back in v1.20 with this commit:
625e47aaa2
It's about time we entirely drop the support for this flag. Users should
be already using delete-emptydir-data instead.
2024-07-02 15:52:04 +02:00
Maciej Szulik
f1917f18eb
Remove deprecated kubectl run flags
...
This commits removes the following flags from kubectl run:
- filename
- force
- grace-period
- kustomize
- recursive
- timeout
- wait
Those flags are deprecated since v1.26, see this commit
09804a198c
.
2024-07-02 15:51:49 +02:00
Kubernetes Prow Robot
a38cde339a
Merge pull request #125832 from atiratree/fix-UnhealthyPodEvictionPolicy-e2e
...
fix readiness flake in UnhealthyPodEvictionPolicy
2024-07-02 05:15:59 -07:00
Kubernetes Prow Robot
e341d5b1aa
Merge pull request #125626 from linxiulei/fix_routine_log
...
Fix httplog not logging watch duration
2024-07-02 04:05:59 -07:00
Sascha Grunert
ae8f6f002d
cri: allow GetContainerEvents
to pass a context
...
The context can be used for timeout purposes for example, not really for
Kubernetes but other consumers like cri-tools.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2024-07-02 12:03:34 +02:00
Eric Lin
06c7058115
Fix httplog not logging watch duration in separate goroutines
...
Signed-off-by: Eric Lin <exlin@google.com>
2024-07-02 09:58:44 +00:00
Gaurav Ghildiyal
233010f2fa
Change ServiceTrafficDistribution feature-gate to beta and enable by default.
2024-07-01 23:55:39 -07:00
Gaurav Ghildiyal
386ca0ff4f
Add integration test for verifying the enablement and disablement of
...
feature-gate.
2024-07-01 23:51:59 -07:00
olderTaoist
b478621596
register unscheduable plugin when prefileter with NodeNames
2024-07-02 13:02:45 +08:00
Kubernetes Prow Robot
ff8834cdd7
Merge pull request #125690 from mengjiao-liu/fix-metrics-miss
...
Fixed metrics missing issue for metrics reference page
2024-07-01 20:15:47 -07:00
Ben Luddy
6c18d0ec2e
Fix fmt verbs for strings in roundtrip test errors.
...
Some of the calls to t.Errorf from apitesting/roundtrip use the %#v verb (Go-syntax representation)
for string arguments that are have already been formatted for legibility by something like like
cmp.Diff. Quoting and escaping newlines in these strings makes them harder to read, like this:
> ...
> "(*storage.CSIDriver)({\n TypeMeta: (v1.TypeMeta) {\n Kind: (string) \"\",\n APIVersion: (string)
> \"\"\n },\n ObjectMeta: (v1.ObjectMeta) {\n Name: (string) (len=15) \"犱âM邽[ǎ*ʄ\",\n
> ...
2024-07-01 23:11:53 -04:00
Kubernetes Prow Robot
7e1a5a0ea8
Merge pull request #125687 from bart0sh/PR146-DevicePluginCDIDevices-LockToDefault
...
kube_features: DevicePluginCDIDevices: LockToDefault
2024-07-01 17:07:41 -07:00
Kubernetes Prow Robot
0c8dc93049
Merge pull request #125498 from ahmetb/kubelet-predicate-description
...
kubelet: Surface description for predicate failed Events
2024-07-01 17:07:32 -07:00
Filip Křepinský
3f8d799c9f
fix readiness flake in UnhealthyPodEvictionPolicy
2024-07-02 00:15:59 +02:00
Kubernetes Prow Robot
79fee524e6
Merge pull request #125483 from wojtek-t/storage_readiness_hook
...
Implement resilient watchcache initialization post-start-hook
2024-07-01 13:48:29 -07:00
Peter Hunt
1816cc7388
KEP-4033: bump to beta
...
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2024-07-01 15:22:15 -04:00
Mangirdas Judeikis
a15b22cd98
wire in optional tokenGetter provider
2024-07-01 18:09:46 +03:00
Kubernetes Prow Robot
688c1c3b5e
Merge pull request #125823 from macsko/fix_typos_and_error_messages_in_scheduling_queue_tests
...
Fix typos and error messages in scheduling queue tests
2024-07-01 07:45:35 -07:00
Dan Winship
505f6833d9
Require kernel 5.13 for nftables kube-proxy
2024-07-01 10:07:27 -04:00
Dan Winship
912eca9e8b
Reorganize nftables proxy init
...
Move the "nftables is supported" check into a separate function, and
call it before the --init-only return.
2024-07-01 10:07:27 -04:00
Quan Tian
3bd975862a
Fix endpoints status out-of-sync when the pod state changes rapidly
...
When Pod state changes rapidly, endpoints controller may use outdated
informer cache to sync Service. If the outdated endpoints appear to be
expected by the controller, it skips updating it.
The commit fixes it by checking if endpoints informer cache is outdated
when processing a service. If the endpoints is stale, it returns an
error and retries later.
Signed-off-by: Quan Tian <quan.tian@broadcom.com>
2024-07-01 21:56:36 +08:00
Kubernetes Prow Robot
a2a5b67442
Merge pull request #125822 from kerthcet/fix/schedule_perf-failure
...
Log the error margin to avoid failures in schedule_perf
2024-07-01 05:07:27 -07:00
Maciej Skoczeń
c5d376dc20
Fix typos and error messages in scheduling queue tests
2024-07-01 11:37:53 +00:00
Wojciech Tyczyński
a5772bd425
Implement resilient watchcache initialization post-start-hook
2024-07-01 12:54:57 +02:00
kerthcet
e106b3a31f
Log the error margin to avoid failures in schedule_perf
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2024-07-01 18:22:31 +08:00
Kubernetes Prow Robot
d729af9446
Merge pull request #125591 from p0lyn0mial/upstream-promote-watch-list-to-beta
...
Promote WatchList feature to Beta
2024-07-01 02:31:14 -07:00
Kubernetes Prow Robot
2e39a55d49
Merge pull request #125794 from bzsuni/cleanup/PollImmediateWithContext
...
Use PollUntilContextTimeout to replace PollImmediateWithContext
2024-07-01 00:13:05 -07:00
Kubernetes Prow Robot
a326cfa2b5
Merge pull request #125691 from kerthcet/fix/multi-profil
...
fix flaky integration test about multi profiles
2024-06-30 23:09:06 -07:00
kerthcet
20a70e2301
Fix flaky test in maxSurge integration tests
...
Signed-off-by: kerthcet <kerthcet@gmail.com>
2024-07-01 10:45:18 +08:00
Kubernetes Prow Robot
db9419c01d
Merge pull request #125803 from mmorel-35/len+empty/test
...
fix: enable and fixes rules from testifylint on test package
2024-06-30 12:59:21 -07:00
Michael Fraenkel
cd949bafa4
use MakePodSpec consistently ( #125805 )
...
cleaning up some tests after MakePod/MakePodSpec were introduced
2024-06-30 10:28:36 -07:00
Kubernetes Prow Robot
93d56511e6
Merge pull request #125021 from aojea/servicecidrbeta
...
KEP-1880 Multiple Service CIDRs: Graduate to Beta (2/2)
2024-06-30 08:53:25 -07:00
Antonio Ojea
bc8bce2ef9
make update
2024-06-30 09:48:46 +00:00
Antonio Ojea
0e1f9dadd6
modify components to use the networking v1beta1 API
2024-06-30 09:48:46 +00:00
Antonio Ojea
ed597316d6
modify tests to use the networking v1beta1 API
2024-06-30 09:48:46 +00:00
Antonio Ojea
dbfdd074d0
update networking strategy and remove hardcode field on the test
2024-06-30 09:48:46 +00:00
Antonio Ojea
c1d06c0ae4
use networking v1beta1 for kubectl describe
2024-06-30 09:48:46 +00:00
Antonio Ojea
ca2d0857b6
promote ServiceCIDR and IPAddress to beta
2024-06-30 09:48:42 +00:00
Kubernetes Prow Robot
d902351c99
Merge pull request #125797 from SataQiu/fix-upgrade-20240629
...
kubeadm: the '--feature-gates' flag is deprecated and no-op for 'kubeadm upgrade apply/plan'
2024-06-29 23:54:29 -07:00
Matthieu MOREL
7bccbaf996
fix: enable and fixes rules from testifylint on test package
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2024-06-30 05:44:47 +00:00
SataQiu
d9001c7b00
kubeadm: the '--feature-gates' flag is deprecated and no-op for 'kubeadm upgrade apply/plan'
2024-06-30 11:22:24 +08:00
Michael Fraenkel
a7264f95ff
pod terminationGracePeriodSeconds is always valid ( #124461 )
...
* Pod terminationGracePeriodSeconds is always valid
Validation of a pod spec will always use the pod's
TerminationGracePeriodSeconds value.
A set of pod test-helpers have been created to help construct Pods.
* remove unused func
* reduction
* reduce 2
* simplify test
* report invalid grace period
* update SupplementalGroupPolicy tests
2024-06-29 18:09:29 -07:00
Kubernetes Prow Robot
a9c156baef
Merge pull request #125787 from dims/pandaamanda-remove_apiserver_logs_api
...
kube-apiserver: default --enable-logs-handler flag to false
2024-06-29 11:23:12 -07:00
Kubernetes Prow Robot
fa75b4371d
Merge pull request #125550 from sanposhiho/scheduler_perf-gated
...
add a test case with gated pod-affinity pods to scheduler_perf
2024-06-29 07:06:42 -07:00
bzsuni
1599658fc6
Use PollUntilContextTimeout to replace PollImmediateWithContext
...
Signed-off-by: bzsuni <bingzhe.sun@daocloud.io>
2024-06-29 18:50:34 +08:00
Antonio Ojea
d748fc024d
add ServiceCIDR to the exception for api rules
2024-06-29 10:01:38 +00:00
Kubernetes Prow Robot
a7832cc169
Merge pull request #123102 from astundzia/master
...
kubeadm: Validate only the first cert entry when external ca mode is used
2024-06-29 01:07:45 -07:00
Kensei Nakada
d6d55196ae
add a test case with PodAffinity gated pods to scheduler_perf
2024-06-29 03:35:10 +00:00
Kubernetes Prow Robot
34b8832edb
Merge pull request #125631 from SergeyKanzhelev/logFailedAdmission
...
improve logging of pod admission denied
2024-06-28 19:36:20 -07:00