package codec

import "k8s.io/kubernetes/pkg/kubelet/kubeletconfig/util/codec"

Index

Functions

func DecodeKubeletConfiguration

func DecodeKubeletConfiguration(kubeletCodecs *serializer.CodecFactory, data []byte) (*kubeletconfig.KubeletConfiguration, error)

DecodeKubeletConfiguration decodes a serialized KubeletConfiguration to the internal type.

func DecodeKubeletConfigurationIntoJSON

func DecodeKubeletConfigurationIntoJSON(kubeletCodecs *serializer.CodecFactory, data []byte) ([]byte, *schema.GroupVersionKind, error)

DecodeKubeletConfigurationIntoJSON decodes a serialized KubeletConfiguration to the internal type.

func EncodeKubeletConfig

func EncodeKubeletConfig(internal *kubeletconfig.KubeletConfiguration, targetVersion schema.GroupVersion) ([]byte, error)

EncodeKubeletConfig encodes an internal KubeletConfiguration to an external YAML representation.

func NewKubeletconfigYAMLEncoder

func NewKubeletconfigYAMLEncoder(targetVersion schema.GroupVersion) (runtime.Encoder, error)

NewKubeletconfigYAMLEncoder returns an encoder that can write objects in the kubeletconfig API group to YAML.

Source Files

codec.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
12 packages
Last checked
3 hours ago

Tools for package owners.