From 3580f40c1c83f74fae2c3f513b510175ad8b9cd6 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 6 Dec 2021 20:01:57 +0530 Subject: [PATCH 1/2] ci: fix typos flagged by ci This commit fixes typos flagged by the codespell github action. Signed-off-by: N Balachandran --- api/v1alpha1/lvmcluster_types.go | 2 +- doc/design/operator.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1alpha1/lvmcluster_types.go b/api/v1alpha1/lvmcluster_types.go index f4629b519..dfa8ab00b 100644 --- a/api/v1alpha1/lvmcluster_types.go +++ b/api/v1alpha1/lvmcluster_types.go @@ -51,7 +51,7 @@ type DeviceClass struct { // Config *DeviceClassConfig `json:"config,omitempty"` } -// DeviceSelector allows specifiying a list of criteria that have to match before a device is assigned +// DeviceSelector specifies the list of criteria that have to match before a device is assigned type DeviceSelector struct { // MinSize is the minimum size of the device which needs to be included. Defaults to `1Gi` if empty // +optional diff --git a/doc/design/operator.md b/doc/design/operator.md index 755907b6f..0e8a8a4a5 100644 --- a/doc/design/operator.md +++ b/doc/design/operator.md @@ -17,7 +17,7 @@ Each unit of reconciliation should implement the reconcileUnit interface. -This will be run by the controller, and errors and success will be propogated to the status and events. +This will be run by the controller, and errors and success will be propagated to the status and events. This interface is defined in [lvmcluster_controller.go](../../controllers/lvmcluster_controller.go) ``` @@ -38,4 +38,4 @@ type resourceManager interface { // status that changes only when the operands change. updateStatus(*LVMClusterReconciler, context.Context, lvmv1alpha1.LVMCluster) error } -``` \ No newline at end of file +``` From 21dc7e339f0bab9f67a3d9197e5891c2c930081b Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Mon, 6 Dec 2021 20:06:04 +0530 Subject: [PATCH 2/2] ci: fix yamllint errors This fixes the errors flagged by the yamllint github action. Signed-off-by: N Balachandran --- config/samples/lvm_v1alpha1_lvmcluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/samples/lvm_v1alpha1_lvmcluster.yaml b/config/samples/lvm_v1alpha1_lvmcluster.yaml index b81193c32..6cfc4bbc8 100644 --- a/config/samples/lvm_v1alpha1_lvmcluster.yaml +++ b/config/samples/lvm_v1alpha1_lvmcluster.yaml @@ -2,7 +2,7 @@ apiVersion: lvm.topolvm.io/v1alpha1 kind: LVMCluster metadata: name: lvmcluster-sample -spec: +spec: deviceClasses: - name: vg1 - deviceSelector: