watcher

package
v0.0.0-...-110165e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 DBPurgeCronJob(
	instance *watcherv1beta1.Watcher,
	labels map[string]string,
	annotations map[string]string,
) *batchv1.CronJob

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

func GetLogVolume() []corev1.Volume

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 GetScriptVolume(secretName string) corev1.Volume

func GetScriptVolumeMount

func GetScriptVolumeMount() corev1.VolumeMount

func GetVolumeMounts

func GetVolumeMounts(secretNames []string) []corev1.VolumeMount

GetVolumeMounts - general VolumeMounts

func GetVolumes

func GetVolumes(name string, secretNames []string) []corev1.Volume

GetVolumes - service volumes

Types

This section is empty.

Jump to

Keyboard shortcuts

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