mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-05-04 22:26:11 +02:00
fix typos
This commit is contained in:
parent
c2b7a69f2e
commit
262822e2f6
@ -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
|
||||
|
||||
@ -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")
|
||||
|
||||
@ -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'
|
||||
|
||||
@ -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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user