etcd

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0, MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IgnoreReconciliationAnnotation is an annotation set by an operator in order to stop reconciliation.
	IgnoreReconciliationAnnotation = "druid.gardener.cloud/ignore-reconciliation"
)

Variables

This section is empty.

Functions

func BuildPredicate

func BuildPredicate(ignoreOperationAnnotation bool) predicate.Predicate

BuildPredicate builds the predicates used by Etcd controller.

func InitFromFlags

func InitFromFlags(fs *flag.FlagSet, cfg *Config)

InitFromFlags initializes the config from the provided CLI flag set.

Types

type Config

type Config struct {
	// Workers is the number of workers concurrently processing reconciliation requests.
	Workers int
	// DisableEtcdServiceAccountAutomount controls the auto-mounting of service account token for etcd statefulsets.
	DisableEtcdServiceAccountAutomount bool
}

Config defines the configuration for the Etcd Controller.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the config.

type Reconciler

type Reconciler struct {
	client.Client
	// contains filtered or unexported fields
}

Reconciler reconciles Etcd resources.

func NewReconciler

func NewReconciler(mgr manager.Manager, config *Config) (*Reconciler, error)

NewReconciler creates a new reconciler for Etcd.

func NewReconcilerWithImageVector

func NewReconcilerWithImageVector(mgr manager.Manager, config *Config, imageVector imagevector.ImageVector, chartBasePath string) (*Reconciler, error)

NewReconcilerWithImageVector creates a new reconciler for Etcd with an ImageVector. This constructor will mostly be used by tests.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles Etcd resources.

func (*Reconciler) RegisterWithManager

func (r *Reconciler) RegisterWithManager(mgr ctrl.Manager, ignoreOperationAnnotation bool) error

RegisterWithManager registers the Etcd Controller with the given controller manager.

Jump to

Keyboard shortcuts

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