lease

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface added in v0.13.1

type Interface interface {
	gardenercomponent.Deployer
}

Interface provides a facade for operations on leases.

func New

func New(c client.Client, logger logr.Logger, namespace string, values Values) Interface

New creates a new lease deployer instance.

type Values

type Values struct {
	// BackupEnabled specifies if the backup functionality for the etcd cluster is enabled.
	BackupEnabled bool
	// EtcdName is the name of the etcd resource.
	EtcdName string
	// DeltaSnapshotLeaseName is the name of the delta snapshot lease object.
	DeltaSnapshotLeaseName string
	// FullSnapshotLeaseName is the name of the full snapshot lease object.
	FullSnapshotLeaseName string
	// Replicas is the replica count of the etcd cluster.
	Replicas int32
	// Labels is the labels of deployed configmap
	Labels map[string]string
	// OwnerReference is the OwnerReference for the Configmap.
	OwnerReference metav1.OwnerReference
}

Values contains the values necessary for creating ETCD leases.

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) Values

GenerateValues generates `lease.Values` for the lease component

Jump to

Keyboard shortcuts

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