Documentation
¶
Index ¶
- func ConvertPatches(in ...jsonpatch.JsonPatchOperation) [][]byte
- func NewConditionError(err error) error
- func NewGlobalConditionError(err error) error
- func PreProcessPattern(logger logr.Logger, pattern, resource *yaml.RNode) error
- func ProcessPatchJSON6902(logger logr.Logger, patchesJSON6902 []byte, resource resource) (resource, error)
- func ProcessStrategicMergePatch(logger logr.Logger, overlay interface{}, resource resource) (resource, error)
- type ConditionError
- type GlobalConditionError
- type Patcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertPatches ¶ added in v1.10.0
func ConvertPatches(in ...jsonpatch.JsonPatchOperation) [][]byte
func NewConditionError ¶
func NewGlobalConditionError ¶
func PreProcessPattern ¶ added in v1.13.0
The whole yaml is structured as a pointer tree. https://godoc.org/gopkg.in/yaml.v3#Node A single Node contains Tag to identify it as MappingNode (map[string]interface{}), Sequence ([]interface{}), ScalarNode (string, int, float bool etc.) A parent node having MappingNode keeps the data as <keyNode>, <ValueNode> inside it's Content field and Tag field as "!!map". A parent node having Sequence keeps the data as array of Node inside Content field and a Tag field as "!!seq". https://github.com/kubernetes-sigs/kustomize/blob/master/kyaml/yaml/rnode.go
func ProcessPatchJSON6902 ¶
func ProcessPatchJSON6902(logger logr.Logger, patchesJSON6902 []byte, resource resource) (resource, error)
ProcessPatchJSON6902 ...
func ProcessStrategicMergePatch ¶
func ProcessStrategicMergePatch(logger logr.Logger, overlay interface{}, resource resource) (resource, error)
ProcessStrategicMergePatch ...
Types ¶
type ConditionError ¶
type ConditionError struct {
// contains filtered or unexported fields
}
func (ConditionError) Error ¶
func (ce ConditionError) Error() string
type GlobalConditionError ¶
type GlobalConditionError struct {
// contains filtered or unexported fields
}
func (GlobalConditionError) Error ¶
func (ce GlobalConditionError) Error() string
type Patcher ¶
Patcher patches the resource
func NewPatchStrategicMerge ¶
func NewPatchStrategicMerge(patch apiextensions.JSON) Patcher
func NewPatchesJSON6902 ¶
Click to show internal directories.
Click to hide internal directories.