Documentation ¶
Index ¶
- func MutateResourceWithOverlay(resource, pattern interface{}) ([][]byte, error)
- func ProcessOverlay(log logr.Logger, ruleName string, overlay interface{}, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- func ProcessPatchJSON6902(ruleName string, mutation kyverno.Mutation, resource unstructured.Unstructured, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- func ProcessPatches(log logr.Logger, ruleName string, mutation kyverno.Mutation, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- func ProcessStrategicMergePatch(ruleName string, overlay interface{}, resource unstructured.Unstructured, ...) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
- type MutateHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateResourceWithOverlay ¶ added in v1.2.0
MutateResourceWithOverlay is a start of overlaying process
func ProcessOverlay ¶
func ProcessOverlay(log logr.Logger, ruleName string, overlay interface{}, resource unstructured.Unstructured) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
ProcessOverlay processes mutation overlay on the resource
func ProcessPatchJSON6902 ¶ added in v1.2.0
func ProcessPatchJSON6902(ruleName string, mutation kyverno.Mutation, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
func ProcessPatches ¶
func ProcessPatches(log logr.Logger, ruleName string, mutation kyverno.Mutation, resource unstructured.Unstructured) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
ProcessPatches applies the patches on the resource and returns the patched resource
func ProcessStrategicMergePatch ¶ added in v1.2.0
func ProcessStrategicMergePatch(ruleName string, overlay interface{}, resource unstructured.Unstructured, log logr.Logger) (resp response.RuleResponse, patchedResource unstructured.Unstructured)
Types ¶
type MutateHandler ¶ added in v1.2.0
type MutateHandler interface {
Handle() (resp response.RuleResponse, newPatchedResource unstructured.Unstructured)
}
func CreateMutateHandler ¶ added in v1.2.0
func CreateMutateHandler(ruleName string, mutate *kyverno.Mutation, patchedResource unstructured.Unstructured, context context.EvalInterface, logger logr.Logger) MutateHandler
Click to show internal directories.
Click to hide internal directories.