Commit Graph

123284 Commits

Author SHA1 Message Date
John McBride
5aaff7d060
feat: Upgrade to cobra v1.8.1
Signed-off-by: John McBride <jpmmcbride@gmail.com>
2024-06-19 12:14:50 -06:00
Kubernetes Prow Robot
33829b68b5
Merge pull request #121439 from skitt/generic-client-go
Use generics to share code in client-go implementations
2024-06-19 11:08:42 -07:00
Kubernetes Prow Robot
1e66d66d7c
Merge pull request #125573 from dims/update-moby/term-to-a-released-tag-v0.5.0
Update moby/term to a released tag - v0.5.0
2024-06-19 10:06:47 -07:00
Kubernetes Prow Robot
4e25953c8b
Merge pull request #125485 from mimowo/refactor-job-e2e-for-conformance
Split Job e2e test to make them possible targets for conformance promotion
2024-06-19 10:06:41 -07:00
Kubernetes Prow Robot
ccbe92982d
Merge pull request #125551 from p0lyn0mial/upstream-hack-for-test-that-request-watch-progress
storage/cacher/cacher_whitebox_test.go: deflake tests that require storage.RequestWatchProgress
2024-06-19 07:38:41 -07:00
Kubernetes Prow Robot
fd74ad8e6d
Merge pull request #125584 from serathius/list-recursive-prefix
Fix TestGetListRecursivePrefix for all types of LIST
2024-06-19 05:20:41 -07:00
Marek Siarkowicz
c207f967ac Fix TestGetListRecursivePrefix for all types of LIST 2024-06-19 13:19:02 +02:00
Kubernetes Prow Robot
665070350e
Merge pull request #125586 from serathius/webhook-converter-fix
Fix TestWebhookConverterWithWatchCache when ResilientWatchCacheInitialization and ConsistentListFromCache are enabled
2024-06-19 04:06:41 -07:00
Marek Siarkowicz
3d3a73bd37 Fix TestWebhookConverterWithWatchCache when ResilientWatchCacheInitialization and ConsistentListFromCache are enabled 2024-06-19 12:06:24 +02:00
Kubernetes Prow Robot
d1c7f7a0e9
Merge pull request #125583 from macsko/dont_fail_on_churn_tests_when_context_canceled
scheduler_perf: Don't fail on churnOp delete action when context canceled
2024-06-19 02:56:41 -07:00
Maciej Skoczeń
7532e74117 Don't fail on churn delete in scheduler_perf tests when context canceled 2024-06-19 08:08:13 +00:00
Lukasz Szaszkiewicz
47a61f03d4 storage/cacher/cacher_whitebox_test.go: deflake tests that require storage.RequestWatchProgress 2024-06-19 09:34:45 +02:00
Kubernetes Prow Robot
7b359a2f9e
Merge pull request #125566 from xmudrii/kubeadm-yes
kubeadm: Add '--yes' flag to the list of allowed flags
2024-06-18 21:20:40 -07:00
Kubernetes Prow Robot
a81ea5d0af
Merge pull request #125424 from benluddy/cbor-timetag-rfc3339
KEP-4222: Decode CBOR time tags to interface{} as RFC 3339 timestamps.
2024-06-18 19:06:47 -07:00
Kubernetes Prow Robot
01c9d26a97
Merge pull request #125051 from marquiz/devel/codegen-fix-grep
kube_codegen: smarter grepping of codegen tags
2024-06-18 19:06:40 -07:00
Kubernetes Prow Robot
f70115206b
Merge pull request #125082 from alexanderConstantinescu/kep-3836-v131
KEP 3836 - v1.31 update [promote to GA]
2024-06-18 17:12:52 -07:00
Kubernetes Prow Robot
a4092e3441
Merge pull request #125017 from fatsheep9146/syncPod-trace-record-error
SyncPod record error and set error status to span when return err is non-nil
2024-06-18 17:12:41 -07:00
Davanum Srinivas
e457f5687a
Update moby/term to a released tag - v0.5.0
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2024-06-18 19:58:55 -04:00
Kubernetes Prow Robot
bd88faee8b
Merge pull request #125520 from mimowo/cleanup-success-policy-check
Remove redundant check in Job success policy code
2024-06-18 12:40:09 -07:00
Kubernetes Prow Robot
7dc30dce15
Merge pull request #125504 from macsko/scheduler_perf_gated_pods_test
scheduler_perf: Measure performance of scheduling when many gated pods
2024-06-18 12:40:02 -07:00
Kubernetes Prow Robot
3f9b79fc11
Merge pull request #125145 from xyz-li/fix_watch_namespace
apiserver: fix watch namespace
2024-06-18 10:39:44 -07:00
Kubernetes Prow Robot
b616d91675
Merge pull request #122636 from lianghao208/pod_condition
kube-scheduler: fix empty lastTransitionTime in pod condition
2024-06-18 10:39:35 -07:00
Kubernetes Release Robot
501f0693af CHANGELOG: Update directory for v1.31.0-alpha.2 release 2024-06-18 16:31:42 +00:00
Kubernetes Prow Robot
44b2c363f2
Merge pull request #125549 from liggitt/validate-controller-revision
Ensure controller revision data is valid json
2024-06-18 08:58:38 -07:00
Maciej Skoczeń
05b2c14d64 Measure performance of scheduling when many gated pods 2024-06-18 12:39:21 +00:00
Kubernetes Prow Robot
64355780d9
Merge pull request #125495 from pohly/dra-scheduler-fix-parameter-indexing
DRA: fix indexing of generated parameters
2024-06-18 04:10:38 -07:00
Marko Mudrinić
33466a6606
kubeadm: Add '--yes' flag to the list of allowed flags
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2024-06-18 13:04:17 +02:00
Maciej Skoczeń
c09440c691 Add possibility to delete pods at specified frequency in scheduler_perf tests 2024-06-18 09:40:50 +00:00
Kubernetes Prow Robot
5df8e15a84
Merge pull request #125562 from pohly/scheduler-perf-default-verbosity
scheduler_perf: fix setting default verbosity
2024-06-18 02:16:07 -07:00
Kubernetes Prow Robot
3b90ae4f58
Merge pull request #124548 from pohly/dra-scheduler-perf-structured-parameters
scheduler_perf: add DRA structured parameters test with shared claims
2024-06-18 02:15:58 -07:00
Kubernetes Prow Robot
ab8ad49b47
Merge pull request #125533 from kaisoz/sched-test-disruption-target-cond
scheduler: Test that the DisruptionTarget condition is added at preemption time
2024-06-18 01:14:28 -07:00
Kubernetes Prow Robot
0c955f7cbb
Merge pull request #124617 from bart0sh/PR144-e2e_node-DRA-test-plugin-failures
e2e_node: DRA: test plugin failures
2024-06-18 01:14:19 -07:00
Patrick Ohly
381c28407e scheduler_perf: fix setting default verbosity
It needs to be set twice, once for ktesting+klog, once for
component-base/logs. The latter was not done before and thus quite a bit of log
output was produced with verbosity 0.
2024-06-18 08:44:16 +02:00
xyz-li
818fabe37b apiserver: fix watch namespace
For request like '/api/v1/watch/namespaces/*', don't set scope.namespace.
Because the func `addWatcher` add a watcher to allWatchers with the value `scope.namespace` not empty.
But the function `dispatchEvent` dispatch event with an empty namespace.

Signed-off-by: xyz-li <hui0787411@163.com>
2024-06-18 11:53:28 +08:00
Kubernetes Prow Robot
a3a49887ee
Merge pull request #125540 from pohly/revert-binding-deprecation
api: revert deprecation annotation for v1 Binding
2024-06-17 20:21:53 -07:00
Kubernetes Prow Robot
2c1aa2bfec
Merge pull request #125459 from MinpengJin/master
Promote LogarithmicScaleDown to GA
2024-06-17 20:21:40 -07:00
Kubernetes Prow Robot
09472b673d
Merge pull request #125499 from mbobrovskyi/fix/openapi-gen-dependency
Add k8s.io/kube-openapi/cmd/openapi-gen dependency on code-generator go.mod
2024-06-17 17:56:46 -07:00
Kubernetes Prow Robot
e7d0aaa9e3
Merge pull request #125519 from mimowo/remove-unusued-param
Remove unused parameter in Job controller function
2024-06-17 14:38:32 -07:00
Jordan Liggitt
d6d78c5581
Ensure controller revision data is valid json 2024-06-17 14:32:51 -04:00
Patrick Ohly
5d0165d140 api: revert deprecation annotation for v1 Binding
https://github.com/kubernetes/kubernetes/pull/124898 added deprecation
annotations for existing types, including v1 Binding. That had the side effect
of also incorrectly marking the binding sub-resource as deprecated, which in
turn caused one warning in the kube-scheduler log output per scheduled pod.
2024-06-17 19:47:41 +02:00
Tomas Tormo
8d7c113434 Test that the DisruptionTarget condition is added at preemption 2024-06-17 16:59:52 +00:00
Lukasz Szaszkiewicz
efef32652a
apiserver/storage: factor PrepareContinueToken to a new function (#125548)
* apiserver/storage/continue: intro PrepareContinueToken

PrepareContinueToken prepares optional
parameters for retrieving additional results for a paginated request.

This function sets up parameters that a client can use to fetch the remaining results
from the server if they are available.

* apiserver/storage/etcd3: refactor to use PrepareContinueToken
2024-06-17 07:47:19 -07:00
Kubernetes Prow Robot
fb7bbd2e5d
Merge pull request #125054 from bridgetkromhout/sig-cloud-provider-update
SIG Cloud Provider update
2024-06-17 05:08:01 -07:00
Kubernetes Prow Robot
274a907351
Merge pull request #124661 from gjtempleton/SIG-Autoscaling-Leads-Update
SIG Autoscaling - Update Leads
2024-06-17 05:07:52 -07:00
Kubernetes Prow Robot
159d4b837a
Merge pull request #124444 from claudiubelu/windows/fix-container-log-rotation
windows: Fixes following container log rotation
2024-06-17 03:32:19 -07:00
Stephen Kitt
08dfd59305
Run codegen
Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-06-17 11:20:50 +02:00
Stephen Kitt
3734f5bf9b
Generify client-go
This adds a generic implementation of a clientset, and uses it to
replace the template code in generated clientsets for the default
methods. The templates are preserved as-is (or as close as they can
be) for use in extensions, whether for resources or subresources.

Clientsets with no extensions are reduced to their main getter, their
interface, their specific struct, and their constructor. All method
implementations are provided by the generic implementation. The
dedicated interface is preserved so that each clientset can have its
own set of methods, and the dedicated struct is preserved to allow
extensions and expansions to be defined where necessary.

Instead of handling the variants (with/without namespace, list, apply)
with a complex sequence of if statements, build up an index into an
array containing the various declarations.

The namespaced/non-namespaced distinction matters in the code
templates, but not in the methods themselves, so drop all the
non-namespaced variants and pass in "" explicitly.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
2024-06-17 11:20:50 +02:00
Patrick Ohly
d88a153086 scheduler_perf: add DRA structured parameters test with shared claims
Several pods sharing the same claim is not common, but can be useful and thus
should get tested.

Before, createPods and createAny operations were not able to do this because
each generated object was the same. What we need are different, predictable
names of the claims (from createAny) and different references to those in the
pods (from createPods). Now text/template processing with the index number of
the pod respectively claim as input is used to inject these varying fields. A
"div" function is needed to use the same claim in several different pods.

While at it, some existing test cases get cleaned up a bit (removal of
incorrect comments, adding comments for testing with queuing hints).
2024-06-17 10:13:22 +02:00
Kubernetes Prow Robot
c142814f6c
Merge pull request #125029 from neolit123/1.31-enable-v1beta4
kubeadm: enable the v1beta4 API
2024-06-17 01:12:22 -07:00
Lubomir I. Ivanov
09078d4810 kubeadM: allow conversion of TimeoutForControlPlane
v1beta3.ClusterConfiguration.APIServer.TimeoutForControlPlane
must be migrated to {Init|Join}Configuration.Timeouts.
.ControlPlaneComponentHealthCheck.

To achieve this sort of cross-Kind migration do the following:
- Use a temporary, thread-safe variable in timeoututils.go
- Make the order of GVKs in documentMapToInitConfiguration
deterministic.
2024-06-17 10:07:33 +03:00