util

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger

func CreateLogger(debug bool, development bool) logr.Logger

func MergeMeshConfigs

func MergeMeshConfigs(mergoOptions []MergoOption, meshConfigs ...*v1alpha1.MeshConfig) (*v1alpha1.MeshConfig, error)

func MergeStringMaps added in v2.11.1

func MergeStringMaps(l map[string]string, l2 map[string]string) map[string]string

func MergeYAMLs

func MergeYAMLs(mergoOptions []MergoOption, yamls ...string) ([]byte, error)

func NewProtoCompatibleK8sStrategicMergePatcher added in v2.12.0

func NewProtoCompatibleK8sStrategicMergePatcher(preconditionFuncs ...mergepatch.PreconditionFunc) patch.StrategicMergePatcher

func NewProtoCompatiblePatchMaker added in v2.12.0

func NewProtoCompatiblePatchMaker(preconditionFuncs ...mergepatch.PreconditionFunc) patch.Maker

Types

type MergoOption

type MergoOption = func(*mergo.Config)

type PatchMetaFromStruct added in v2.12.0

type PatchMetaFromStruct struct {
	strategicpatch.PatchMetaFromStruct
}

func NewPatchMetaFromStruct added in v2.12.0

func NewPatchMetaFromStruct(dataStruct interface{}) (PatchMetaFromStruct, error)

func (PatchMetaFromStruct) LookupPatchMetadataForSlice added in v2.12.0

func (PatchMetaFromStruct) LookupPatchMetadataForStruct added in v2.12.0

func (s PatchMetaFromStruct) LookupPatchMetadataForStruct(key string) (strategicpatch.LookupPatchMeta, strategicpatch.PatchMeta, error)

type ProtoCompatibleK8sStrategicMergePatcher added in v2.12.0

type ProtoCompatibleK8sStrategicMergePatcher struct {
	patch.K8sStrategicMergePatcher
}

func (*ProtoCompatibleK8sStrategicMergePatcher) CreateThreeWayMergePatch added in v2.12.0

func (p *ProtoCompatibleK8sStrategicMergePatcher) CreateThreeWayMergePatch(original, modified, current []byte, dataStruct interface{}) ([]byte, error)

func (*ProtoCompatibleK8sStrategicMergePatcher) CreateTwoWayMergePatch added in v2.12.0

func (p *ProtoCompatibleK8sStrategicMergePatcher) CreateTwoWayMergePatch(original, modified []byte, dataStruct interface{}) ([]byte, error)

func (*ProtoCompatibleK8sStrategicMergePatcher) StrategicMergePatch added in v2.12.0

func (p *ProtoCompatibleK8sStrategicMergePatcher) StrategicMergePatch(original, patch []byte, dataStruct interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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