Documentation ¶
Index ¶
- func NewPatcher(name string, strategicMergePatch apiextensions.JSON, jsonPatch string, ...) patch.Patcher
- type Response
- func ForEach(name string, foreach kyvernov1.ForEachMutation, ctx context.Interface, ...) *Response
- func Mutate(rule *kyvernov1.Rule, ctx context.Interface, ...) *Response
- func NewErrorResponse(msg string, err error) *Response
- func NewResponse(status response.RuleStatus, resource unstructured.Unstructured, ...) *Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPatcher ¶ added in v1.6.0
func NewPatcher(name string, strategicMergePatch apiextensions.JSON, jsonPatch string, r unstructured.Unstructured, ctx context.Interface, logger logr.Logger) patch.Patcher
Types ¶
type Response ¶ added in v1.6.0
type Response struct { Status response.RuleStatus PatchedResource unstructured.Unstructured Patches [][]byte Message string }
func ForEach ¶ added in v1.6.0
func ForEach(name string, foreach kyvernov1.ForEachMutation, ctx context.Interface, resource unstructured.Unstructured, 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 NewResponse ¶ added in v1.9.0
func NewResponse(status response.RuleStatus, resource unstructured.Unstructured, patches [][]byte, msg string) *Response
Click to show internal directories.
Click to hide internal directories.