kubernetes/pkg/api
Ben Luddy 38f87df0e3
Enable JSON-compatible base64 encoding of []byte for CBOR.
The encoding/json package marshals []byte to a JSON string containing the base64 encoding of the
input slice's bytes, and unmarshals JSON strings to []byte by assuming the JSON string contains a
valid base64 text.

As a binary format, CBOR is capable of representing arbitrary byte sequences without converting them
to a text encoding, but it also needs to interoperate with the existing JSON serializer. It does
this using the "expected later encoding" tags defined in RFC 8949, which indicate a specific text
encoding to be used when interoperating with text-based protocols. The actual conversion to or from
a text encoding is deferred until necessary, so no conversion is performed during roundtrips of
[]byte to CBOR.
2024-06-25 21:05:26 -04:00
..
endpoints/testing Move endpoints test-helper funcs to a package 2021-07-01 18:26:45 -07:00
job drop deprecated pointer package 2024-01-24 19:44:07 +08:00
legacyscheme hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
node use generic Set in api 2023-09-25 19:04:08 +08:00
persistentvolume Cleanup defer from SetFeatureGateDuringTest function call 2024-04-24 20:25:29 +02:00
persistentvolumeclaim Cleanup defer from SetFeatureGateDuringTest function call 2024-04-24 20:25:29 +02:00
pod KEP-3619: Fine-grained SupplementalGroups control (#117842) 2024-05-29 15:40:29 -07:00
service Improve service unit test failure report 2023-09-01 23:18:45 +08:00
storage use generic Set in api 2023-09-25 19:04:08 +08:00
testing Enable JSON-compatible base64 encoding of []byte for CBOR. 2024-06-25 21:05:26 -04:00
v1 Merge pull request #120866 from bzsuni/cleanup/sets/api 2024-01-22 18:20:48 +01:00
OWNERS Check in OWNERS modified by update-yamlfmt.sh 2021-12-09 21:31:26 -05:00