barbican

package
v0.0.0-...-37d5a9b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName -
	ServiceName = "barbican"
	// ComponentAPI -
	ComponentAPI = "barbican-api"
	// ComponentKeystoneListener -
	ComponentKeystoneListener = "keystone-listener"
	// ComponentWorker -
	ComponentWorker = "barbican-worker"
	// ServiceType -
	ServiceType = "key-manager"

	// DatabaseName - Name of the database used in CREATE DATABASE statement
	DatabaseName = "barbican"

	// DatabaseCRName - Name of the MariaDBDatabase CR
	DatabaseCRName = "barbican"

	// DatabaseUsernamePrefix - used by EnsureMariaDBAccount when a new username
	// is to be generated, e.g. "barbican_e5a4", "barbican_78bc", etc
	DatabaseUsernamePrefix = "barbican"

	// BarbicanPublicPort -
	BarbicanPublicPort int32 = 9311
	// BarbicanInternalPort -
	BarbicanInternalPort int32 = 9311
	// DefaultsConfigFileName -
	DefaultsConfigFileName = "00-default.conf"
	// CustomConfigFileName -
	CustomConfigFileName = "01-custom.conf"
	// CustomServiceConfigFileName -
	CustomServiceConfigFileName = "02-service-custom.conf"
	// CustomServiceConfigSecretsFileName -
	CustomServiceConfigSecretsFileName = "03-secrets-custom.conf"
	// BarbicanAPI defines the barbican-api group
	BarbicanAPI storage.PropagationType = "BarbicanAPI"
	// BarbicanWorker defines the barbican-worker group
	BarbicanWorker storage.PropagationType = "BarbicanWorker"
	// BarbicanKeystoneListener defines the barbican-keystone-listener group
	BarbicanKeystoneListener storage.PropagationType = "BarbicanKeystoneListener"
	// Barbican is the global ServiceType that refers to all the components deployed
	// by the barbican operator
	Barbican storage.PropagationType = "Barbican"
	// BarbicanLogPath is the path used by BarbicanAPI to stream/store its logs
	BarbicanLogPath = "/var/log/barbican/"
	// LogVolume is the default logVolume name used to mount logs on both
	// BarbicanAPI and the sidecar container
	LogVolume = "logs"
)
View Source
const (
	// DBSyncCommand -
	DBSyncCommand = "/usr/local/bin/kolla_set_configs && /usr/local/bin/kolla_start"
)

Variables

This section is empty.

Functions

func DbSyncJob

func DbSyncJob(instance *barbicanv1beta1.Barbican, 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 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 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