reportchangerequestcleaner

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ReportChangeRequestPrefix = "kyverno.io/reportchangerequests/"

Full path looks like /giantswarm.io/kyverno.io/reportchangerequests/.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logger           micrologger.Logger
	EtcdClientConfig *clientv3.Config
	EtcdPrefix       string

	RCRLimit int
}

type RCRCleaner

type RCRCleaner struct {
	// contains filtered or unexported fields
}

func NewRCRCleaner

func NewRCRCleaner(config Config) (*RCRCleaner, error)

func (*RCRCleaner) CheckAndDelete

func (r *RCRCleaner) CheckAndDelete(ctx context.Context) error

Retrieves the list of ReportChangeRequests in the cluster and deletes them if the list exceeds the configured threshold.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL