Documentation ¶
Index ¶
- func CreateLogger(debug bool, development bool) logr.Logger
- func MergeMeshConfigs(mergoOptions []MergoOption, meshConfigs ...*v1alpha1.MeshConfig) (*v1alpha1.MeshConfig, error)
- func MergeStringMaps(l map[string]string, l2 map[string]string) map[string]string
- func MergeYAMLs(mergoOptions []MergoOption, yamls ...string) ([]byte, error)
- func NewProtoCompatibleK8sStrategicMergePatcher(preconditionFuncs ...mergepatch.PreconditionFunc) patch.StrategicMergePatcher
- func NewProtoCompatiblePatchMaker(preconditionFuncs ...mergepatch.PreconditionFunc) patch.Maker
- type MergoOption
- type PatchMetaFromStruct
- type ProtoCompatibleK8sStrategicMergePatcher
- func (p *ProtoCompatibleK8sStrategicMergePatcher) CreateThreeWayMergePatch(original, modified, current []byte, dataStruct interface{}) ([]byte, error)
- func (p *ProtoCompatibleK8sStrategicMergePatcher) CreateTwoWayMergePatch(original, modified []byte, dataStruct interface{}) ([]byte, error)
- func (p *ProtoCompatibleK8sStrategicMergePatcher) StrategicMergePatch(original, patch []byte, dataStruct interface{}) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeMeshConfigs ¶
func MergeMeshConfigs(mergoOptions []MergoOption, meshConfigs ...*v1alpha1.MeshConfig) (*v1alpha1.MeshConfig, error)
func MergeStringMaps ¶ added in v2.11.1
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 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 (s PatchMetaFromStruct) LookupPatchMetadataForSlice(key string) (strategicpatch.LookupPatchMeta, strategicpatch.PatchMeta, error)
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)
Click to show internal directories.
Click to hide internal directories.