Documentation
¶
Index ¶
- Constants
- Variables
- func DbSyncJob(instance *glancev1.Glance, labels map[string]string, ...) *batchv1.Job
- func GetConfigSecretVolumes(secretNames []string) ([]corev1.Volume, []corev1.VolumeMount)
- func GetEnabledBackends(customServiceConfig string) []string
- func GetLogVolume() []corev1.Volume
- func GetLogVolumeMount() []corev1.VolumeMount
- func GetOwningGlanceName(instance client.Object) string
- func GetVolumeMounts(secretNames []string, hasCinder bool, extraVol []glancev1.GlanceExtraVolMounts, ...) []corev1.VolumeMount
- func GetVolumes(name string, pvcName string, hasCinder bool, secretNames []string, ...) []corev1.Volume
- func Pvc(api *glancev1.Glance, labels map[string]string) *corev1.PersistentVolumeClaim
Constants ¶
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" )
const (
// DBSyncCommand -
DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)
Variables ¶
var DbsyncPropagation = []storage.PropagationType{storage.DBSync}
DbsyncPropagation keeps track of the DBSync Service Propagation Type
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 ¶
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
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 ¶
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
Types ¶
This section is empty.