Help us shape the future of Go! Take the 2026 Go Developer Survey

ovndbcluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ServiceNameNB -
	ServiceNameNB = "ovsdbserver-nb"

	// ServiceNameSB -
	ServiceNameSB = "ovsdbserver-sb"

	// KollaConfigOVNDBCluster -
	KollaConfigOVNDBCluster = "/var/lib/config-data/ovn-dbcluster.json"
)
View Source
const (
	// ServiceCommand -
	ServiceCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"

	// PvcSuffixEtcOvn -
	PvcSuffixEtcOvn = "-etc-ovn"
)

Variables

This section is empty.

Functions

func GetDBClusterVolumeMounts

func GetDBClusterVolumeMounts(name string) []corev1.VolumeMount

GetDBClusterVolumeMounts - OVN DBCluster VolumeMounts

func GetDBClusterVolumes

func GetDBClusterVolumes(name string) []corev1.Volume

GetDBClusterVolumes - TODO: merge to GetVolumes when other controllers also switched to current config mechanism.

func HeadlessService

func HeadlessService(
	serviceName string,
	instance *ovnv1.OVNDBCluster,
	serviceLabels map[string]string,
) *corev1.Service

HeadlessService - Headless Service for ovndbcluster pods to get DNS names in pods

func OVNDBPods

func OVNDBPods(
	ctx context.Context,
	instance *ovnv1.OVNDBCluster,
	helper *helper.Helper,
	serviceLabels map[string]string,
) (*corev1.PodList, error)

OVNDBPods - Query current running ovn db pods managed by the statefulset

func Service

func Service(
	serviceName string,
	instance *ovnv1.OVNDBCluster,
	serviceLabels map[string]string,
) *corev1.Service

Service - Service for ovndbcluster per pod

func StatefulSet

func StatefulSet(
	instance *ovnv1.OVNDBCluster,
	configHash string,
	labels map[string]string,
	annotations map[string]string,
) *appsv1.StatefulSet

StatefulSet func

Types

This section is empty.

Jump to

Keyboard shortcuts

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