mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
add comment
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
This commit is contained in:
parent
908950c47a
commit
f29f6b0369
1 changed files with 1 additions and 0 deletions
|
@ -51,6 +51,7 @@ func mutateResourceWithOverlay(resource unstructured.Unstructured, overlay inter
|
|||
}
|
||||
|
||||
// ForceMutate does not check any conditions, it simply mutates the given resource
|
||||
// It is used to validate mutation logic, and for tests.
|
||||
func ForceMutate(ctx context.EvalInterface, policy kyverno.ClusterPolicy, resource unstructured.Unstructured) (unstructured.Unstructured, error) {
|
||||
var err error
|
||||
logger := log.Log.WithName("EngineForceMutate").WithValues("policy", policy.Name, "kind", resource.GetKind(),
|
||||
|
|
Loading…
Add table
Reference in a new issue