mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +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>
19 lines
673 B
Go
19 lines
673 B
Go
package v1alpha1
|
|
|
|
// ValuesSpec declares values to be loaded by the Kyverno CLI
|
|
type ValuesSpec struct {
|
|
// GlobalValues are the global values
|
|
// +kubebuilder:validation:Type=object
|
|
// +kubebuilder:pruning:PreserveUnknownFields
|
|
// +kubebuilder:validation:Schemaless
|
|
GlobalValues map[string]interface{} `json:"globalValues,omitempty"`
|
|
|
|
// Policies are the policy values
|
|
Policies []Policy `json:"policies,omitempty"`
|
|
|
|
// NamespaceSelectors are the namespace labels
|
|
NamespaceSelectors []NamespaceSelector `json:"namespaceSelector,omitempty"`
|
|
|
|
// Subresources are the subresource/parent resource mappings
|
|
Subresources []Subresource `json:"subresources,omitempty"`
|
|
}
|