service

package
v0.18.3 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0, MIT Imports: 11 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
	// EtcdName is the name of the etcd resource.
	EtcdName string
	// EtcdName is the UID of the etcd resource.
	EtcdUID types.UID
	// Labels are the service labels.
	Labels map[string]string
	// PeerServiceName is the name of the service responsible for peer traffic.
	PeerServiceName string
	// ServerPort is the port used for etcd peer communication.
	ServerPort int32
}

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