mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 02:33:34 +00:00
cephfs: support omap data store in radosnamespace via cli argument
Signed-off-by: Andreas <zerotens@users.noreply.github.com>
This commit is contained in:
@ -110,6 +110,11 @@ func (fs *Driver) Run(conf *util.Config) {
|
||||
CSIInstanceID = conf.InstanceID
|
||||
}
|
||||
|
||||
// Use passed in radosNamespace, if provided for storing CSI specific objects and keys.
|
||||
if conf.RadosNamespaceCephFS != "" {
|
||||
fsutil.RadosNamespace = conf.RadosNamespaceCephFS
|
||||
}
|
||||
|
||||
if conf.IsNodeServer && k8s.RunsOnKubernetes() {
|
||||
nodeLabels, err = k8s.GetNodeLabels(conf.NodeID)
|
||||
if err != nil {
|
||||
|
@ -19,7 +19,5 @@ package util
|
||||
// VolumeID string representation.
|
||||
type VolumeID string
|
||||
|
||||
const (
|
||||
// RadosNamespace to store CSI specific objects and keys.
|
||||
RadosNamespace = "csi"
|
||||
)
|
||||
// RadosNamespace to store CSI specific objects and keys.
|
||||
var RadosNamespace = "csi"
|
||||
|
@ -142,9 +142,9 @@ type Config struct {
|
||||
SkipForceFlatten bool
|
||||
|
||||
// cephfs related flags
|
||||
ForceKernelCephFS bool // force to use the ceph kernel client even if the kernel is < 4.17
|
||||
|
||||
SetMetadata bool // set metadata on the volume
|
||||
ForceKernelCephFS bool // force to use the ceph kernel client even if the kernel is < 4.17
|
||||
RadosNamespaceCephFS string // RadosNamespace used to store CSI specific objects and keys
|
||||
SetMetadata bool // set metadata on the volume
|
||||
|
||||
// Read affinity related options
|
||||
EnableReadAffinity bool // enable OSD read affinity.
|
||||
|
Reference in New Issue
Block a user