service

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: 10 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 service deployer instance.

Types

type Values

type Values struct {
	// BackupPort is the port exposed by the etcd-backup-restore side-car.
	BackupPort int32
	// ClientPort is the port exposed by etcd for client communication.
	ClientPort int32
	// ClientServiceName is the name of the service responsible for client traffic.
	ClientServiceName string
	// ClientAnnotations are the annotations to be added to the client service
	ClientServiceAnnotations map[string]string
	// ClientServiceLabels are the labels to be added to the client service
	ClientServiceLabels map[string]string
	// Labels are the service labels.
	Labels map[string]string
	// PeerServiceName is the name of the service responsible for peer traffic.
	PeerServiceName string
	// PeerPort is the port used for etcd peer communication.
	PeerPort int32
	// OwnerReference is the OwnerReference for the ETCD services.
	OwnerReference metav1.OwnerReference
	// SelectorLabels are the labels to be used in the Service.spec selector
	SelectorLabels map[string]string
}

Values contains the values necessary for creating ETCD services.

func GenerateValues

func GenerateValues(etcd *druidv1alpha1.Etcd) Values

GenerateValues generates `service.Values` for the service component with the given `etcd` object.

Jump to

Keyboard shortcuts

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