Documentation ¶
Index ¶
- Constants
- Variables
- func DbSyncJob(cr *neutronv1beta1.NeutronAPI, labels map[string]string, ...) *batchv1.Job
- func Deployment(instance *neutronv1.NeutronAPI, configHash string, labels map[string]string, ...) *appsv1.Deployment
- func GetAPIVolumeMounts(extraVol []neutronv1beta1.NeutronExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount
- func GetAPIVolumes(name string, extraVol []neutronv1beta1.NeutronExtraVolMounts, ...) []corev1.Volume
- func GetInitContainer(init InitContainer) []corev1.Container
- func GetInitVolumeMounts(extraVol []neutronv1beta1.NeutronExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount
- type InitContainer
Constants ¶
View Source
const ( // ServiceName - ServiceName = "neutron" // ServiceType - ServiceType = "network" // KollaConfigAPI - KollaConfigAPI = "/var/lib/config-data/merged/neutron-api-config.json" // KollaConfigDbSync - KollaConfigDbSync = "/var/lib/config-data/merged/db-sync-config.json" // Database - Database = "neutron" // NeutronPublicPort - NeutronPublicPort int32 = 9696 // NeutronInternalPort - NeutronInternalPort int32 = 9696 // NeutronExtraVolTypeUndefined can be used to label an extraMount which // is not associated with a specific backend NeutronExtraVolTypeUndefined storage.ExtraVolType = "Undefined" // NeutronAPI is the definition of the neutron-api group NeutronAPI storage.PropagationType = "NeutronAPI" // Neutron is the global ServiceType that refers to all the components deployed // by the neutron-operator Neutron storage.PropagationType = "Neutron" )
View Source
const (
// ServiceCommand -
ServiceCommand = "/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 NeutronAPIPropagation = []storage.PropagationType{Neutron, NeutronAPI}
NeutronAPIPropagation is the definition of the NeutronAPI propagation group It allows the NeutronAPI pod to mount volumes destined to Neutron and NeutronAPI ServiceTypes
Functions ¶
func DbSyncJob ¶
func DbSyncJob( cr *neutronv1beta1.NeutronAPI, labels map[string]string, annotations map[string]string, ) *batchv1.Job
DbSyncJob func
func Deployment ¶
func Deployment( instance *neutronv1.NeutronAPI, configHash string, labels map[string]string, annotations map[string]string, ) *appsv1.Deployment
Deployment func
func GetAPIVolumeMounts ¶
func GetAPIVolumeMounts(extraVol []neutronv1beta1.NeutronExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount
GetAPIVolumeMounts - Neutron API VolumeMounts
func GetAPIVolumes ¶
func GetAPIVolumes(name string, extraVol []neutronv1beta1.NeutronExtraVolMounts, svc []storage.PropagationType) []corev1.Volume
GetAPIVolumes - TODO: merge to GetVolumes when other controllers also switched to current config
mechanism.
func GetInitContainer ¶
func GetInitContainer(init InitContainer) []corev1.Container
GetInitContainer - init container for neutron services
func GetInitVolumeMounts ¶
func GetInitVolumeMounts(extraVol []neutronv1beta1.NeutronExtraVolMounts, svc []storage.PropagationType) []corev1.VolumeMount
GetInitVolumeMounts - Nova Control Plane init task VolumeMounts
Types ¶
type InitContainer ¶
type InitContainer struct { Privileged bool ContainerImage string Database string DatabaseHost string DatabaseUser string NeutronSecret string TransportURLSecret string DBPasswordSelector string UserPasswordSelector string VolumeMounts []corev1.VolumeMount }
InitContainer information
Click to show internal directories.
Click to hide internal directories.