mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 07:57:07 +00:00
* feat: add cli values schema Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * docs Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * makefile Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * v1alpha1 Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * nits Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
13 lines
328 B
Go
13 lines
328 B
Go
package v1alpha1
|
|
|
|
// Policy declares values for a given policy
|
|
type Policy struct {
|
|
// Name is the policy name
|
|
Name string `json:"name"`
|
|
|
|
// Resources are values for specific resources
|
|
Resources []Resource `json:"resources,omitempty"`
|
|
|
|
// Rules are values for specific policy rules
|
|
Rules []Rule `json:"rules,omitempty"`
|
|
}
|