reconcilers

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupLogic

func CleanupLogic(ecr *marin3rv1alpha1.EnvoyConfigRevision, xdssCache xdss.Cache, log logr.Logger)

CleanupLogic executes finalization code for EnvoyConfigRevision resources

func IsInitialized

func IsInitialized(ecr *marin3rv1alpha1.EnvoyConfigRevision) 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(ecr *marin3rv1alpha1.EnvoyConfigRevision, xdssCache xdss.Cache) bool

IsStatusReconciled calculates the status of the resource

Types

type CacheReconciler

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

func NewCacheReconciler

func NewCacheReconciler(ctx context.Context, logger logr.Logger, client client.Client, xdsCache xdss.Cache,
	decoder envoy_serializer.ResourceUnmarshaller, generator envoy_resources.Generator) CacheReconciler

func (*CacheReconciler) GenerateSnapshot

func (r *CacheReconciler) GenerateSnapshot(req types.NamespacedName, resources *marin3rv1alpha1.EnvoyResources, version string) (xdss.Snapshot, error)

func (*CacheReconciler) Reconcile

func (r *CacheReconciler) Reconcile(req types.NamespacedName, resources *marin3rv1alpha1.EnvoyResources, nodeID, version string) (ctrl.Result, error)

Jump to

Keyboard shortcuts

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