approver

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApprovedMessage = "Certificate request has been approved by cert-manager.io"
)
View Source
const (
	ControllerName = "certificaterequests-approver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller is a CertificateRequest controller which manages the "Approved" condition. In the absence of any automated policy engine, this controller will _always_ set the "Approved" condition to True. All CertificateRequest signing controllers should wait until the "Approved" condition is set to True before processing.

func (*Controller) ProcessItem

func (c *Controller) ProcessItem(ctx context.Context, key string) error

func (*Controller) Register

Register registers and constructs the controller using the provided context. It returns the workqueue to be used to enqueue items, a list of InformerSynced functions that must be synced, or an error.

func (*Controller) Sync

func (c *Controller) Sync(ctx context.Context, cr *cmapi.CertificateRequest) (err error)

Sync will set the "Approved" condition to True on synced CertificateRequests. If the "Denied", "Approved" or "Ready" condition already exists, exit early.

Jump to

Keyboard shortcuts

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