Documentation ¶
Index ¶
- Constants
- func GetFormatedKind(str string) (kind string)
- func GetKindFromGVK(str string) (apiVersion string, kind string)
- func GetNamespaceLabels(namespaceObj *v1.Namespace, logger logr.Logger) map[string]string
- func GetNamespaceSelectorsFromGenericInformer(kind, namespaceOfResource string, nsInformer informers.GenericInformer, ...) map[string]string
- func GetNamespaceSelectorsFromNamespaceLister(kind, namespaceOfResource string, nsLister listerv1.NamespaceLister, ...) map[string]string
- func ProcessDeletePolicyForCloneGenerateRule(rules []kyverno.Rule, client *dclient.Client, pName string, logger logr.Logger) bool
- func RetryFunc(retryInterval, timeout time.Duration, run func() error, logger logr.Logger) func() error
- func VariableToJSON(key, value string) []byte
Constants ¶
View Source
const ( Enforce = "enforce" // blocks the request on failure Audit = "audit" // dont block the request on failure, but report failiures as policy violations )
Policy Reporting Modes
View Source
const ( PolicyViolation = "POLICYVIOLATION" PolicyReport = "POLICYREPORT" )
Policy Reporting Types
Variables ¶
This section is empty.
Functions ¶
func GetFormatedKind ¶ added in v1.4.3
func GetKindFromGVK ¶ added in v1.3.4
GetKindFromGVK - get kind and APIVersion from GVK
func GetNamespaceLabels ¶ added in v1.3.2
GetNamespaceLabels - from namespace obj
func GetNamespaceSelectorsFromGenericInformer ¶ added in v1.3.2
func GetNamespaceSelectorsFromGenericInformer(kind, namespaceOfResource string, nsInformer informers.GenericInformer, logger logr.Logger) map[string]string
GetNamespaceSelectorsFromGenericInformer - extracting the namespacelabels when generic informer is passed
func GetNamespaceSelectorsFromNamespaceLister ¶ added in v1.3.2
func GetNamespaceSelectorsFromNamespaceLister(kind, namespaceOfResource string, nsLister listerv1.NamespaceLister, logger logr.Logger) map[string]string
GetNamespaceSelectorsFromNamespaceLister - extract the namespacelabels when namespace lister is passed
func ProcessDeletePolicyForCloneGenerateRule ¶ added in v1.4.2
func VariableToJSON ¶ added in v1.3.6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.