Documentation ¶
Index ¶
- Constants
- func GetDBClusterVolumeMounts(name string) []corev1.VolumeMount
- func GetDBClusterVolumes(name string) []corev1.Volume
- func HeadlessService(serviceName string, instance *ovnv1.OVNDBCluster, ...) *corev1.Service
- func OVNDBPods(ctx context.Context, instance *ovnv1.OVNDBCluster, helper *helper.Helper, ...) (*corev1.PodList, error)
- func Service(serviceName string, instance *ovnv1.OVNDBCluster, ...) *corev1.Service
- func StatefulSet(instance *ovnv1.OVNDBCluster, configHash string, labels map[string]string, ...) *appsv1.StatefulSet
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.