etcdnodedeployment

package
v0.0.0-...-919f138 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RevisionAnnotation is the revision annotation of a deployment's EtcdNodeSets which records its rollout sequence
	RevisionAnnotation = "etcdnodedeployment.kubernetesimal.kkohtaka.org/revision"
	// RevisionHistoryAnnotation maintains the history of all old revisions that an EtcdNodeSet has served for a deployment.
	RevisionHistoryAnnotation = "etcdnodedeployment.kubernetesimal.kkohtaka.org/revision-history"
	// DesiredReplicasAnnotation is the desired replicas for a deployment recorded as an annotation
	// in its EtcdNodeSets. Helps in separating scaling events from the rollout process and for
	// determining if the new EtcdNodeSet for a deployment is really saturated.
	DesiredReplicasAnnotation = "etcdnodedeployment.kubernetesimal.kkohtaka.org/desired-replicas"
	// MaxReplicasAnnotation is the maximum replicas a deployment can have at a given point, which
	// is deployment.spec.replicas + maxSurge. Used by the underlying EtcdNodeSets to estimate their
	// proportions in case the deployment has surge replicas.
	MaxReplicasAnnotation = "etcdnodedeployment.kubernetesimal.kkohtaka.org/max-replicas"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme *runtime.Scheme

	Tracer trace.Tracer
}

Reconciler reconciles a EtcdNodeDeployment object

func (*Reconciler) Reconcile

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

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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