Skip to content

Commit

Permalink
doc: Add rados namespace to option to csi-configs
Browse files Browse the repository at this point in the history
A minimal documentation on how to use a rados namespace with rbd.

Signed-off-by: Mehdy Khoshnoody <[email protected]>
  • Loading branch information
mehdy authored and humblec committed Aug 12, 2020
1 parent fc5eadf commit 3081eab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions examples/csi-config-map-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ kind: ConfigMap
# each such cluster in use.
# To add more clusters or edit MON addresses in an existing configmap, use
# the `kubectl replace` command.
# The <rados-namespace> is optional and represents a radosNamespace in the pool.
# If any given all the of the rbd images, snapshots and other metadata
# will be store within the radosNamespace.
# NOTE: The given radosNamespace must already exists in the pool.
# NOTE: Make sure you don't add radosNamespace option to a currently in use
# configuration as it will cause issues.
# The field "cephFS.subvolumeGroup" is optional and defaults to "csi".
# NOTE: Changes to the configmap is automatically updated in the running pods,
# thus restarting existing pods using the configmap is NOT required on edits
Expand All @@ -21,6 +27,7 @@ data:
[
{
"clusterID": "<cluster-id>",
"radosNamespace": "<rados-namespace>",
"monitors": [
"<MONValue1>",
"<MONValue2>",
Expand Down
4 changes: 2 additions & 2 deletions internal/util/csiconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const (
type ClusterInfo struct {
// ClusterID is used for unique identification
ClusterID string `json:"clusterID"`
// Namespace is the namespace in the pool
// RadosNamespace is a rados namespace in the pool
RadosNamespace string `json:"radosNamespace"`
// Monitors is monitor list for corresponding cluster ID
Monitors []string `json:"monitors"`
Expand All @@ -52,7 +52,7 @@ type ClusterInfo struct {
// [
// {
// "clusterID": "<cluster-id>",
// "namespace": "<namespace>",
// "radosNamespace": "<rados-namespace>",
// "monitors":
// [
// "<monitor-value>",
Expand Down

0 comments on commit 3081eab

Please sign in to comment.