From 262822e2f604c4bf2df0403cbde9263083f23802 Mon Sep 17 00:00:00 2001 From: windayski Date: Fri, 30 Oct 2020 03:28:57 +0000 Subject: [PATCH] fix typos --- controller/controller.go | 2 +- controller/controller_test.go | 2 +- endpoint/endpoint.go | 2 +- provider/coredns/coredns.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/controller.go b/controller/controller.go index f9355875e..62b4c0888 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -103,7 +103,7 @@ func init() { // * Ask the DNS provider for current list of endpoints. // * Ask the Source for the desired list of endpoints. // * Take both lists and calculate a Plan to move current towards desired state. -// * Tell the DNS provider to apply the changes calucated by the Plan. +// * Tell the DNS provider to apply the changes calculated by the Plan. type Controller struct { Source source.Source Registry registry.Registry diff --git a/controller/controller_test.go b/controller/controller_test.go index 22c2b4b15..1da9d0f12 100644 --- a/controller/controller_test.go +++ b/controller/controller_test.go @@ -45,7 +45,7 @@ func (p *mockProvider) Records(ctx context.Context) ([]*endpoint.Endpoint, error return p.RecordsStore, nil } -// ApplyChanges validates that the passed in changes satisfy the assumtions. +// ApplyChanges validates that the passed in changes satisfy the assumptions. func (p *mockProvider) ApplyChanges(ctx context.Context, changes *plan.Changes) error { if len(changes.Create) != len(p.ExpectChanges.Create) { return errors.New("number of created records is wrong") diff --git a/endpoint/endpoint.go b/endpoint/endpoint.go index 5f5ef1488..bb082e2a5 100644 --- a/endpoint/endpoint.go +++ b/endpoint/endpoint.go @@ -87,7 +87,7 @@ func (t Targets) Same(o Targets) bool { return true } -// IsLess should fulfill the requirement to compare two targets and chosse the 'lesser' one. +// IsLess should fulfill the requirement to compare two targets and choose the 'lesser' one. // In the past target was a simple string so simple string comparison could be used. Now we define 'less' // as either being the shorter list of targets or where the first entry is less. // FIXME We really need to define under which circumstances a list Targets is considered 'less' diff --git a/provider/coredns/coredns.go b/provider/coredns/coredns.go index 8c23f5a6b..5dceaefa3 100644 --- a/provider/coredns/coredns.go +++ b/provider/coredns/coredns.go @@ -158,7 +158,7 @@ func (c etcdClient) DeleteService(key string) error { return err } -// loads TLS artifacts and builds tls.Clonfig object +// loads TLS artifacts and builds tls.Config object func newTLSConfig(certPath, keyPath, caPath, serverName string, insecure bool) (*tls.Config, error) { if certPath != "" && keyPath == "" || certPath == "" && keyPath != "" { return nil, errors.New("either both cert and key or none must be provided")