reconcilers

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInitialized

IsInitialized checks whether the EnvoyConfigRevision object is initialized or not. Returns true if it has modified the EnvoyConfigRevision. Returns false if it has not.

func IsStatusReconciled

func IsStatusReconciled(dsc *operatorv1alpha1.DiscoveryServiceCertificate, certificateHash string,
	ready bool, notBefore, notAfter time.Time) bool

IsStatusReconciled calculates the status of the resource

Types

type CertificateReconciler

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

CertificateReconciler is a struct with methods to reconcile DiscoveryServiceCertificates

func NewCertificateReconciler

NewCertificateReconciler returns a new RevisionReconciler

func (*CertificateReconciler) GetCertificateHash

func (r *CertificateReconciler) GetCertificateHash() string

GetCertificateHash returns true if the hash of the certificate. Should be invoked only after running Reconcile()

func (*CertificateReconciler) GetSchedule

func (r *CertificateReconciler) GetSchedule() *time.Duration

GetSchedule returns a time.Duration value that indicates when the reconcile needs to be triggered to renew the certificate

func (*CertificateReconciler) IsReady

func (r *CertificateReconciler) IsReady() bool

IsReady returns true if the certificate is ready after the reconcile. Should be invoked only after running Reconcile()

func (*CertificateReconciler) NotAfter

func (r *CertificateReconciler) NotAfter() time.Time

NotAfter returns the NotAfter property of the reconciled certificate. Should be invoked only after running Reconcile()

func (*CertificateReconciler) NotBefore

func (r *CertificateReconciler) NotBefore() time.Time

NotBefore returns the NotBefore property of the reconciled certificate. Should be invoked only after running Reconcile()

func (*CertificateReconciler) Reconcile

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

Reconcile progresses DiscoveryServiceCertificates revisions to match the desired state. It does so by creating/updating/deleting EnvoyConfigRevision API resources.

type Clock

type Clock interface {
	Now() time.Time
}

Clock knows how to get the current time. It can be used to fake out timing for testing.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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