Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxRetryCount int = 3 DefaultDeadline time.Duration = 60 * time.Second DefaultResync time.Duration = 60 * time.Second )
MaxRetryCount defines the max deadline count
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LastReqTime ¶
type LastReqTime struct {
// contains filtered or unexported fields
}
LastReqTime
func NewLastReqTime ¶
func NewLastReqTime() *LastReqTime
func (*LastReqTime) Run ¶
func (t *LastReqTime) Run(pLister kyvernolister.ClusterPolicyLister, eventGen event.Interface, client *dclient.Client, defaultResync time.Duration, deadline time.Duration, stopCh <-chan struct{})
Run runs the checker and verify the resource update
func (*LastReqTime) SetTime ¶
func (t *LastReqTime) SetTime(tm time.Time)
func (*LastReqTime) Time ¶
func (t *LastReqTime) Time() time.Time
type StatusControl ¶
type StatusControl struct {
// contains filtered or unexported fields
}
StatusControl controls the webhook status
func NewVerifyControl ¶
func NewVerifyControl(client *dclient.Client, eventGen event.Interface) *StatusControl
NewVerifyControl ...
func (StatusControl) IncrementAnnotation ¶
func (vc StatusControl) IncrementAnnotation() error
IncrementAnnotation ...
func (StatusControl) SuccessStatus ¶
func (vc StatusControl) SuccessStatus() error
SuccessStatus ...
type StatusInterface ¶
type StatusInterface interface { // Increments generation counter annotation IncrementAnnotation() error // update annotation to inform webhook is active SuccessStatus() error // update annotation to inform webhook is inactive FailedStatus() error }
StatusInterface provides api to update webhook active annotations on kyverno deployments
Click to show internal directories.
Click to hide internal directories.