Documentation ¶
Index ¶
- func BlockRequest(er engineapi.EngineResponse, failurePolicy kyvernov1.FailurePolicyType) bool
- func GetNamespaceSelectorsFromNamespaceLister(kind, namespaceOfResource string, nsLister corev1listers.NamespaceLister, ...) map[string]string
- func IsResponseSuccessful(engineReponses []engineapi.EngineResponse) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockRequest ¶ added in v1.8.0
func BlockRequest(er engineapi.EngineResponse, failurePolicy kyvernov1.FailurePolicyType) bool
BlockRequest returns true when: 1. a policy fails (i.e. creates a violation) and validationFailureAction is set to 'enforce' 2. a policy has a processing error and failurePolicy is set to 'Fail`
func GetNamespaceSelectorsFromNamespaceLister ¶ added in v1.9.0
func GetNamespaceSelectorsFromNamespaceLister(kind, namespaceOfResource string, nsLister corev1listers.NamespaceLister, logger logr.Logger) map[string]string
GetNamespaceSelectorsFromNamespaceLister - extract the namespacelabels when namespace lister is passed
func IsResponseSuccessful ¶
func IsResponseSuccessful(engineReponses []engineapi.EngineResponse) bool
IsResponseSuccessful return true if all responses are successful
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.