Documentation ¶
Index ¶
Constants ¶
const (
ApprovedMessage = "Certificate request has been approved by cert-manager.io"
)
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 ¶
func (c *Controller) Register(ctx *controllerpkg.Context) (workqueue.TypedRateLimitingInterface[types.NamespacedName], []cache.InformerSynced, error)
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.