configmap

package
v0.22.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

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

New creates a new configmap deployer instance.

Types

type Values

type Values struct {
	// Name is the name of the configmap that holds the ETCD config
	Name string
	// EtcdUID is the UID of the etcd resource.
	EtcdUID types.UID
	// Metrics defines the level of detail for exported metrics of etcd, specify 'extensive' to include histogram metrics.
	Metrics *druidv1alpha1.MetricsLevel
	// Quota defines the etcd DB quota.
	Quota *resource.Quantity
	// InitialCluster is the initial cluster value to bootstrap ETCD.
	InitialCluster string
	// ClientUrlTLS hold the TLS configuration details for Client Communication
	ClientUrlTLS *druidv1alpha1.TLSConfig
	// PeerUrlTLS hold the TLS configuration details for Peer Communication
	PeerUrlTLS *druidv1alpha1.TLSConfig
	//ClientServiceName is name of the etcd client service
	ClientServiceName string
	// ClientPort holds the client port
	ClientPort *int32
	//PeerServiceName is name of the etcd peer service
	PeerServiceName string
	// ServerPort holds the peer port
	ServerPort *int32
	// AutoCompactionMode defines the auto-compaction-mode: 'periodic' or 'revision'.
	AutoCompactionMode *druidv1alpha1.CompactionMode
	//AutoCompactionRetention defines the auto-compaction-retention length for etcd as well as for embedded-Etcd of backup-restore sidecar.
	AutoCompactionRetention *string
	// ConfigMapChecksum is the checksum of deployed configmap
	ConfigMapChecksum string
	// Labels are the labels of deployed configmap
	Labels map[string]string
	// OwnerReference is the OwnerReference for the Configmap.
	OwnerReference metav1.OwnerReference
}

Values contains the values to create a configmap

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) *Values

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

Jump to

Keyboard shortcuts

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