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" LinstorSslDir = "/etc/linstor/ssl" LinstorConfDirName = "linstor-conf" LinstorCertDirName = "linstor-certs" LinstorSslDirName = "linstor-ssl" 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" // 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 )
Shared consts common to container volumes. These need to be vars, so they are addressible.
View Source
var (
Privileged = true
)
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.
Click to show internal directories.
Click to hide internal directories.