Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReportResult ¶
type ReportResult struct { TestResults Resources []*corev1.ObjectReference `json:"resources"` }
type TestResults ¶
type TestResults struct { // Policy mentions the name of the policy. Policy string `json:"policy"` // Rule mentions the name of the rule in the policy. Rule string `json:"rule"` // Result mentions the result that the user is expecting. // Possible values are pass, fail and skip. Result policyreportv1alpha2.PolicyResult `json:"result"` // Status mentions the status that the user is expecting. // Possible values are pass, fail and skip. Status policyreportv1alpha2.PolicyResult `json:"status"` // Resource mentions the name of the resource on which the policy is to be applied. Resource string `json:"resource"` // Resources gives us the list of resources on which the policy is going to be applied. Resources []string `json:"resources"` // Kind mentions the kind of the resource on which the policy is to be applied. Kind string `json:"kind"` // Namespace mentions the namespace of the policy which has namespace scope. Namespace string `json:"namespace"` // PatchedResource takes a resource configuration file in yaml format from // the user to compare it against the Kyverno mutated resource configuration. PatchedResource string `json:"patchedResource"` // AutoGeneratedRule is internally set by the CLI command. It takes values either // autogen or autogen-cronjob. AutoGeneratedRule string `json:"auto_generated_rule"` // GeneratedResource takes a resource configuration file in yaml format from // the user to compare it against the Kyverno generated resource configuration. GeneratedResource string `json:"generatedResource"` // CloneSourceResource takes the resource configuration file in yaml format // from the user which is meant to be cloned by the generate rule. CloneSourceResource string `json:"cloneSourceResource"` }
Click to show internal directories.
Click to hide internal directories.