From 6d9fdab1450a4a3a6696df53177d1644b3046d2c Mon Sep 17 00:00:00 2001 From: mooncake Date: Sun, 7 Oct 2018 10:11:54 +0800 Subject: [PATCH] Fix typos issues Signed-off-by: mooncake --- docs/apireference/build/scroll.js | 2 +- pkg/apis/kops/cluster.go | 2 +- pkg/apis/kops/instancegroup.go | 2 +- pkg/systemd/unit_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/apireference/build/scroll.js b/docs/apireference/build/scroll.js index 67fee8729e449..5a1ff5ed5e98f 100644 --- a/docs/apireference/build/scroll.js +++ b/docs/apireference/build/scroll.js @@ -65,7 +65,7 @@ $(document).ready(function() { currL1Nav = getNavNode(activeSection.token); currL1Nav.show('fast'); } - // If active active is not the same as previous, hide previous L1Nav and show current L1Nav; set previous to current + // If active is not the same as previous, hide previous L1Nav and show current L1Nav; set previous to current else if (activeSection.token !== prevSectionToken) { prevL1Nav = getNavNode(prevSectionToken); currL1Nav = getNavNode(activeSection.token); diff --git a/pkg/apis/kops/cluster.go b/pkg/apis/kops/cluster.go index 0bc34d11f0d01..53e6334172bd3 100644 --- a/pkg/apis/kops/cluster.go +++ b/pkg/apis/kops/cluster.go @@ -325,7 +325,7 @@ type LoadBalancerAccessSpec struct { AdditionalSecurityGroups []string `json:"additionalSecurityGroups,omitempty"` // UseForInternalApi indicates wether the LB should be used by the kubelet UseForInternalApi bool `json:"useForInternalApi,omitempty"` - // SSLCertificate allows you to specify the ACM cert to be used the the LB + // SSLCertificate allows you to specify the ACM cert to be used the LB SSLCertificate string `json:"sslCertificate,omitempty"` } diff --git a/pkg/apis/kops/instancegroup.go b/pkg/apis/kops/instancegroup.go index bdbfc47d8422b..52274bf224c03 100644 --- a/pkg/apis/kops/instancegroup.go +++ b/pkg/apis/kops/instancegroup.go @@ -71,7 +71,7 @@ var AllInstanceGroupRoles = []InstanceGroupRole{ type InstanceGroupSpec struct { // Type determines the role of instances in this group: masters or nodes Role InstanceGroupRole `json:"role,omitempty"` - // Image is the instance instance (ami etc) we should use + // Image is the instance (ami etc) we should use Image string `json:"image,omitempty"` // MinSize is the minimum size of the pool MinSize *int32 `json:"minSize,omitempty"` diff --git a/pkg/systemd/unit_test.go b/pkg/systemd/unit_test.go index f11e653c6c97f..914eceb2d9db3 100644 --- a/pkg/systemd/unit_test.go +++ b/pkg/systemd/unit_test.go @@ -48,7 +48,7 @@ func TestUnitFileExtensionValid(t *testing.T) { }) } - // Add two testcases for no extension and and invalid extension. + // Add two testcases for no extension and invalid extension. testcases = append(testcases, testCase{ "invalid extension: (no extension)", "my-unit",