mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-01-17 10:19:30 +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:
parent
b185bfde4d
commit
89ccbc8fba
@ -8,5 +8,6 @@
|
|||||||
- deploy: podSecurityContexts can be configured for ceph-csi-rbd chart in [PR](https://github.com/ceph/ceph-csi/pull/4668)
|
- deploy: podSecurityContexts can be configured for ceph-csi-rbd chart in [PR](https://github.com/ceph/ceph-csi/pull/4668)
|
||||||
- deploy: instanceID can be optionally configured for ceph-csi charts in [PR](https://github.com/ceph/ceph-csi/pull/4666)
|
- deploy: instanceID can be optionally configured for ceph-csi charts in [PR](https://github.com/ceph/ceph-csi/pull/4666)
|
||||||
- rbd: add support for flattenMode option for replication in [PR](https://github.com/ceph/ceph-csi/pull/4678)
|
- rbd: add support for flattenMode option for replication in [PR](https://github.com/ceph/ceph-csi/pull/4678)
|
||||||
|
- cephfs: support omap data store in radosnamespace via cli argument in [PR](https://github.com/ceph/ceph-csi/pull/4652)
|
||||||
|
|
||||||
## NOTE
|
## NOTE
|
||||||
|
@ -100,6 +100,11 @@ func init() {
|
|||||||
"kernelmountoptions",
|
"kernelmountoptions",
|
||||||
"",
|
"",
|
||||||
"Comma separated string of mount options accepted by cephfs kernel mounter")
|
"Comma separated string of mount options accepted by cephfs kernel mounter")
|
||||||
|
flag.StringVar(
|
||||||
|
&conf.RadosNamespaceCephFS,
|
||||||
|
"radosnamespacecephfs",
|
||||||
|
"",
|
||||||
|
"CephFS RadosNamespace used to store CSI specific objects and keys.")
|
||||||
flag.StringVar(
|
flag.StringVar(
|
||||||
&conf.FuseMountOptions,
|
&conf.FuseMountOptions,
|
||||||
"fusemountoptions",
|
"fusemountoptions",
|
||||||
|
@ -49,6 +49,7 @@ make image-cephcsi
|
|||||||
| `--domainlabels` | _empty_ | Kubernetes node labels to use as CSI domain labels for topology aware provisioning, should be a comma separated value (ex:= "failure-domain/region,failure-domain/zone") |
|
| `--domainlabels` | _empty_ | Kubernetes node labels to use as CSI domain labels for topology aware provisioning, should be a comma separated value (ex:= "failure-domain/region,failure-domain/zone") |
|
||||||
| `--enable-read-affinity` | `false` | enable read affinity |
|
| `--enable-read-affinity` | `false` | enable read affinity |
|
||||||
| `--crush-location-labels`| _empty_ | Kubernetes node labels that determine the CRUSH location the node belongs to, separated by ','.<br>`Note: These labels will be replaced if crush location labels are defined in the ceph-csi-config ConfigMap for the specific cluster.` |
|
| `--crush-location-labels`| _empty_ | Kubernetes node labels that determine the CRUSH location the node belongs to, separated by ','.<br>`Note: These labels will be replaced if crush location labels are defined in the ceph-csi-config ConfigMap for the specific cluster.` |
|
||||||
|
| `--radosnamespacecephfs`| _empty_ | CephFS RadosNamespace used to store CSI specific objects and keys. |
|
||||||
|
|
||||||
**NOTE:** The parameter `-forcecephkernelclient` enables the Kernel
|
**NOTE:** The parameter `-forcecephkernelclient` enables the Kernel
|
||||||
CephFS mounter on kernels < 4.17.
|
CephFS mounter on kernels < 4.17.
|
||||||
|
@ -110,6 +110,11 @@ func (fs *Driver) Run(conf *util.Config) {
|
|||||||
CSIInstanceID = conf.InstanceID
|
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() {
|
if conf.IsNodeServer && k8s.RunsOnKubernetes() {
|
||||||
nodeLabels, err = k8s.GetNodeLabels(conf.NodeID)
|
nodeLabels, err = k8s.GetNodeLabels(conf.NodeID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -19,7 +19,5 @@ package util
|
|||||||
// VolumeID string representation.
|
// VolumeID string representation.
|
||||||
type VolumeID string
|
type VolumeID string
|
||||||
|
|
||||||
const (
|
// RadosNamespace to store CSI specific objects and keys.
|
||||||
// RadosNamespace to store CSI specific objects and keys.
|
var RadosNamespace = "csi"
|
||||||
RadosNamespace = "csi"
|
|
||||||
)
|
|
||||||
|
@ -142,9 +142,9 @@ type Config struct {
|
|||||||
SkipForceFlatten bool
|
SkipForceFlatten bool
|
||||||
|
|
||||||
// cephfs related flags
|
// cephfs related flags
|
||||||
ForceKernelCephFS bool // force to use the ceph kernel client even if the kernel is < 4.17
|
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
|
SetMetadata bool // set metadata on the volume
|
||||||
|
|
||||||
// Read affinity related options
|
// Read affinity related options
|
||||||
EnableReadAffinity bool // enable OSD read affinity.
|
EnableReadAffinity bool // enable OSD read affinity.
|
||||||
|
Loading…
Reference in New Issue
Block a user