Commit Graph

21205 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
46aa8959a0 Merge pull request #126018 from aroradaman/bump-k8s-utils
bump k8s.io/utils
2024-07-13 10:47:08 -07:00
Daman Arora
c6a129b715 bump k8s.io/utils
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-13 19:25:20 +05:30
Daman Arora
37eb06efb0 component-base/tracing: initialize tests with klog verbosity level 2
Signed-off-by: Daman Arora <aroradaman@gmail.com>
2024-07-13 19:25:20 +05:30
Kubernetes Prow Robot
a87612b667 Merge pull request #126057 from thockin/make-pod-ip-host-ip-required
make PodIP.IP and HostIP.IP required.
2024-07-12 17:17:01 -07:00
Kubernetes Prow Robot
1a19d5102c Merge pull request #125748 from benluddy/cbor-custom-marshalers
KEP-4222: Check for and reject unsupported custom marshalers and unmarshalers.
2024-07-12 17:16:54 -07:00
Ben Luddy
40c2839083 Error on custom (un)marshalers without a CBOR implementation.
When CBOR marshaling or unmarshaling a type that implements any of TextMarshaler, TextUnmarshaler,
json.Marshaler, or json.Unmarshaler, without also implementing the corresponding CBOR interface, the
proposed behavior is to automatically use the available interface method by transcoding between CBOR
and JSON or text. As a safety measure, values of these types will be rejected by the CBOR serializer
until that is implemented.
2024-07-12 15:05:11 -04:00
Lan Liang
73613b48c6 make PodIP.IP and HostIP.IP required.
Fields used as map keys must be required or defaulted when used in a CRD schema.

see https://github.com/kubernetes/kubernetes/issues/124540

Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-07-12 09:27:27 -07:00
Michal Wozniak
f1233ac5e0 JobPodFailurePolicy to GA
# Conflicts:
#	pkg/controller/job/job_controller_test.go
2024-07-12 17:21:32 +02:00
Kubernetes Prow Robot
d11e86027d Merge pull request #126046 from mimowo/fix-job-pod-failure-api
Use omitempty for optional fields in Job Pod Failure Policy
2024-07-12 08:13:04 -07:00
Michal Wozniak
f523be6f70 Use omitempty for optional fields in Job Pod Failure Policy 2024-07-12 10:45:32 +02:00
Kubernetes Prow Robot
2d4514e169 Merge pull request #125802 from mmorel-35/testifylint/len+empty
fix: enable empty and len rules from testifylint on pkg and staging package
2024-07-11 23:12:06 -07:00
Kubernetes Prow Robot
1080554307 Merge pull request #124969 from RomanBednar/pv-phase-transition-time-ga
graduate PersistentVolumeLastPhaseTransitionTime to GA in 1.31
2024-07-11 15:29:19 -07:00
Kubernetes Prow Robot
ccbbbc0f1f Merge pull request #125790 from benluddy/cbor-fieldsv1
KEP-4222: Support either JSON or CBOR in FieldsV1.
2024-07-11 12:16:07 -07:00
Ben Luddy
37071989a0 Support either JSON or CBOR in FieldsV1.
The value of FieldsV1 is dependent upon its serialization. All existent FieldsV1 usage can safely
assume either JSON null or a JSON object. This is notably different from RawExtension, which might
hold arbitrary bytes.

To retain backwards compatibility for existing programs, FieldsV1 values decoded from CBOR will be
automatically transcoded to JSON. This will follow the same opt-out and migration plan as
RawExtension.
2024-07-11 11:13:15 -04:00
Kubernetes Prow Robot
37f733a657 Merge pull request #125868 from soltysh/wait_for
Add --for=create option to kubectl wait
2024-07-11 05:03:17 -07:00
Kubernetes Prow Robot
c20aa764d7 Merge pull request #125333 from ardaguclu/kep-4292-beta
KEP-4292: Preparations to promote custom profiling in kubectl debug
2024-07-11 05:03:03 -07:00
Kubernetes Prow Robot
c3c8a9cfd4 Merge pull request #125676 from benluddy/cbor-bufferpool
KEP-4222: Don't pool large CBOR encode buffers
2024-07-10 17:08:41 -07:00
Kubernetes Prow Robot
2d877b5259 Merge pull request #125629 from benluddy/cbor-rawextension
KEP-4222: Automatically transcode RawExtension between unstructured protocols.
2024-07-10 14:54:35 -07:00
Ben Luddy
a19d142f0d Don't pool large CBOR encode buffers.
Objects in a sync.Pool are assumed to be fungible. This is not a good assumption for pools
of *bytes.Buffer because a *bytes.Buffer's underlying array grows as needed to accomodate writes. In
Kubernetes, apiservers tend to encode "small" objects very frequently and much larger
objects (especially large lists) only occasionally. Under steady load, pooled buffers tend to be
borrowed frequently enough to prevent them from being released. Over time, each buffer is used to
encode a large object and its capacity increases accordingly. The result is that practically all
buffers in the pool retain much more capacity than needed to encode most objects.

As a basic mitigation for the worst case, buffers with more capacity than the default max request
body size are never returned to the pool.
2024-07-10 17:27:49 -04:00
Kubernetes Prow Robot
6a45c8b7d1 Merge pull request #125944 from timofurrer/fix/error-msg-type
Fix typo in type name of watch decode error
2024-07-10 09:02:50 -07:00
Kubernetes Prow Robot
0c8b3e5f30 Merge pull request #125986 from vinayakankugoyal/typo
Fix typo in error message for anonymous field in AuthenticationConfig…
2024-07-09 20:45:05 -07:00
Vinayak Goyal
27e8923c70 Fix typo in error message for anonymous field in AuthenticationConfiguration. 2024-07-09 21:04:28 +00:00
Ben Luddy
4755e1f859 Automatically transcode RawExtension between unstructured protocols. 2024-07-09 17:02:34 -04:00
Kubernetes Prow Robot
7127246344 Merge pull request #125945 from fxierh/sample-apiserver-rbac-fix
Add missing RBAC permissions to the sample-apiserver
2024-07-09 00:30:41 -07:00
Kubernetes Prow Robot
8c7ee69212 Merge pull request #124730 from tkashem/read-write-deadline-test
Add test to document request timeout behavior
2024-07-08 16:21:25 -07:00
Kubernetes Prow Robot
b106c291c3 Merge pull request #125841 from saschagrunert/get-container-events-ctx
cri: allow `GetContainerEvents` to pass a context
2024-07-08 14:13:41 -07:00
Kubernetes Prow Robot
53c8efbe71 Merge pull request #125743 from benluddy/extract-roundtrip-to-unstructured
Extract RoundtripToUnstructured to apimachinery apitesting library.
2024-07-08 08:22:49 -07:00
Kubernetes Prow Robot
d2d55831e5 Merge pull request #125615 from benluddy/apiextensions-json-unmarshal-copy
Copy input to UnmarshalJSON on the apiextensions JSON types.
2024-07-08 08:22:42 -07:00
Maciej Szulik
aaf1fb50f3 Add --for=create option to kubectl wait 2024-07-08 14:07:26 +02:00
Maciej Szulik
6eec9d6b21 kubectl wait: split condition functions into separate files 2024-07-08 14:07:24 +02:00
Maciej Szulik
f35d8a4595 Expose WithError in FakeResourceFinder for tests 2024-07-08 13:33:06 +02:00
Timo Furrer
fed49d06aa Fix typo in type name of watch decode error 2024-07-08 07:52:38 +02:00
Feilian Xie
a25008dd7a Add missing RBAC permissions to the sample-apiserver.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-08 13:52:03 +08:00
Kubernetes Prow Robot
7ec344dcef Merge pull request #124994 from TessaIO/fix-autocompletion-for-set-context-namespace
fix: add namespace autocompletion for kubectl config set-context command
2024-07-07 21:39:43 -07:00
TessaIO
62be85249e fix: add namespace autocompletion for kubectl config set-context command
Signed-off-by: TessaIO <ahmedgrati1999@gmail.com>
2024-07-07 21:10:36 +02:00
Kubernetes Prow Robot
07cc20a750 Merge pull request #125922 from dims/update_otel_27
Update opentelemetry dependencies to the latest release (Take 2)
2024-07-06 17:31:14 -07:00
Matthieu MOREL
f014b754fb fix: enable empty and len rules from testifylint on pkg package
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

Co-authored-by: Patrick Ohly <patrick.ohly@intel.com>
2024-07-06 23:15:43 +00:00
Kubernetes Prow Robot
40225a788c Merge pull request #125887 from fxierh/fakediscovery-fix
[client-go] Enable FakeDiscovery client to simulate errors by fixing error handling
2024-07-06 15:31:50 -07:00
Kubernetes Prow Robot
08e1ceaa0d Merge pull request #123099 from MikeSpreitzer/update-sample-controller
Update the sample controller
2024-07-06 14:12:53 -07:00
Mike Spreitzer
fdbf0bbb2d Finish switching to utilruntime.HandleErrorWithContext
Signed-off-by: Mike Spreitzer <mspreitz@us.ibm.com>
2024-07-06 16:11:23 -04:00
Feilian Xie
33557a2f6c Return the error returned by Invokes so the FakeDiscovery client is able to simulate any error with reactors.
Signed-off-by: Feilian Xie <fxie@redhat.com>
2024-07-07 03:23:08 +08:00
Kubernetes Prow Robot
8d0ee91fc7 Merge pull request #125835 from benluddy/roundtrip-error-fmt-strings
Fix fmt verbs for strings in roundtrip test errors
2024-07-06 05:02:53 -07:00
Davanum Srinivas
ff7942be83 update OpenTelemetry dependencies and grpc
This update dropped the otelgrpc → cloud.google.com/go/compute dependency,
among others. This dropped out because genproto cleaned up it's dependencies
on google cloud libraries, and otel updated - details in #113366.

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: David Ashpole <dashpole@google.com>
2024-07-05 21:21:30 -04:00
Siyuan Zhang
d31aebe572 fix lock bug for componentGlobalsRegistry
Signed-off-by: Siyuan Zhang <sizhang@google.com>
2024-07-05 15:50:10 +00:00
cpanato
8693df66d5 Update publishing-bot rules to Go 1.22.5
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-05 09:18:52 +02:00
Kubernetes Prow Robot
c87c06d7ff Merge pull request #125850 from dims/fix-for-typecheck-does-not-notice-compile-errors-in-test-files
Fix for typecheck doesn't notice compile errors in test files
2024-07-04 13:21:42 -07:00
Davanum Srinivas
c230a45383 Fix for typecheck doesn't notice compile errors in test files
- ensure we add all the staging modules so the _test files in there are "loaded"
- use build tags to skip tests that fail to build in specific os/arch pairs

Signed-off-by: Davanum Srinivas <davanum@gmail.com>
Co-Authored-By: Tim Hockin <thockin@google.com>
2024-07-04 15:01:41 -04:00
cpanato
0e9308f3bc Bump images, dependencies and versions to go 1.22.5 and distroless iptables
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-04 16:34:18 +02:00
Kubernetes Prow Robot
8ebfb8c2c2 Merge pull request #125842 from soltysh/remove_deprecated_flags
Remove deprecated kubectl run and drain flags
2024-07-04 06:46:32 -07:00
Kubernetes Prow Robot
9ec91e6551 Merge pull request #125848 from jpbetz/fix-auth-selectors
Drop removed APIs from etcd data tests, remove special case logic for binaryVersion=0.0 and all usages
2024-07-03 17:40:32 -07:00