Affected by GO-2023-1804
and 3 other vulnerabilities
GO-2023-1804 : Kyverno vulnerable due to usage of insecure cipher in github.com/kyverno/kyverno
GO-2023-1819 : Kyverno resource with a deletionTimestamp may allow policy circumvention in github.com/kyverno/kyverno
GO-2023-2340 : Attacker can cause Kyverno user to unintentionally consume insecure image in github.com/kyverno/kyverno
GO-2024-3230 : Kyverno's PolicyException objects can be created in any namespace by default in github.com/kyverno/kyverno
Discover Packages
github.com/kyverno/kyverno
pkg
event
package
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Jan 15, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Generator struct {
}
Generator generate events
NewEventGenerator to generate a new event controller
Add queues an event for generation
func (gen *Generator ) Run(workers int , stopCh <-chan struct{})
Run begins generator
Info defines the event details
func NewEvent(
rkind,
rapiVersion,
rnamespace,
rname,
reason string ,
source Source ,
message MsgKey ,
args ...interface{}) Info
NewEvent builds a event creation request
type Interface interface {
Add(infoList ...Info )
}
Interface to generate event
MsgKey is an identified to determine the preset message formats
const (
FResourcePolcy MsgKey = iota
FProcessRule
SPolicyApply
SRulesApply
FPolicyApplyBlockCreate
FPolicyApplyBlockUpdate
FPolicyBlockResourceUpdate
)
Message id for pre-defined messages
Reason types of Event Reasons
const (
PolicyViolation Reason = iota
PolicyApplied
RequestBlocked
PolicyFailed
)
Source of event generation
const (
AdmissionController Source = iota
PolicyController
GeneratePolicyController
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.