spec

package
v1.10.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DevDir                      = "/dev/"
	DevDirName                  = "device-dir"
	LinstorConfDir              = "/etc/linstor"
	LinstorCertDir              = "/etc/linstor/certs"
	LinstorClientDir            = "/etc/linstor/client"
	LinstorClientDirName        = "linstor-client"
	LinstorHttpsCertDir         = "/etc/linstor/https"
	LinstorHttpsCertDirName     = "linstor-https"
	LinstorHttpsCertPassword    = "linstor"
	LinstorHttpsCertPemDir      = "/etc/linstor/https-pem"
	LinstorHttpsCertPemDirName  = "linstor-https-pem"
	LinstorSslDir               = "/etc/linstor/ssl"
	LinstorSslDirName           = "linstor-ssl"
	LinstorSslPemDir            = "/etc/linstor/ssl-pem"
	LinstorSslPemDirName        = "linstor-ssl-pem"
	LinstorConfDirName          = "linstor-conf"
	LinstorCertDirName          = "linstor-certs"
	ModulesDir                  = "/lib/modules/" // "/usr/lib/modules/"
	ModulesDirName              = "modules-dir"
	SrcDir                      = "/usr/src"
	SrcDirName                  = "src-dir"
	SysDir                      = "/sys/"
	SysDirName                  = "sys-dir"
	LinstorControllerConfigFile = "linstor.toml"
	LinstorSatelliteConfigFile  = "linstor_satellite.toml"
	LinstorClientConfigFile     = "linstor-client.conf"
	LinstorControllerGID        = 1000
	DrbdPrometheuscConfName     = "drbd-reactor-config"
	MonitorungPortNumber        = 9942
	MonitoringPortName          = "prometheus"
)

Shared consts common to container volumes.

View Source
const (
	LinstorKernelModHow                = "LB_HOW"
	LinstorKernelModCompile            = "compile"
	LinstorKernelModShippedModules     = "shipped_modules"
	LinstorKernelModDepsOnly           = "deps_only"
	LinstorKernelModHelperCheck        = "LB_FAIL_IF_USERMODE_HELPER_NOT_DISABLED"
	LinstorKernelModHelperCheckEnabled = "yes"
)

Special strings for communicating with the module injector

View Source
const (
	LinstorLUKSPassphraseEnvName = "MASTER_PASSPHRASE"
	JavaOptsName                 = "JAVA_OPTS"
	LinstorRegistrationProperty  = "Aux/registered-by"
)

Special strings when configuring Linstor

View Source
const (
	SystemNamespace                 = "kube-system"
	SystemCriticalPriorityClassName = "system-node-critical"
	DefaultTopologyKey              = "kubernetes.io/hostname"
	LinstorControllerServiceAccount = "linstor-controller"
	LinstorSatelliteServiceAccount  = "linstor-satellite"
)

k8s constants: Special names for k8s APIs.

View Source
const (
	ImageLinstorControllerEnv     = "RELATED_IMAGE_LINSTOR_CONTROLLER"
	ImageLinstorSatelliteEnv      = "RELATED_IMAGE_LINSTOR_SATELLITE"
	ImageKernelModuleInjectionEnv = "RELATED_IMAGE_KERNEL_MODULE_INJECTION"
	ImageMonitoringEnv            = "RELATED_IMAGE_MONITORING"
	ImageCSIPluginEnv             = "RELATED_IMAGE_CSI_PLUGIN"
	ImageCSIAttacherEnv           = "RELATED_IMAGE_CSI_ATTACHER"
	ImageCSILivenessProbeEnv      = "RELATED_IMAGE_CSI_LIVENESSPROBE"
	ImageCSINodeRegistrarEnv      = "RELATED_IMAGE_CSI_NODE_REGISTRAR"
	ImageCSIProvisionerEnv        = "RELATED_IMAGE_CSI_PROVISIONER"
	ImageCSISnapshotterEnv        = "RELATED_IMAGE_CSI_SNAPSHOTTER"
	ImageCSIResizerEnv            = "RELATED_IMAGE_CSI_RESIZER"
)

ocp: special environment variables for certified operators

View Source
const (
	// APIGroup specifies the group for the custom resource definition APIs
	APIGroup = "piraeus.linbit.com"

	// ControllerRole is the role for the controller set
	ControllerRole = "piraeus-controller"

	// NodeRole is the role for the node set
	NodeRole = "piraeus-node"

	// CSIDriverRole is the role for the CSI Workloads
	CSIDriverRole = "piraeus-csi"

	// CSIControllerRole is the role for the CSI Controller Workloads
	CSIControllerRole = "csi-controller"

	// CSINodeRole is the role for the CSI Node Workloads
	CSINodeRole = "csi-node"

	// Name is the name of the operator
	Name = "piraeus-operator"

	// LockName is the name of the lock for leader election
	LockName = "piraeus-operator-lock"
)

Variables

View Source
var (
	HostPathDirectoryType         = corev1.HostPathDirectory
	HostPathDirectoryOrCreateType = corev1.HostPathDirectoryOrCreate
	MountPropagationBidirectional = corev1.MountPropagationBidirectional
	FileType                      = corev1.HostPathFile
)

Shared consts common to container volumes. These need to be vars, so they are addressible.

View Source
var (
	Privileged = true
	Level      = "s0"
	Type       = "spc_t"
)

Shared consts common to container security. These need to be vars, so they are addressible.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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