amphoracontrollers

package
v0.0.0-...-0d113f3 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InitContainerCommand -
	InitContainerCommand = "/usr/local/bin/container-scripts/init.sh %s"
)

Variables

This section is empty.

Functions

func DaemonSet

func DaemonSet(
	instance *octaviav1.OctaviaAmphoraController,
	configHash string,
	labels map[string]string,
	annotations map[string]string,
) *appsv1.DaemonSet

DaemonSet func

func EnsureFlavors

func EnsureFlavors(ctx context.Context, instance *octaviav1.OctaviaAmphoraController, log *logr.Logger, helper *helper.Helper) (string, error)

EnsureFlavors - enable that the Nova flavors for the amphora VMs are created

returns the UUID of the default Nova flavor

func GetCertVolume

func GetCertVolume(certSecretName string) []corev1.Volume

GetCertVolume - service volumes

func GetCertVolumeMount

func GetCertVolumeMount() []corev1.VolumeMount

GetCertVolumeMount - certificate VolumeMount

func GetInitVolumeMounts

func GetInitVolumeMounts() []corev1.VolumeMount

func GetVolumes

func GetVolumes(name string) []corev1.Volume

Types

type FlavorProfileData

type FlavorProfileData struct {
	ComputeFlavorID string `json:"compute_flavor"`
	AmpImageTag     string `json:"amp_image_tag"`
}

FlavorProfileData -

type OctaviaFlavors

type OctaviaFlavors struct {
	Name        string
	Description string
	VCPUs       int
	RAM         int
	Disk        int
	RxTxFactor  int
}

OctaviaFlavors -

Jump to

Keyboard shortcuts

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