mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-27 08:40:23 +00:00
cleanup: use block comment for ClusterInfo example
Adjusted the mix of tabs and the spaces and also
used block comment for better readability.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit eb4bfb7326
)
This commit is contained in:
parent
f8a19c8cbb
commit
a901997542
@ -60,24 +60,22 @@ type ClusterInfo struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Expected JSON structure in the passed in config file is,
|
// Expected JSON structure in the passed in config file is,
|
||||||
// [
|
// nolint:godot // example json content should not contain unwanted dot.
|
||||||
// {
|
/*
|
||||||
// "clusterID": "<cluster-id>",
|
[{
|
||||||
// "rbd": {
|
"clusterID": "<cluster-id>",
|
||||||
// "radosNamespace": "<rados-namespace>"
|
"rbd": {
|
||||||
// },
|
"radosNamespace": "<rados-namespace>"
|
||||||
// "monitors":
|
},
|
||||||
// [
|
"monitors": [
|
||||||
// "<monitor-value>",
|
"<monitor-value>",
|
||||||
// "<monitor-value>",
|
"<monitor-value>"
|
||||||
// ...
|
],
|
||||||
// ],
|
"cephFS": {
|
||||||
// "cephFS": {
|
"subvolumeGroup": "<subvolumegroup for cephfs volumes>"
|
||||||
// "subvolumeGroup": "<subvolumegroup for cephfs volumes>"
|
}
|
||||||
// }
|
}]
|
||||||
// },
|
*/
|
||||||
// ...
|
|
||||||
// ].
|
|
||||||
func readClusterInfo(pathToConfig, clusterID string) (*ClusterInfo, error) {
|
func readClusterInfo(pathToConfig, clusterID string) (*ClusterInfo, error) {
|
||||||
var config []ClusterInfo
|
var config []ClusterInfo
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user