serializer

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultSubsetNegotiatedSerializer

func DefaultSubsetNegotiatedSerializer(codecs serializer.CodecFactory) runtime.NegotiatedSerializer

DefaultSubsetNegotiatedSerializer is the default ironcore serializer that does not use protobuf. Since our types *don't* implement protobuf encoding, and without removing the protobuf support, namespace deletion would fail (see issue https://github.com/kubernetes/kubernetes/issues/86666). As such, until we either enhance content type negotiation or implement protobuf for our types, we have to make use of this for our api group negotiated serializers.

func NoProtobuf

func NoProtobuf(info runtime.SerializerInfo) bool

NoProtobuf is a function that disallows the use of protobuf.

func SubsetNegotiatedSerializer

func SubsetNegotiatedSerializer(codecs serializer.CodecFactory, accepts ...func(info runtime.SerializerInfo) bool) runtime.NegotiatedSerializer

SubsetNegotiatedSerializer is a runtime.NegotiatedSerializer that provides a safelisted subset of the media types the provided serializer.CodecFactory provides.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL