cinder

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName -
	ServiceName = "cinder"
	// ServiceNameV3 -
	ServiceNameV3 = "cinderv3"
	// ServiceType -
	ServiceType = "cinder"
	// ServiceTypeV3 -
	ServiceTypeV3 = "volumev3"
	// DatabaseName -
	DatabaseName = "cinder"

	// DefaultsConfigFileName -
	DefaultsConfigFileName = "00-config.conf"
	// CustomConfigFileName -
	CustomConfigFileName = "01-config.conf"
	// CustomServiceConfigFileName -
	CustomServiceConfigFileName = "02-config.conf"
	// CustomServiceConfigSecretsFileName -
	CustomServiceConfigSecretsFileName = "03-config.conf"

	// CinderPublicPort -
	CinderPublicPort int32 = 8776
	// CinderInternalPort -
	CinderInternalPort int32 = 8776

	// CinderExtraVolTypeUndefined can be used to label an extraMount which
	// is not associated with a specific backend
	CinderExtraVolTypeUndefined storage.ExtraVolType = "Undefined"
	// CinderExtraVolTypeCeph can be used to label an extraMount which
	// is associated to a Ceph backend
	CinderExtraVolTypeCeph storage.ExtraVolType = "Ceph"
	// CinderBackup is the definition of the cinder-backup group
	CinderBackup storage.PropagationType = "CinderBackup"
	// CinderVolume is the definition of the cinder-volume group
	CinderVolume storage.PropagationType = "CinderVolume"
	// CinderScheduler is the definition of the cinder-scheduler group
	CinderScheduler storage.PropagationType = "CinderScheduler"
	// CinderAPI is the definition of the cinder-api group
	CinderAPI storage.PropagationType = "CinderAPI"
	// Cinder is the global ServiceType that refers to all the components deployed
	// by the cinder operator
	Cinder storage.PropagationType = "Cinder"
	//LogSnippet -
	LogSnippet = "[DEFAULT]\nlog_file="
)
View Source
const (
	// DBSyncCommand -
	// TODO: Once we work on update/upgrades revisit the command in the
	//       the db-sync-config.json file.
	//       If we stop all services during the update/upgrade then we can keep
	//       the --bump-versions flag.
	//       If we are doing rolling upgrades we'll need to use the flag
	//       conditionally (only for adoption) and do the restart cycle of
	//       services as described in the upstream rolling upgrades process.
	DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)

Variables

View Source
var CinderAPIPropagation = []storage.PropagationType{Cinder, CinderAPI}

CinderAPIPropagation is the definition of the CinderAPI propagation group It allows the CinderAPI pod to mount volumes destined to Cinder and CinderAPI ServiceTypes

View Source
var CinderBackupPropagation = []storage.PropagationType{Cinder, CinderBackup}

CinderBackupPropagation is the definition of the CinderBackup propagation group It allows the CinderBackup pod to mount volumes destined to Cinder and CinderBackup ServiceTypes

View Source
var CinderSchedulerPropagation = []storage.PropagationType{Cinder, CinderScheduler}

CinderSchedulerPropagation is the definition of the CinderScheduler propagation group It allows the CinderScheduler pod to mount volumes destined to Cinder and CinderScheduler ServiceTypes

View Source
var CinderVolumePropagation = []storage.PropagationType{Cinder, CinderVolume}

CinderVolumePropagation is the definition of the CinderVolume propagation group It allows the CinderVolume pods to mount volumes destined to Cinder and CinderVolume ServiceTypes

View Source
var DbsyncPropagation = []storage.PropagationType{storage.DBSync}

DbsyncPropagation keeps track of the DBSync Service Propagation Type

Functions

func DbSyncJob

func DbSyncJob(instance *cinderv1beta1.Cinder, labels map[string]string, annotations map[string]string) *batchv1.Job

DbSyncJob func

func GetOwningCinderName

func GetOwningCinderName(instance client.Object) string

GetOwningCinderName - Given a CinderAPI, CinderScheduler, CinderBackup or CinderVolume object, returning the parent Cinder object that created it (if any)

func GetVolumeMounts

func GetVolumeMounts(storageSvc bool, extraVol []cinderv1beta1.CinderExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount

GetVolumeMounts - Cinder Control Plane VolumeMounts

func GetVolumes

func GetVolumes(name string, storageSvc bool, extraVol []cinderv1beta1.CinderExtraVolMounts, svc []storage.PropagationType) []corev1.Volume

GetVolumes -

Types

This section is empty.

Jump to

Keyboard shortcuts

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