From b35985b4e22578e58317d8aa4447d9da6b0bfcd5 Mon Sep 17 00:00:00 2001 From: mooncake Date: Sun, 11 Nov 2018 01:19:18 +0800 Subject: [PATCH] Cleanup duplicated words Signed-off-by: mooncake --- pkg/doc.go | 2 +- pkg/envtest/server.go | 4 ++-- pkg/webhook/internal/cert/provisioner.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/doc.go b/pkg/doc.go index 148b992fe3..5792a4e6fb 100644 --- a/pkg/doc.go +++ b/pkg/doc.go @@ -170,7 +170,7 @@ Owning ReplicaSet Namespace and Name. Watching and EventHandling Controllers may Watch multiple Kinds of objects (e.g. Pods, ReplicaSets and Deployments), but they Reconciler -only a single Type. When one Type of object must be be updated in response to changes in another Type of object, +only a single Type. When one Type of object must be updated in response to changes in another Type of object, an EnqueueRequestFromMapFunc may be used to map events from one type to another. e.g. Respond to a cluster resize event (add / delete Node) by re-reconciling all instances of some API. diff --git a/pkg/envtest/server.go b/pkg/envtest/server.go index cd9c50a064..6756dae545 100644 --- a/pkg/envtest/server.go +++ b/pkg/envtest/server.go @@ -83,12 +83,12 @@ type Environment struct { // This is useful in cases that need aggregated API servers and the like. UseExistingCluster bool - // ControlPlaneStartTimeout is the the maximum duration each controlplane component + // ControlPlaneStartTimeout is the maximum duration each controlplane component // may take to start. It defaults to the KUBEBUILDER_CONTROLPLANE_START_TIMEOUT // environment variable or 20 seconds if unspecified ControlPlaneStartTimeout time.Duration - // ControlPlaneStopTimeout is the the maximum duration each controlplane component + // ControlPlaneStopTimeout is the maximum duration each controlplane component // may take to stop. It defaults to the KUBEBUILDER_CONTROLPLANE_STOP_TIMEOUT // environment variable or 20 seconds if unspecified ControlPlaneStopTimeout time.Duration diff --git a/pkg/webhook/internal/cert/provisioner.go b/pkg/webhook/internal/cert/provisioner.go index 01508c3fe5..d7463f78dd 100644 --- a/pkg/webhook/internal/cert/provisioner.go +++ b/pkg/webhook/internal/cert/provisioner.go @@ -48,7 +48,7 @@ type Options struct { Objects []runtime.Object } -// Provision provisions certificates for for the WebhookClientConfig. +// Provision provisions certificates for the WebhookClientConfig. // It ensures the cert and CA are valid and not expiring. // It updates the CABundle in the webhookClientConfig if necessary. // It inject the WebhookClientConfig into options.Objects.