ovndbcluster

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

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

	// ServiceNameSB -
	ServiceNameSB = "ovsdbserver-sb"
)
View Source
const (
	// ServiceCommand -
	ServiceCommand = "/usr/local/bin/container-scripts/setup.sh"

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

Variables

This section is empty.

Functions

func DNSData

func DNSData(
	ctx context.Context,
	helper *helper.Helper,
	serviceName string,
	ip string,
	instance *ovnv1.OVNDBCluster,
	ovnPod corev1.Pod,
	serviceLabels map[string]string,
) error

DNSData - Create DNS entry that openstack dnsmasq will resolve

func GetDBAddress

func GetDBAddress(svc *corev1.Service, serviceName string, namespace string) string

GetDBAddress - return string connection for the given service

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