controllers

package
v0.0.0-...-b035c16 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PuppetCAIssuerHasCondition

func PuppetCAIssuerHasCondition(iss api.PuppetCAIssuer, c api.PuppetCAIssuerCondition) bool

PuppetCAIssuerHasCondition will return true if the given PuppetCAIssuer resource has a condition matching the provided PuppetCAIssuerCondition. Only the Type and Status field will be used in the comparison, meaning that this function will return 'true' even if the Reason, Message and LastTransitionTime fields do not match.

Types

type CertificateReconciler

type CertificateReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder
}

CertificateReconciler reconciles a PuppetCAIssuer object.

func (*CertificateReconciler) Reconcile

func (r *CertificateReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

Reconcile will read and validate a Certificate resource and manage the finalizer to delete it on the Puppet CA

func (*CertificateReconciler) SetupWithManager

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

SetupWithManager initializes the Certificate controller into the controller runtime.

type CertificateRequestReconciler

type CertificateRequestReconciler struct {
	client.Client
	Log      logr.Logger
	Recorder record.EventRecorder
}

CertificateRequestReconciler reconciles a PuppetCAIssuer object.

func (*CertificateRequestReconciler) Reconcile

Reconcile will read and validate a PuppetCAIssuer resource associated to the CertificateRequest resource, and it will sign the CertificateRequest with the provisioner in the PuppetCAIssuer.

func (*CertificateRequestReconciler) SetupWithManager

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

SetupWithManager initializes the CertificateRequest controller into the controller runtime.

type PuppetCAIssuerReconciler

type PuppetCAIssuerReconciler struct {
	client.Client
	Log      logr.Logger
	Clock    clock.Clock
	Recorder record.EventRecorder
}

PuppetCAIssuerReconciler reconciles a PuppetCAIssuer object

func (*PuppetCAIssuerReconciler) Reconcile

func (r *PuppetCAIssuerReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*PuppetCAIssuerReconciler) SetupWithManager

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

type PuppetCAStatusReconciler

type PuppetCAStatusReconciler struct {
	*PuppetCAIssuerReconciler
	// contains filtered or unexported fields
}

func (*PuppetCAStatusReconciler) Update

func (r *PuppetCAStatusReconciler) Update(ctx context.Context,
	status api.ConditionStatus, reason, message string, args ...interface{}) error

func (*PuppetCAStatusReconciler) UpdateNoError

func (r *PuppetCAStatusReconciler) UpdateNoError(ctx context.Context, status api.ConditionStatus, reason, message string, args ...interface{})

Jump to

Keyboard shortcuts

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