nova

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KollaServiceCommand - the command to start the service binary in the kolla container
	KollaServiceCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
	// NovaAPIDatabaseName - the name of the DB to store tha API schema
	NovaAPIDatabaseName = "nova_api"
	// NovaCell0DatabaseName - the name of the DB to store the cell schema for
	// cell0
	NovaCell0DatabaseName = "nova_cell0"
)

Variables

This section is empty.

Functions

func CellMappingJob

func CellMappingJob(
	instance *novav1.Nova,
	cell *novav1.NovaCell,
	configMapName string,
	scriptConfigMapName string,
	inputHash string,
	labels map[string]string,
) *batchv1.Job

func GetConfigVolume

func GetConfigVolume(secretName string) corev1.Volume

func GetConfigVolumeMount

func GetConfigVolumeMount() corev1.VolumeMount

func GetLogVolume

func GetLogVolume() corev1.Volume

func GetLogVolumeMount

func GetLogVolumeMount() corev1.VolumeMount

func GetScriptSecretName

func GetScriptSecretName(crName string) string

GetScriptSecretName returns the name of the Secret used for the db sync scripts

func GetScriptVolume

func GetScriptVolume(secretName string) corev1.Volume

func GetScriptVolumeMount

func GetScriptVolumeMount() corev1.VolumeMount

func GetServiceConfigSecretName

func GetServiceConfigSecretName(crName string) string

GetServiceConfigSecretName returns the name of the Secret used to store the service configuration files

Types

type CellDeploymentStatus

type CellDeploymentStatus int
const (
	// CellDeploying indicates that NovaCell is created and waiting to reach
	// Ready status
	CellDeploying CellDeploymentStatus = iota
	// CellMapping indicates that NovaCell reached the Ready status and it is
	// being mapped to the Nova API database
	CellMapping CellDeploymentStatus = iota
	// CellMappingFailed indicates that NovaCell reached the Ready status but
	// mapping it to the Nova API database failed
	CellMappingFailed CellDeploymentStatus = iota
	// CellMappingReady indicates that NovaCell reached the Ready status and
	// it is mapped to the Nova API database
	CellMappingReady CellDeploymentStatus = iota
	// CellReady indicates that the NovaCell is Ready and it is mapped to
	// Nova API database so it is accessible.
	CellReady CellDeploymentStatus = iota
	// CellFailed indicates that the NovaCell deployment failed.
	CellFailed CellDeploymentStatus = iota
)

CellDeploymentStatus -

type Database

type Database struct {
	Database *database.Database
	Status   DatabaseStatus
}

Database -

type DatabaseStatus

type DatabaseStatus int

DatabaseStatus -

const (
	// DBFailed -
	DBFailed DatabaseStatus = iota
	// DBCreating -
	DBCreating DatabaseStatus = iota
	// DBCompleted -
	DBCompleted DatabaseStatus = iota
)

type MessageBus

type MessageBus struct {
	SecretName string
	Status     MessageBusStatus
}

MessageBus -

type MessageBusStatus

type MessageBusStatus int

MessageBusStatus -

const (
	// MQFailed -
	MQFailed MessageBusStatus = iota
	// MQCreating -
	MQCreating MessageBusStatus = iota
	// MQCompleted -
	MQCompleted MessageBusStatus = iota
)

Jump to

Keyboard shortcuts

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