controllers

package
v0.0.0-...-c2ca77f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Clock is defined as a package var so it can be stubbed out during tests.

Functions

func SetIssuerCondition

func SetIssuerCondition(ctx context.Context, status *api.IssuerStatus, conditionType api.ConditionType, conditionStatus api.ConditionStatus, reason, message string)

SetIssuerCondition will set a condition on the given Issuer.

If no condition of the same type exists, the condition will be inserted with the LastTransitionTime set to the current time.

If a condition of the same type and status already exists, the condition will be updated but the LastTransitionTime will no be modified.

If a condition of the same type and different state already exists, the condition will be updated and the LastTransitionTime set to the current time.

Types

type CertificateRequestReconciler

type CertificateRequestReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Clock                  clock.Clock
	CheckApprovedCondition bool
}

CertificateRequestReconciler implements a controller that reconciles CertificateRequests that references this controller.

func (*CertificateRequestReconciler) Reconcile

Reconcile reconciles CertificateRequest by fetching a Cloudflare API provisioner from the referenced Issuer, and providing the request's CSR.

func (*CertificateRequestReconciler) SetupWithManager

func (r *CertificateRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

type ClusterIssuerReconciler

type ClusterIssuerReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

ClusterIssuerReconciler reconciles a ClusterIssuer object

func (*ClusterIssuerReconciler) Reconcile

func (*ClusterIssuerReconciler) SetupWithManager

func (r *ClusterIssuerReconciler) SetupWithManager(mgr ctrl.Manager) error

type IssuerReconciler

type IssuerReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

IssuerReconciler reconciles a Issuer object

func (*IssuerReconciler) Reconcile

func (r *IssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (reconcile.Result, error)

func (*IssuerReconciler) SetupWithManager

func (r *IssuerReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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