configmap

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0, MIT Imports: 15 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 {
	// EtcdName is the name of the etcd resource.
	EtcdName string
	// EtcdNameSpace is the namespace of etcd resource
	EtcdNameSpace string
	// EtcdName 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
	// ConfigMapName is the name of the configmap that holds the ETCD config
	ConfigMapName string
	// ConfigMapChecksum is the checksum of deployed configmap
	ConfigMapChecksum string
	// Labels is the labels from the etcd object spec
	Labels map[string]string
}

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