Help us shape the future of Go! Take the 2026 Go Developer Survey

glance

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// ServiceName -
	ServiceName = "glance"
	// ServiceType -
	ServiceType = "image"
	// DatabaseName -
	DatabaseName = "glance"

	// GlancePublicPort -
	GlancePublicPort int32 = 9292
	// GlanceInternalPort -
	GlanceInternalPort int32 = 9292

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

	// GlanceExtraVolTypeUndefined can be used to label an extraMount which
	// is not associated with a specific backend
	GlanceExtraVolTypeUndefined storage.ExtraVolType = "Undefined"
	// GlanceExtraVolTypeCeph can be used to label an extraMount which
	// is associated to a Ceph backend
	GlanceExtraVolTypeCeph storage.ExtraVolType = "Ceph"
	// GlanceAPI defines the glance-api group
	GlanceAPI storage.PropagationType = "GlanceAPI"
	// Glance is the global ServiceType that refers to all the components deployed
	// by the glance operator
	Glance storage.PropagationType = "Glance"
	// CinderName - Cinder CR Name Glance expects to find in the namespace
	CinderName = "cinder"
	// GlanceLogPath is the path used by GlanceAPI to stream/store its logs
	GlanceLogPath = "/var/log/glance/"
	// LogVolume is the default logVolume name used to mount logs on both
	// GlanceAPI and the sidecar container
	LogVolume = "logs"
)
View Source
const (
	// DBSyncCommand -
	DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)

Variables

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

DbsyncPropagation keeps track of the DBSync Service Propagation Type

View Source
var GlanceAPIPropagation = []storage.PropagationType{Glance, GlanceAPI}

GlanceAPIPropagation is the definition of the GlanceAPI propagation group It allows the GlanceAPI pod to mount volumes destined to Glance related ServiceTypes

Functions

func DbSyncJob

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

DbSyncJob func

func GetConfigSecretVolumes

func GetConfigSecretVolumes(secretNames []string) ([]corev1.Volume, []corev1.VolumeMount)

GetConfigSecretVolumes - Returns a list of volumes associated with a list of Secret names

func GetEnabledBackends

func GetEnabledBackends(customServiceConfig string) []string

GetEnabledBackends - Given a instance.Spec.CustomServiceConfig object, return a list of available stores in form of 'store_id':'backend'

func GetLogVolume added in v0.1.1

func GetLogVolume() []corev1.Volume

GetLogVolume - Returns the Volume used for logging purposes

func GetLogVolumeMount added in v0.1.1

func GetLogVolumeMount() []corev1.VolumeMount

GetLogVolumeMount - Returns the VolumeMount used for logging purposes

func GetOwningGlanceName

func GetOwningGlanceName(instance client.Object) string

GetOwningGlanceName - Given a GlanceAPI (both internal and external) object, return the parent Glance object that created it (if any)

func GetVolumeMounts

func GetVolumeMounts(secretNames []string, hasCinder bool, extraVol []glancev1.GlanceExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount

GetVolumeMounts - general VolumeMounts

func GetVolumes

func GetVolumes(name string, pvcName string, hasCinder bool, secretNames []string, extraVol []glancev1.GlanceExtraVolMounts, svc []storage.PropagationType) []corev1.Volume

GetVolumes - service volumes

func Pvc

Pvc - creates and returns a PVC object for a backing store

Types

This section is empty.

Jump to

Keyboard shortcuts

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