Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToUnstructured ¶ added in v0.8.0
func ConvertToUnstructured(data []byte) (*unstructured.Unstructured, error)
ConvertToUnstructured converts a resource to unstructured format
Types ¶
type Expected ¶ added in v1.5.0
type Expected struct { Mutation Mutation `yaml:"mutation,omitempty"` Validation Validation `yaml:"validation,omitempty"` Generation Generation `yaml:"generation,omitempty"` }
type Generation ¶ added in v1.5.0
type Generation struct { // generated resources GeneratedResources []kyverno.ResourceSpec `yaml:"generatedResources"` // expected response from the policy engine PolicyResponse response.PolicyResponse `yaml:"policyresponse"` }
type Input ¶ added in v1.5.0
type Input struct { Policy string `yaml:"policy"` Resource string `yaml:"resource"` LoadResources []string `yaml:"loadresources,omitempty"` }
Input defines input for a test scenario
type Mutation ¶ added in v1.5.0
type Mutation struct { // path to the patched resource to be compared with PatchedResource string `yaml:"patchedresource,omitempty"` // expected response from the policy engine PolicyResponse response.PolicyResponse `yaml:"policyresponse"` }
type Validation ¶ added in v1.5.0
type Validation struct { // expected response from the policy engine PolicyResponse response.PolicyResponse `yaml:"policyresponse"` }
Click to show internal directories.
Click to hide internal directories.