constants

package
v4.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TopolvmCSIDriverName = "topolvm.io"

	VGManagerServiceAccount = "vg-manager"

	VgManagerMemRequest = "45Mi"
	VgManagerCPURequest = "5m"

	// topoLVM Node
	CSIKubeletRootDir               = "/var/lib/kubelet/"
	TopolvmNodeContainerHealthzName = "healthz"

	DefaultCSISocket              = "/run/topolvm/csi-topolvm.sock"
	DeviceClassKey                = "topolvm.io/device-class"
	DefaultPluginRegistrationPath = "/registration"

	// name of the lvm-operator container
	LVMOperatorContainerName = "manager"

	// WorkloadPartitioningManagement contains the management workload annotation
	WorkloadPartitioningManagementAnnotation = "target.workload.openshift.io/management"
	ManagementAnnotationVal                  = `{"effect": "PreferredDuringScheduling"}`

	// DevicesWipedAnnotationPrefix is an annotation prefix that marks when a device has been wiped on a certain node
	DevicesWipedAnnotationPrefix = "wiped.devices.lvms.openshift.io/"

	// AppKubernetesPartOfLabel is the Kubernetes recommended part-of label
	AppKubernetesPartOfLabel = "app.kubernetes.io/part-of"
	// AppKubernetesNameLabel is the Kubernetes recommended name label
	AppKubernetesNameLabel = "app.kubernetes.io/name"
	// AppKubernetesManagedByLabel is the Kubernetes recommended managed-by label
	AppKubernetesManagedByLabel = "app.kubernetes.io/managed-by"
	// AppKubernetesComponentLabel is the Kubernetes recommended component label
	AppKubernetesComponentLabel = "app.kubernetes.io/component"

	VGManagerLabelVal = "vg-manager"
	ManagedByLabelVal = "lvms-operator"
	PartOfLabelVal    = "lvms-provisioner"

	StorageClassPrefix        = "lvms-"
	VolumeSnapshotClassPrefix = "lvms-"
	SCCPrefix                 = "lvms-"

	PriorityClassNameUserCritical    = "openshift-user-critical"
	PriorityClassNameClusterCritical = "system-cluster-critical"

	DeleteProtectionFinalizer = "delete-protection.lvm.openshift.io"
)
View Source
const (
	// DefaultMinimumAllocationSizeBlock is the default minimum size for a block volume.
	// Derived from the usual physical extent size of 4Mi * 2 (for accommodating metadata)
	DefaultMinimumAllocationSizeBlock = "8Mi"
	// DefaultMinimumAllocationSizeXFS is the default minimum size for a filesystem volume with XFS formatting.
	// Derived from the hard XFS minimum size of 300Mi that is enforced by the XFS filesystem.
	DefaultMinimumAllocationSizeXFS = "300Mi"
	// DefaultMinimumAllocationSizeExt4 is the default minimum size for a filesystem volume with ext4 formatting.
	// Derived from the usual 4096K blocks, 1024 inode default and journaling overhead,
	// Allows for more than 80% free space after formatting, anything lower significantly reduces this percentage.
	DefaultMinimumAllocationSizeExt4 = "32Mi"
)

these constants are derived from the TopoLVM recommendations but maintained separately to allow easy override. see https://github.com/topolvm/topolvm/blob/a967c95da14f80955332a00ebb258e319c6c39ac/cmd/topolvm-controller/app/root.go#L17-L28

Variables

This section is empty.

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