From bf4e43b736ad58342c9de8ae70e8d668ca5b17a5 Mon Sep 17 00:00:00 2001 From: Sebastian Sterk Date: Tue, 1 Feb 2022 23:59:39 +0100 Subject: [PATCH 1/4] simple grammar fix --- pkg/apis/coordination/validation/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/coordination/validation/validation.go b/pkg/apis/coordination/validation/validation.go index e3eedcf5a83..9d75871120f 100644 --- a/pkg/apis/coordination/validation/validation.go +++ b/pkg/apis/coordination/validation/validation.go @@ -46,7 +46,7 @@ func ValidateLeaseSpec(spec *coordination.LeaseSpec, fldPath *field.Path) field. } if spec.LeaseTransitions != nil && *spec.LeaseTransitions < 0 { fld := fldPath.Child("leaseTransitions") - allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must to greater or equal than 0")) + allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater or equal than 0")) } return allErrs } From 5e286470fa16c4d53aa24b76a4fe94edf7b7016c Mon Sep 17 00:00:00 2001 From: Sebastian Sterk Date: Wed, 2 Feb 2022 00:02:11 +0100 Subject: [PATCH 2/4] simple grammar fix --- staging/src/k8s.io/kubectl/pkg/cmd/config/view.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/config/view.go b/staging/src/k8s.io/kubectl/pkg/cmd/config/view.go index e906fe80689..6d4c245207e 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/config/view.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/config/view.go @@ -123,7 +123,7 @@ func (o *ViewOptions) Complete(cmd *cobra.Command, args []string) error { // Validate makes sure that provided values for command-line options are valid func (o ViewOptions) Validate() error { if !o.Merge.Value() && !o.ConfigAccess.IsExplicitFile() { - return errors.New("if merge==false a precise file must to specified") + return errors.New("if merge==false a precise file must be specified") } return nil From 8e9ea7b4818155893a26fb0ef8a498cf1149e826 Mon Sep 17 00:00:00 2001 From: Sebastian Sterk Date: Wed, 2 Feb 2022 00:04:35 +0100 Subject: [PATCH 3/4] simple grammar fix --- pkg/volume/csi/csi_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/csi/csi_client.go b/pkg/volume/csi/csi_client.go index 05e889697ea..8483ca651d2 100644 --- a/pkg/volume/csi/csi_client.go +++ b/pkg/volume/csi/csi_client.go @@ -137,7 +137,7 @@ type nodeV1ClientCreator func(addr csiAddr, metricsManager *MetricsManager) ( type nodeV1AccessModeMapper func(am api.PersistentVolumeAccessMode) csipbv1.VolumeCapability_AccessMode_Mode // newV1NodeClient creates a new NodeClient with the internally used gRPC -// connection set up. It also returns a closer which must to be called to close +// connection set up. It also returns a closer which must be called to close // the gRPC connection when the NodeClient is not used anymore. // This is the default implementation for the nodeV1ClientCreator, used in // newCsiDriverClient. From efdfaab30113ae39a449eae9acb309866688b4e6 Mon Sep 17 00:00:00 2001 From: Sebastian Sterk Date: Thu, 3 Feb 2022 18:25:43 +0100 Subject: [PATCH 4/4] Update pkg/apis/coordination/validation/validation.go Co-authored-by: Katrina Verey --- pkg/apis/coordination/validation/validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/coordination/validation/validation.go b/pkg/apis/coordination/validation/validation.go index 9d75871120f..4eae06265d0 100644 --- a/pkg/apis/coordination/validation/validation.go +++ b/pkg/apis/coordination/validation/validation.go @@ -46,7 +46,7 @@ func ValidateLeaseSpec(spec *coordination.LeaseSpec, fldPath *field.Path) field. } if spec.LeaseTransitions != nil && *spec.LeaseTransitions < 0 { fld := fldPath.Child("leaseTransitions") - allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater or equal than 0")) + allErrs = append(allErrs, field.Invalid(fld, spec.LeaseTransitions, "must be greater than or equal to 0")) } return allErrs }