Documentation ¶
Index ¶
- func GetPolicyInfos(policy kyverno.PolicyInterface) (string, string, PolicyType, PolicyBackgroundMode, PolicyValidationMode, error)
- func Logger() logr.Logger
- type PolicyBackgroundMode
- type PolicyType
- type PolicyValidationMode
- type PromConfig
- type PromMetrics
- type ResourceRequestOperation
- type RuleExecutionCause
- type RuleResult
- type RuleType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPolicyInfos ¶ added in v1.7.0
func GetPolicyInfos(policy kyverno.PolicyInterface) (string, string, PolicyType, PolicyBackgroundMode, PolicyValidationMode, error)
Types ¶
type PolicyBackgroundMode ¶
type PolicyBackgroundMode string
const ( BackgroundTrue PolicyBackgroundMode = "true" BackgroundFalse PolicyBackgroundMode = "false" )
func ParsePolicyBackgroundMode ¶
func ParsePolicyBackgroundMode(policy kyverno.PolicyInterface) PolicyBackgroundMode
type PolicyType ¶
type PolicyType string
const ( Cluster PolicyType = "cluster" Namespaced PolicyType = "namespaced" )
type PolicyValidationMode ¶
type PolicyValidationMode string
const ( Enforce PolicyValidationMode = "enforce" Audit PolicyValidationMode = "audit" )
func ParsePolicyValidationMode ¶
func ParsePolicyValidationMode(validationFailureAction kyverno.ValidationFailureAction) (PolicyValidationMode, error)
type PromConfig ¶
type PromConfig struct { MetricsRegistry *prom.Registry Metrics *PromMetrics Config *config.MetricsConfigData // contains filtered or unexported fields }
func NewPromConfig ¶
func NewPromConfig(metricsConfigData *config.MetricsConfigData) (*PromConfig, error)
type PromMetrics ¶
type PromMetrics struct { PolicyResults *prom.CounterVec PolicyRuleInfo *prom.GaugeVec PolicyChanges *prom.CounterVec PolicyExecutionDuration *prom.HistogramVec AdmissionReviewDuration *prom.HistogramVec AdmissionRequests *prom.CounterVec }
type ResourceRequestOperation ¶
type ResourceRequestOperation string
const ( ResourceCreated ResourceRequestOperation = "create" ResourceUpdated ResourceRequestOperation = "update" ResourceDeleted ResourceRequestOperation = "delete" ResourceConnected ResourceRequestOperation = "connect" )
func ParseResourceRequestOperation ¶ added in v1.7.0
func ParseResourceRequestOperation(requestOperationStr string) (ResourceRequestOperation, error)
type RuleExecutionCause ¶
type RuleExecutionCause string
const ( AdmissionRequest RuleExecutionCause = "admission_request" BackgroundScan RuleExecutionCause = "background_scan" )
type RuleResult ¶
type RuleResult string
const ( Pass RuleResult = "pass" Fail RuleResult = "fail" Warn RuleResult = "warn" Error RuleResult = "error" Skip RuleResult = "skip" )
type RuleType ¶
type RuleType string
func ParseRuleType ¶
func ParseRuleTypeFromEngineRuleResponse ¶ added in v1.7.0
func ParseRuleTypeFromEngineRuleResponse(rule response.RuleResponse) RuleType
Click to show internal directories.
Click to hide internal directories.