Documentation ¶
Index ¶
- Constants
- func DbSyncJob(instance *designatev1beta1.Designate, labels map[string]string) *batchv1.Job
- func GetInitVolumeMounts() []corev1.VolumeMount
- func GetOwningDesignateName(instance client.Object) string
- func GetScriptConfigMapName(crName string) string
- func GetServiceConfigConfigMapName(crName string) string
- func GetServiceVolumeMounts(serviceName string) []corev1.VolumeMount
- func GetVolumes(baseConfigMapName string) []corev1.Volume
- func InitContainer(init APIDetails) []corev1.Container
- type APIDetails
- type Database
- type DatabaseStatus
- type MessageBus
- type MessageBusStatus
Constants ¶
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" // DesignateDatabaseName - the name of the DB to store tha API schema DesignateDatabaseName = "designate" )
const ( // ServiceType - ServiceType = "dns" // ServiceName - ServiceName = "designate" // DatabaseName - DatabaseName = "designate" // DesignatePublicPort - DesignatePublicPort int32 = 9001 // DesignateInternalPort - DesignateInternalPort int32 = 9001 )
const (
// DBSyncCommand -
DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)
const (
// InitContainerCommand -
InitContainerCommand = "/usr/local/bin/container-scripts/init.sh"
)
Variables ¶
This section is empty.
Functions ¶
func GetInitVolumeMounts ¶
func GetInitVolumeMounts() []corev1.VolumeMount
GetInitVolumeMounts - Designate Control Plane init task VolumeMounts
func GetOwningDesignateName ¶
GetOwningDesignateName - Given a Designate-->API,Central,Worker,Mdns,Producer object, returning the parent Designate object that created it (if any)
func GetScriptConfigMapName ¶
GetScriptConfigMapName returns the name of the ConfigMap used for the config merger and the service init scripts
func GetServiceConfigConfigMapName ¶
GetServiceConfigConfigMapName returns the name of the ConfigMap used to store the service configuration files
func GetServiceVolumeMounts ¶
func GetServiceVolumeMounts(serviceName string) []corev1.VolumeMount
GetServiceVolumeMounts - VolumeMounts to get access to the merged configuration
func GetVolumes ¶
GetVolumes - returns the volumes used for the service deployment and for any jobs needs access for the full service configuration
func InitContainer ¶
func InitContainer(init APIDetails) []corev1.Container
InitContainer - init container for designate api pods
Types ¶
type APIDetails ¶
type APIDetails struct { ContainerImage string DatabaseHost string DatabaseName string OSPSecret string TransportURLSecret string UserPasswordSelector string BackendType string VolumeMounts []corev1.VolumeMount Privileged bool }
APIDetails information
type Database ¶
type Database struct { Database *mariadbv1.Database Status DatabaseStatus }
Database -
type DatabaseStatus ¶
type DatabaseStatus int
DatabaseStatus -
const ( // DBFailed - DBFailed DatabaseStatus = iota // DBCreating - DBCreating DatabaseStatus = iota // DBCompleted - DBCompleted DatabaseStatus = iota )
type MessageBusStatus ¶
type MessageBusStatus int
MessageBusStatus -
const ( // MQFailed - MQFailed MessageBusStatus = iota // MQCreating - MQCreating MessageBusStatus = iota // MQCompleted - MQCompleted MessageBusStatus = iota )