From 3d672a726a47bef3d4a2ac781ba04e87c489009f Mon Sep 17 00:00:00 2001 From: yingshanghuangqiao Date: Mon, 22 Jul 2024 16:12:57 +0800 Subject: [PATCH] core: fix some comments Signed-off-by: yingshanghuangqiao --- Documentation/CRDs/specification.md | 2 +- pkg/apis/ceph.rook.io/v1/types.go | 2 +- pkg/operator/ceph/object/policy.go | 2 +- pkg/util/sys/device.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/CRDs/specification.md b/Documentation/CRDs/specification.md index 03e733c98..944a50dd8 100644 --- a/Documentation/CRDs/specification.md +++ b/Documentation/CRDs/specification.md @@ -10255,7 +10255,7 @@ the triple using the matching operator

(Optional) -

TopologySpreadConstraint specifies how to spread matching pods among the given topology

+

TopologySpreadConstraints specifies how to spread matching pods among the given topology

diff --git a/pkg/apis/ceph.rook.io/v1/types.go b/pkg/apis/ceph.rook.io/v1/types.go index 624e2020c..207f9e65a 100755 --- a/pkg/apis/ceph.rook.io/v1/types.go +++ b/pkg/apis/ceph.rook.io/v1/types.go @@ -2945,7 +2945,7 @@ type Placement struct { // the triple using the matching operator // +optional Tolerations []v1.Toleration `json:"tolerations,omitempty"` - // TopologySpreadConstraint specifies how to spread matching pods among the given topology + // TopologySpreadConstraints specifies how to spread matching pods among the given topology // +optional TopologySpreadConstraints []v1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` } diff --git a/pkg/operator/ceph/object/policy.go b/pkg/operator/ceph/object/policy.go index f1105928f..20b9b81dd 100644 --- a/pkg/operator/ceph/object/policy.go +++ b/pkg/operator/ceph/object/policy.go @@ -127,7 +127,7 @@ type PolicyStatement struct { Sid string `json:"Sid"` // Effect determines whether the Action(s) are 'Allow'ed or 'Deny'ed. Effect effect `json:"Effect"` - // Principle is/are the Ceph user names affected by this PolicyStatement + // Principal is/are the Ceph user names affected by this PolicyStatement // Must be in the format of 'arn:aws:iam:::user/' Principal map[string][]string `json:"Principal"` // Action is a list of s3:* actions diff --git a/pkg/util/sys/device.go b/pkg/util/sys/device.go index 06931a4f3..4a7f93f1b 100644 --- a/pkg/util/sys/device.go +++ b/pkg/util/sys/device.go @@ -93,7 +93,7 @@ type LocalDisk struct { Type string `json:"type"` // Rotational is the boolean whether the device is rotational: true for hdd, false for ssd and nvme Rotational bool `json:"rotational"` - // ReadOnly is the boolean whether the device is readonly + // Readonly is the boolean whether the device is readonly Readonly bool `json:"readOnly"` // Partitions is a partition slice Partitions []Partition