...

Package operator

import "edge-infra.dev/pkg/sds/etcd/operator"
Overview
Index
Subdirectories

Overview ▾

Package operator configures and manages etcd members

Constants

const (
    MemberLifecycle = "MemberLifecycleReconciler"
    MemberInformer  = "MemberInformerReconciler"
    MemberProvision = "MemberProvisionReconciler"
    Secret          = "SecretReconciler"
)

func Run

func Run(opts ...edgecontroller.Option) error

Run is the main entrypoint to the etcd operator

func SetupSignalHandler

func SetupSignalHandler(ctx context.Context) context.Context

SetupSignalHandler registers for SIGTERM and SIGINT. A context is returned which is canceled on one of these signals. If a second signal is caught, the program is terminated with exit code 1.

type NodeReconcilerSet

NodeReconcilerSet is a map of reconcilers

type NodeReconcilerSet map[string]Reconciler

type Reconciler

Reconciler is the minimum implementation to be a reconciler

type Reconciler interface {
    SetupWithManager(config.Config, *v1etcd.EtcdMemberList) error
    Reconcile(context.Context, ctrl.Request) (ctrl.Result, error)
}

type ReconcilerSet

ReconcilerSet is a map of reconcilers sets for different node types

type ReconcilerSet map[string]NodeReconcilerSet

Subdirectories

Name Synopsis
..
apis
etcdmember
v1 after editing this package run just update-k8s-codegen to populate the zz-
constants