util

package
v1.7.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reporter

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

A Reporter updates the Status of a CertificateRequest and sends an event to the Kubernetes Events API.

func NewReporter

func NewReporter(clock clock.Clock, recorder record.EventRecorder) *Reporter

NewReporter returns a Reporter that will send events to the given EventRecorder.

func (*Reporter) Denied added in v1.3.1

func (r *Reporter) Denied(cr *cmapi.CertificateRequest)

Denied marks a CertificateRequest as terminally denied. No event is sent as it is expected to be sent by the approval controller.

func (*Reporter) Failed

func (r *Reporter) Failed(cr *cmapi.CertificateRequest, err error, reason, message string)

Failed marks a CertificateRequest as terminally failed and sends a corresponding event.

func (*Reporter) InvalidRequest added in v0.13.0

func (r *Reporter) InvalidRequest(cr *cmapi.CertificateRequest, reason, message string)

InvalidRequest marks a CertificateRequest as terminally Invalid. No event is sent as it is expected to be reported by the order controller.

func (*Reporter) Pending

func (r *Reporter) Pending(cr *cmapi.CertificateRequest, err error, reason, message string)

Pending marks a CertificateRequest as pending and sends a corresponding event.

The event is only sent if the CertificateRequest is not already pending.

func (*Reporter) Ready

func (r *Reporter) Ready(cr *cmapi.CertificateRequest)

Ready marks a CertificateRequest as Ready and sends a corresponding event.

Jump to

Keyboard shortcuts

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