common

package
v0.26.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// DriverName to be registered
	CSINodeLabelKey        = "app"
	CSINodeLabelValue      = "juicefs-csi-node"
	PodTypeKey             = "app.kubernetes.io/name"
	PodTypeValue           = "juicefs-mount"
	PodUniqueIdLabelKey    = "volume-id"
	PodJuiceHashLabelKey   = "juicefs-hash"
	PodUpgradeUUIDLabelKey = "juicefs-upgrade-uuid"
	Finalizer              = "juicefs.com/finalizer"
	JuiceFSUUID            = "juicefs-uuid"
	UniqueId               = "juicefs-uniqueid"
	CleanCache             = "juicefs-clean-cache"
	MountContainerName     = "jfs-mount"
	JobTypeValue           = "juicefs-job"
	ConfigTypeValue        = "juicefs-conf"
	JfsInsideContainer     = "JFS_INSIDE_CONTAINER"

	// CSI Secret
	ProvisionerSecretName           = "csi.storage.k8s.io/provisioner-secret-name"
	ProvisionerSecretNamespace      = "csi.storage.k8s.io/provisioner-secret-namespace"
	PublishSecretName               = "csi.storage.k8s.io/node-publish-secret-name"
	PublishSecretNamespace          = "csi.storage.k8s.io/node-publish-secret-namespace"
	ControllerExpandSecretName      = "csi.storage.k8s.io/controller-expand-secret-name"
	ControllerExpandSecretNamespace = "csi.storage.k8s.io/controller-expand-secret-namespace"

	// webhook
	WebhookName = "juicefs-admission-webhook"
	True        = "true"
	False       = "false"

	InjectSidecarDone    = "done" + injectSidecar
	InjectSidecarDisable = "disable" + injectSidecar

	// config in pv
	MountPodCpuLimitKey    = "juicefs/mount-cpu-limit"
	MountPodMemLimitKey    = "juicefs/mount-memory-limit"
	MountPodCpuRequestKey  = "juicefs/mount-cpu-request"
	MountPodMemRequestKey  = "juicefs/mount-memory-request"
	MountPodLabelKey       = "juicefs/mount-labels"
	MountPodAnnotationKey  = "juicefs/mount-annotations"
	MountPodServiceAccount = "juicefs/mount-service-account"
	MountPodImageKey       = "juicefs/mount-image"
	DeleteDelay            = "juicefs/mount-delete-delay"
	CleanCacheKey          = "juicefs/clean-cache"
	CachePVC               = "juicefs/mount-cache-pvc"
	CacheEmptyDir          = "juicefs/mount-cache-emptydir"
	CacheInlineVolume      = "juicefs/mount-cache-inline-volume"
	MountPodHostPath       = "juicefs/host-path"

	// DeleteDelayTimeKey mount pod annotation
	DeleteDelayTimeKey = "juicefs-delete-delay"
	DeleteDelayAtKey   = "juicefs-delete-at"

	// default value
	DefaultMountPodCpuLimit   = "2000m"
	DefaultMountPodMemLimit   = "5Gi"
	DefaultMountPodCpuRequest = "1000m"
	DefaultMountPodMemRequest = "1Gi"

	// secret labels
	JuicefsSecretLabelKey = "juicefs/secret"

	PodInfoName      = "csi.storage.k8s.io/pod.name"
	PodInfoNamespace = "csi.storage.k8s.io/pod.namespace"

	// smooth upgrade
	JfsUpgradeProcess   = "juicefs-upgrade-process"
	JfsFuseFsPathInPod  = "/tmp"
	JfsFuseFsPathInHost = "/var/run/juicefs-csi"
	JfsCommEnv          = "JFS_SUPER_COMM"

	JfsJobKind    = "juicefs-job-kind"
	KindOfUpgrade = "juicefs-upgrade"

	JfsUpgradeJobName = "juicefs-job-name"
	JfsUpgradeConfig  = "juicefs-upgrade-config"
)

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