approver

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 20 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 types.NamespacedName) 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