From 59331752b8a65c7a2af0ee2ef80a5546a1b7f28a Mon Sep 17 00:00:00 2001 From: runzhliu Date: Sat, 2 Sep 2023 15:15:08 +0800 Subject: [PATCH] doc: Update README.md and fix typo Unified hump stylek Signed-off-by: runzhliu --- charts/ceph-csi-cephfs/README.md | 4 ++-- cmd/cephcsi.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/ceph-csi-cephfs/README.md b/charts/ceph-csi-cephfs/README.md index 6175941cc04..7ee87cfcc8f 100644 --- a/charts/ceph-csi-cephfs/README.md +++ b/charts/ceph-csi-cephfs/README.md @@ -120,7 +120,7 @@ charts and their default values. | `sidecarLogLevel` | Set logging level for csi sidecar containers. Supported values from 0 to 5. 0 for general useful logs, 5 for trace level verbosity. | `1` | | `nodeplugin.name` | Specifies the nodeplugin name | `nodeplugin` | | `nodeplugin.updateStrategy` | Specifies the update Strategy. If you are using ceph-fuse client set this value to OnDelete | `RollingUpdate` | -| `nodeplugin.priorityClassName` | Set user created priorityclassName for csi plugin pods. default is system-node-critical which is highest priority | `system-node-critical` | +| `nodeplugin.priorityClassName` | Set user created priorityClassName for csi plugin pods. default is system-node-critical which is highest priority | `system-node-critical` | | `nodeplugin.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` | | `nodeplugin.profiling.enabled` | Specifies whether profiling should be enabled | `false` | | `nodeplugin.registrar.image.repository` | Node-Registrar image repository URL | `registry.k8s.io/sig-storage/csi-node-driver-registrar` | @@ -140,7 +140,7 @@ charts and their default values. | `provisioner.timeout` | GRPC timeout for waiting for creation or deletion of a volume | `60s` | | `provisioner.clustername` | Cluster name to set on the subvolume | "" | | `provisioner.setmetadata` | Set metadata on volume | `true` | -| `provisioner.priorityClassName` | Set user created priorityclassName for csi provisioner pods. Default is `system-cluster-critical` which is less priority than `system-node-critical` | `system-cluster-critical` | +| `provisioner.priorityClassName` | Set user created priorityClassName for csi provisioner pods. Default is `system-cluster-critical` which is less priority than `system-node-critical` | `system-cluster-critical` | | `provisioner.enableHostNetwork` | Specifies whether hostNetwork is enabled for provisioner pod. | `false` | | `provisioner.imagePullSecrets` | Specifies imagePullSecrets for containers | `[]` | | `provisioner.profiling.enabled` | Specifies whether profiling should be enabled | `false` | diff --git a/cmd/cephcsi.go b/cmd/cephcsi.go index 2c57fdd6a99..dac23d21e44 100644 --- a/cmd/cephcsi.go +++ b/cmd/cephcsi.go @@ -232,7 +232,7 @@ func main() { switch conf.Vtype { case rbdType: validateCloneDepthFlag(&conf) - validateMaxSnaphostFlag(&conf) + validateMaxSnapshotFlag(&conf) driver := rbddriver.NewDriver() driver.Run(&conf) @@ -304,7 +304,7 @@ func validateCloneDepthFlag(conf *util.Config) { } } -func validateMaxSnaphostFlag(conf *util.Config) { +func validateMaxSnapshotFlag(conf *util.Config) { // maximum number of snapshots on an image are 510 [1] and 16 images in // a parent/child chain [2],keeping snapshot limit to 500 to avoid issues. // [1] https://github.com/torvalds/linux/blob/master/drivers/block/rbd.c#L98