kyverno / kyverno-json

Kyverno for any JSON!

Home Page:https://kyverno.github.io/kyverno-json/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement] rename `$resource` to `$payload`

JimBugwadia opened this issue · comments

Problem Statement

The variable $resource does not seem appropriate as the JSON input is usually not a resource.

Solution Description

Rename $resource to $payload:

https://github.com/kyverno/kyverno-json/blob/main/pkg/json-engine/engine.go#L40

Alternatives

No response

Additional Context

No response

Slack discussion

No response

Research

  • I have searched other issues in this repository and mine is not recorded.