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

func IsInitialized(ec *marin3rv1alpha1.EnvoyConfig) bool

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(ec *marin3rv1alpha1.EnvoyConfig, cacheState, publishedVersion string, list *marin3rv1alpha1.EnvoyConfigRevisionList) bool

IsStatusReconciled calculates the status of the resource

Types

type RevisionReconciler

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

RevisionReconciler is a struct with methods to reconcile EnvoyConfig revisions

func NewRevisionReconciler

func NewRevisionReconciler(ctx context.Context, logger logr.Logger, client client.Client,
	s *runtime.Scheme, ec *marin3rv1alpha1.EnvoyConfig) RevisionReconciler

NewRevisionReconciler returns a new RevisionReconciler

func (*RevisionReconciler) DesiredVersion

func (r *RevisionReconciler) DesiredVersion() string

DesiredVersion returns the version of the EnvoyConfig the reconciler has been instantiated with

func (*RevisionReconciler) EnvoyAPI

func (r *RevisionReconciler) EnvoyAPI() envoy.APIVersion

EnvoyAPI returns the envoy API version of the EnvoyConfig the reconciler has been instantiated with

func (*RevisionReconciler) GetCacheState

func (r *RevisionReconciler) GetCacheState() string

GetCacheState returns the status of the EnvoyConfig the reconciler has been instantiated with. If Reconcile has not been successfully invoked it will return nil.

func (*RevisionReconciler) GetRevisionList

GetRevisionList returns the EnvoyConfigRevisionList that has been used to to computed by the Reconcile() function. If Reconcile has not been successfully invoked it will return nil.

func (*RevisionReconciler) Instance

Instance returns the EnvoyConfig the reconciler has been instantiated with

func (*RevisionReconciler) Namespace

func (r *RevisionReconciler) Namespace() string

Namespace returns the Namespace of the EnvoyConfig the reconciler has been instantiated with

func (*RevisionReconciler) NodeID

func (r *RevisionReconciler) NodeID() string

NodeID returns the nodeID of the EnvoyConfig the reconciler has been instantiated with

func (*RevisionReconciler) PublishedVersion

func (r *RevisionReconciler) PublishedVersion() string

PublishedVersion returns the version of the published revision. If Reconcile has not been successfully invoked it will return nil.

func (*RevisionReconciler) Reconcile

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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