ovs

package
v0.0.0-...-2821a8d Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName - ovs service name
	ServiceName = "ovs"
	// OvnControllerServiceName - ovn-controller service name
	OvnControllerServiceName = "ovn-controller"
	// ServiceType -
	ServiceType = "ovs"
	// KollaConfigAPI -
	KollaConfigAPI = "/var/lib/config-data/merged/ovs-config.json"
)

Variables

This section is empty.

Functions

func ConfigJob

func ConfigJob(
	ctx context.Context,
	h *helper.Helper,
	k8sClient client.Client,
	instance *v1beta1.OVS,
	labels map[string]string,
) ([]*batchv1.Job, error)

ConfigJob - prepare job to configure ovn-controller

func CreateAdditionalNetworks

func CreateAdditionalNetworks(
	ctx context.Context,
	h *helper.Helper,
	instance *v1beta1.OVS,
	labels map[string]string,
) ([]string, error)

CreateAdditionalNetworks - creates network attachement definitions based on the provided mappings

func DaemonSet

func DaemonSet(
	instance *v1beta1.OVS,
	configHash string,
	labels map[string]string,
	annotations map[string]string,
) (*appsv1.DaemonSet, error)

DaemonSet func

func EnvDownwardAPI

func EnvDownwardAPI(field string) env.Setter

EnvDownwardAPI - set env from FieldRef->FieldPath, e.g. status.podIP

func GetOvnVolumeMounts

func GetOvnVolumeMounts() []corev1.VolumeMount

GetOvnVolumeMounts - ovn-controller VolumeMounts

func GetOvsDbVolumeMounts

func GetOvsDbVolumeMounts() []corev1.VolumeMount

GetOvsDbVolumeMounts - ovsdb-server VolumeMounts

func GetVolumes

func GetVolumes(name string) []corev1.Volume

GetVolumes -

func GetVswitchdVolumeMounts

func GetVswitchdVolumeMounts() []corev1.VolumeMount

GetVswitchdVolumeMounts - ovs-vswitchd VolumeMounts

Types

This section is empty.

Jump to

Keyboard shortcuts

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