certificate

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName is used to identify this controller.
	ControllerName = "certificate-controller"
	// LabelCertificate for creating and querying certificates.
	LabelCertificate = "certificate"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, params Params) error

Add creates a new Certificate Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type Params

type Params struct {
	Retention int
}

Params for this controller.

type ReconcileCertificate

type ReconcileCertificate struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileCertificate reconciles a Certificate object

func (*ReconcileCertificate) Cleanup added in v0.3.2

func (r *ReconcileCertificate) Cleanup(certificate *awsv1beta1.Certificate, retention int) error

Cleanup old Requests which are not issued.

func (*ReconcileCertificate) Reconcile

func (r *ReconcileCertificate) Reconcile(request reconcile.Request) (reconcile.Result, error)

Reconcile reads that state of the cluster for a Certificate object and makes changes based on the state read and what is in the Certificate.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=aws.skpr.io,resources=certificate,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=aws.skpr.io,resources=certificaterequests,verbs=get;list;watch;create;update;patch;delete

func (*ReconcileCertificate) Sync added in v0.3.2

Sync will create and/or return an existing CertificateRequest.

func (*ReconcileCertificate) SyncStatus added in v0.3.2

func (r *ReconcileCertificate) SyncStatus(certificate *awsv1beta1.Certificate, status awsv1beta1.CertificateStatus) error

SyncStatus back to Certificate.

Jump to

Keyboard shortcuts

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