Documentation ¶
Index ¶
Constants ¶
View Source
const ( PodTypeKey = "app.kubernetes.io/name" PodTypeValue = "juicefs-mount" Finalizer = "juicefs.com/finalizer" )
Variables ¶
View Source
var ( NodeName = "" Namespace = "" PodName = "" PodServiceAccountName = "" MountImage = "" MountLabels = "" CSINodePod = corev1.Pod{} MountPointPath = "/var/lib/juicefs/volume" JFSConfigPath = "/var/lib/juicefs/config" JFSMountPriorityName = "system-node-critical" PodMountBase = "/jfs" MountBase = "/var/lib/jfs" FsType = "juicefs" CliPath = "/usr/bin/juicefs" CeCliPath = "/usr/local/bin/juicefs" CeMountPath = "/bin/mount.juicefs" JfsMountPath = "/sbin/mount.juicefs" )
View Source
var JLock = sync.RWMutex{}
Functions ¶
This section is empty.
Types ¶
type JfsSetting ¶
type JfsSetting struct { IsCe bool UsePod bool Name string `json:"name"` MetaUrl string `json:"metaurl"` Source string `json:"source"` Storage string `json:"storage"` Configs map[string]string `json:"configs"` Envs map[string]string `json:"envs"` MountPodCpuLimit string `json:"mount_pod_cpu_limit"` MountPodMemLimit string `json:"mount_pod_mem_limit"` MountPodCpuRequest string `json:"mount_pod_cpu_request"` MountPodMemRequest string `json:"mount_pod_mem_request"` MountPodLabels map[string]string `json:"mount_pod_labels"` MountPodAnnotations map[string]string `json:"mount_pod_annotations"` MountPodServiceAccount string `json:"mount_pod_service_account"` }
func ParseSetting ¶
func ParseSetting(secrets, volCtx map[string]string, usePod bool) (*JfsSetting, error)
Click to show internal directories.
Click to hide internal directories.