mutate

package
v1.11.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPatcher added in v1.6.0

func NewPatcher(strategicMergePatch apiextensions.JSON, jsonPatch string) patch.Patcher

Types

type Response added in v1.6.0

type Response struct {
	Status          engineapi.RuleStatus
	PatchedResource unstructured.Unstructured
	Message         string
}

func ForEach added in v1.6.0

func ForEach(name string, foreach kyvernov1.ForEachMutation, policyContext engineapi.PolicyContext, resource unstructured.Unstructured, element interface{}, logger logr.Logger) *Response

func Mutate added in v1.6.0

func Mutate(rule *kyvernov1.Rule, ctx context.Interface, resource unstructured.Unstructured, logger logr.Logger) *Response

func NewErrorResponse added in v1.9.0

func NewErrorResponse(msg string, err error) *Response

func NewResponse added in v1.9.0

func NewResponse(status engineapi.RuleStatus, resource unstructured.Unstructured, msg string) *Response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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