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: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStatusReconciled

func IsStatusReconciled(eb *marin3rv1alpha1.EnvoyBootstrap, configHashV2, configHashV3 string) bool

IsStatusReconciled calculates the status of the resource

Types

type BootstrapConfigReconciler

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

BootstrapConfigReconciler has methods to reconcile discovery service client certificates

func NewBootstrapConfigReconciler

func NewBootstrapConfigReconciler(ctx context.Context, logger logr.Logger, client client.Client, scheme *runtime.Scheme,
	eb *marin3rv1alpha1.EnvoyBootstrap) BootstrapConfigReconciler

NewBootstrapConfigReconciler returns a BootstrapConfigReconciler struct

func (*BootstrapConfigReconciler) ConfigMapName

func (r *BootstrapConfigReconciler) ConfigMapName(envoyAPI envoy.APIVersion) string

func (*BootstrapConfigReconciler) GetConfigHash

func (r *BootstrapConfigReconciler) GetConfigHash(envoyAPI envoy.APIVersion) string

GetConfigHash returns the hash of the bootstrap config. Should be invoked only after running Reconcile()

func (*BootstrapConfigReconciler) Reconcile

func (r *BootstrapConfigReconciler) Reconcile(envoyAPI envoy.APIVersion) (ctrl.Result, error)

Reconcile keeps a bootstrap configuration in sync with the desired state

func (*BootstrapConfigReconciler) SetConfigHash

func (r *BootstrapConfigReconciler) SetConfigHash(envoyAPI envoy.APIVersion, hash string)

SetConfigHash sets the hash of the bootstrap config. Should be invoked only after running Reconcile()

type ClientCertificateReconciler

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

ClientCertificateReconciler has methods to reconcile discovery service client certificates

func NewClientCertificateReconciler

func NewClientCertificateReconciler(ctx context.Context, logger logr.Logger, client client.Client, scheme *runtime.Scheme,
	eb *marin3rv1alpha1.EnvoyBootstrap) ClientCertificateReconciler

NewClientCertificateReconciler returns a ClientCertificateReconciler struct

func (*ClientCertificateReconciler) Reconcile

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

Reconcile keeps a discovery service client certificates in sync with the desired state

Jump to

Keyboard shortcuts

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