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:
v0.9.0
Opens a new window with list of versions in this module.
Published: Aug 30, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Generator
type Info
NewEvent(rkind, rnamespace, rname, reason, message, args)
NewEventNew(rkind, rapiVersion, rnamespace, rname, reason, message, args)
type Interface
type MsgKey
type Reason
Source Files
Documentation
Documentation
¶
type Generator
type Info
func NewEvent(rkind string, rnamespace string, rname string, reason Reason, message MsgKey, ...) *Info
func NewEventNew(rkind, rapiVersion, rnamespace, rname, reason string, message MsgKey, ...) Info
type Interface
type MsgKey
type Reason
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
TODO: check if we need this ?
NewEvent returns a new event
func NewEventNew(
rkind,
rapiVersion,
rnamespace,
rname,
reason string ,
message MsgKey ,
args ...interface{}) Info
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
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.