mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-26 01:24:26 +00:00
* feat: support mock in CLI for VPs Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * implement get cm mock Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> * move into cel package Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
22 lines
519 B
Go
22 lines
519 B
Go
package v1alpha1
|
|
|
|
import (
|
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
|
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
|
)
|
|
|
|
// +genclient
|
|
// +kubebuilder:object:root=true
|
|
// +kubebuilder:resource:scope="Cluster"
|
|
|
|
// Values declares values to be loaded by the Kyverno CLI
|
|
type Context struct {
|
|
metav1.TypeMeta `json:",inline,omitempty"`
|
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
|
|
|
ContextSpec `json:"spec"`
|
|
}
|
|
|
|
type ContextSpec struct {
|
|
Resources []unstructured.Unstructured `json:"resources,omitempty"`
|
|
}
|