patch

package
v1.8.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertPatchesToJSON

func ConvertPatchesToJSON(patchesJSON6902 string) ([]byte, error)

func NewConditionError

func NewConditionError(err error) error

func NewGlobalConditionError

func NewGlobalConditionError(err error) error

func ProcessPatchJSON6902

func ProcessPatchJSON6902(ruleName string, patchesJSON6902 []byte, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)

ProcessPatchJSON6902 ...

func ProcessStrategicMergePatch

func ProcessStrategicMergePatch(ruleName string, overlay interface{}, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)

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

type Patcher interface {
	Patch() (resp response.RuleResponse, newPatchedResource unstructured.Unstructured)
}

Patcher patches the resource

func NewPatchStrategicMerge

func NewPatchStrategicMerge(ruleName string, patch apiextensions.JSON, patchedResource unstructured.Unstructured, context context.EvalInterface, logger logr.Logger) Patcher

func NewPatchesJSON6902

func NewPatchesJSON6902(ruleName string, patches string, patchedResource unstructured.Unstructured, logger logr.Logger) Patcher

Jump to

Keyboard shortcuts

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