lease

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const PurposeMemberLease = "etcd-member-lease"

PurposeMemberLease is a constant used as a purpose for etcd member lease objects.

Variables

This section is empty.

Functions

func New

func New(c client.Client, namespace string, values Values) gardenercomponent.Deployer

New creates a new lease deployer instance.

Types

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
	// EtcdName is the UID of the etcd resource.
	EtcdUID types.UID
	// 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
}

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) Values

GenerateValues generates `lease.Values` for the lease component with the given parameters.

Jump to

Keyboard shortcuts

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