Documentation
¶
Index ¶
- Constants
- func DBPurgeCronJob(instance *watcherv1beta1.Watcher, labels map[string]string, ...) *batchv1.CronJob
- func DbSyncJob(instance *watcherv1beta1.Watcher, labels map[string]string, ...) *batchv1.Job
- func GetConfigSecretVolumes(secretNames []string) ([]corev1.Volume, []corev1.VolumeMount)
- func GetKollaConfigVolumeMount(serviceName string) corev1.VolumeMount
- func GetLogVolume() []corev1.Volume
- func GetLogVolumeMount() []corev1.VolumeMount
- func GetScriptVolume(secretName string) corev1.Volume
- func GetScriptVolumeMount() corev1.VolumeMount
- func GetVolumeMounts(secretNames []string) []corev1.VolumeMount
- func GetVolumes(name string, secretNames []string) []corev1.Volume
Constants ¶
View Source
const ( // ServiceName - Name to identify watcher service ServiceName = "watcher" // ServiceType - Type of Watcher keystone service ServiceType = "infra-optim" // DatabaseName - Name of the database used in CREATE DATABASE statement DatabaseName = "watcher" // DatabaseUsernamePrefix - used by EnsureMariaDBAccount when a new username // is created. DatabaseUsernamePrefix = "watcher" // DatabaseCRName - name of the CR used to create the Watcher database DatabaseCRName = "watcher" // DefaultsConfigFileName - File name with default configuration DefaultsConfigFileName = "00-default.conf" // GlobalCustomConfigFileName - File name with custom configuration defined in Watcher GlobalCustomConfigFileName = "01-global-custom.conf" // ServiceCustomConfigFileName - File name with custom configuration defined in SubCRs ServiceCustomConfigFileName = "02-service-custom.conf" // LogVolume is the default logVolume name used to mount logs LogVolume = "logs" // WatcherPublicPort - public port of watcher containers WatcherPublicPort int32 = 9322 // WatcherPublicPort - internal port of watcher containers WatcherInternalPort int32 = 9322 // WatcherLogPath is the path used by WatcherAPI to stream/store its logs WatcherLogPath = "/var/log/watcher/" // ConfigVolume is the default volume name used to mount service config ConfigVolume = "config-data" // Path to deploy the Prometheus CaCert if needed PrometheusCaCertFolderPath = "/etc/pki/ca-trust/extracted/pem/prometheus/" // WatcherUserID is the linux user ID used by Kolla for watcher service WatcherUserID int64 = 42451 )
View Source
const (
// DBSyncCommand -
DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)
View Source
const (
// DBSyncCommand -
ServiceCommand = "/usr/local/bin/kolla_start"
)
Variables ¶
This section is empty.
Functions ¶
func DBPurgeCronJob ¶
func DbSyncJob ¶
func DbSyncJob(instance *watcherv1beta1.Watcher, 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 GetKollaConfigVolumeMount ¶
func GetKollaConfigVolumeMount(serviceName string) corev1.VolumeMount
GetKollaConfigVolumeMount - Returns the VolumeMount for the kolla config file
func GetLogVolume ¶
GetLogVolume - Returns the Volume used for logging purposes
func GetLogVolumeMount ¶
func GetLogVolumeMount() []corev1.VolumeMount
GetLogVolumeMount - Returns the VolumeMount used for logging purposes
func GetScriptVolume ¶
func GetScriptVolumeMount ¶
func GetScriptVolumeMount() corev1.VolumeMount
func GetVolumeMounts ¶
func GetVolumeMounts(secretNames []string) []corev1.VolumeMount
GetVolumeMounts - general VolumeMounts
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.