Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Clock clock.Clock = clock.RealClock{}
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 ¶
func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
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 ¶
ClusterIssuerReconciler reconciles a ClusterIssuer object
func (*ClusterIssuerReconciler) SetupWithManager ¶
func (r *ClusterIssuerReconciler) SetupWithManager(mgr ctrl.Manager) error
type IssuerReconciler ¶
IssuerReconciler reconciles a Issuer object
func (*IssuerReconciler) SetupWithManager ¶
func (r *IssuerReconciler) SetupWithManager(mgr ctrl.Manager) error