Documentation ¶
Index ¶
- func BuildKindSet(logger logr.Logger, policies ...kyvernov1.PolicyInterface) sets.Set[string]
- func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool
- func FetchClusterPolicies(cpolLister kyvernov1listers.ClusterPolicyLister) ([]kyvernov1.PolicyInterface, error)
- func FetchPolicies(polLister kyvernov1listers.PolicyLister, namespace string) ([]kyvernov1.PolicyInterface, error)
- func FetchPolicyExceptions(polexLister kyvernov2listers.PolicyExceptionLister, namespace string) ([]kyvernov2.PolicyException, error)
- func FetchValidatingAdmissionPolicies(vapLister admissionregistrationv1beta1listers.ValidatingAdmissionPolicyLister) ([]admissionregistrationv1beta1.ValidatingAdmissionPolicy, error)
- func FetchValidatingAdmissionPolicyBindings(...) ([]admissionregistrationv1beta1.ValidatingAdmissionPolicyBinding, error)
- func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, ...)
- func RemoveNonBackgroundPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
- func RemoveNonValidationPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
- func ReportsAreIdentical(before, after reportsv1.ReportInterface) bool
- type ScanResult
- type Scanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildKindSet ¶
func CanBackgroundProcess ¶
func CanBackgroundProcess(p kyvernov1.PolicyInterface) bool
func FetchClusterPolicies ¶ added in v1.10.5
func FetchClusterPolicies(cpolLister kyvernov1listers.ClusterPolicyLister) ([]kyvernov1.PolicyInterface, error)
func FetchPolicies ¶ added in v1.10.5
func FetchPolicies(polLister kyvernov1listers.PolicyLister, namespace string) ([]kyvernov1.PolicyInterface, error)
func FetchPolicyExceptions ¶ added in v1.12.0
func FetchPolicyExceptions(polexLister kyvernov2listers.PolicyExceptionLister, namespace string) ([]kyvernov2.PolicyException, error)
func FetchValidatingAdmissionPolicies ¶ added in v1.10.5
func FetchValidatingAdmissionPolicies(vapLister admissionregistrationv1beta1listers.ValidatingAdmissionPolicyLister) ([]admissionregistrationv1beta1.ValidatingAdmissionPolicy, error)
func FetchValidatingAdmissionPolicyBindings ¶ added in v1.12.0
func FetchValidatingAdmissionPolicyBindings(vapBindingLister admissionregistrationv1beta1listers.ValidatingAdmissionPolicyBindingLister) ([]admissionregistrationv1beta1.ValidatingAdmissionPolicyBinding, error)
func GenerateEvents ¶ added in v1.9.0
func GenerateEvents(logger logr.Logger, eventGen event.Interface, config config.Configuration, results ...engineapi.EngineResponse)
func RemoveNonBackgroundPolicies ¶
func RemoveNonBackgroundPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
func RemoveNonValidationPolicies ¶ added in v1.8.1
func RemoveNonValidationPolicies(policies ...kyvernov1.PolicyInterface) []kyvernov1.PolicyInterface
func ReportsAreIdentical ¶ added in v1.8.3
func ReportsAreIdentical(before, after reportsv1.ReportInterface) bool
Types ¶
type ScanResult ¶
type ScanResult struct { EngineResponse *engineapi.EngineResponse Error error }
type Scanner ¶
type Scanner interface {
ScanResource(context.Context, unstructured.Unstructured, map[string]string, []admissionregistrationv1beta1.ValidatingAdmissionPolicyBinding, ...engineapi.GenericPolicy) map[*engineapi.GenericPolicy]ScanResult
}
func NewScanner ¶
func NewScanner( logger logr.Logger, engine engineapi.Engine, config config.Configuration, jp jmespath.Interface, client dclient.Interface, reportingConfig reportutils.ReportingConfiguration, ) Scanner
Click to show internal directories.
Click to hide internal directories.