mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-10 09:56:55 +00:00
38 lines
1 KiB
Go
38 lines
1 KiB
Go
|
package v1alpha1
|
||
|
|
||
|
import (
|
||
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||
|
)
|
||
|
|
||
|
// +genclient
|
||
|
// +kubebuilder:object:root=true
|
||
|
// +kubebuilder:resource:scope="Cluster"
|
||
|
|
||
|
// Test declares a test
|
||
|
type Test struct {
|
||
|
metav1.TypeMeta `json:",inline,omitempty"`
|
||
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||
|
|
||
|
// Name is the name of the test.
|
||
|
// This field is deprecated, use `metadata.name` instead
|
||
|
Name string `json:"name,omitempty"`
|
||
|
|
||
|
// Policies are the policies to be used in the test
|
||
|
Policies []string `json:"policies,omitempty"`
|
||
|
|
||
|
// Resources are the resource to be used in the test
|
||
|
Resources []string `json:"resources,omitempty"`
|
||
|
|
||
|
// Variables is the values to be used in the test
|
||
|
Variables string `json:"variables,omitempty"`
|
||
|
|
||
|
// UserInfo is the user info to be used in the test
|
||
|
UserInfo string `json:"userinfo,omitempty"`
|
||
|
|
||
|
// Results are the results to be checked in the test
|
||
|
Results []TestResult `json:"results,omitempty"`
|
||
|
|
||
|
// Values are the values to be used in the test
|
||
|
Values *ValuesSpec `json:"values,omitempty"`
|
||
|
}
|