Commit Graph

17 Commits

Author SHA1 Message Date
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08:00
Joni Collinge e457b307b6
Improve mDNS nameresolver code quality (#1179)
* remove benchmark

* explicitly use zero value

* initialize slice to 0 len

* fix loop closure

* use basic int for counter

* reduce diff

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Dapr Bot <56698301+dapr-bot@users.noreply.github.com>
2021-10-06 12:16:40 -07:00
Long Dai 988fed05ab
ci: standard linter config (#1102)
* ci: standard linter config

Signed-off-by: Long <long.dai@intel.com>

* Update utils.go

* fix pulsar issue

Signed-off-by: Long <long.dai@intel.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-09-21 15:21:59 -07:00
Phil Kedy 8e6b36ecdf
Importing the retry and config packages from kit instead of internal (#940)
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-22 09:38:55 -07:00
Phil Kedy a28587ed98
Resolving gofumpt issues (#932) 2021-06-09 15:18:50 -07:00
Abdulaziz Elsheikh 92846ab691
nr_consul_typo fixed malformed yaml (#907)
Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2021-06-04 12:27:36 -07:00
Long Dai 4ee732e0bd
ci: enable gofumt linter (#887)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-27 22:21:24 -07:00
Phil Kedy 1b30e75e60
Configurable retry (#854)
* no message

* Switching over usages of retry to the new package and making use of the DecodeConfig function

* Added decoding configuration using settings with a specific prefix

* Linter fixes

* Fixing linter error

* time.Sleep is the enemy

* Fix typo in comment

* Moving config to a pointer parameter so that the component can pass in the config with default values that make sense for that component.

* Renamed config struct

* Fix comment

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-05-06 09:43:57 -07:00
meijin 8ea1f1bb44
fix calc ipv6num use ipv4 slice (#838)
Co-authored-by: Charlie Stanley <charlie.stanley@microsoft.com>
2021-05-04 18:25:19 -07:00
fox 62dbc782cb
add option to customize cluster domain of kubernetes nameresolution (#793)
* add option to customize cluster domain of kubernetes nameresolution

* add clusterDomain config to k8s name resolution

* Adding normalization of kubernetes nr config when read from YAML

* Adding copyright headers to new files

Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-29 11:01:14 -07:00
Abdulaziz Elsheikh 1d5ab57db6
Consul nameresolution component (#750)
* nr_consul component initial commit

* nr_consul added missing config prop in metadata

* nr_consul additional tests, improvement around queryOptions defaults

* nr_consul added documentation

* nr_consul fixes to satisfy linting rules

* nr_consul removed default behaviour around tags, readme cleanup

* nr_consul fix on abstraction

* nr_consul fix service resolution

* nr_consul changed rand to fix lint issue

* nr_consul  fix typo

* nr_consul refactor error logs, fix panic risk, validate port int

* nr_consul removed need for testify/mock dependency - credit to @pkedy

* nr_consul refactored di approach and fix lint issues

* nr_consul updated readme

* nr_consul added mapping layer between custom and api types for configuration, renamed clientConfig to client

* nr_consul remove trailing white space

* nr_consul updated readme and cleanup

* nr_consul changed logger import inline with #807

* nr_consul changed logger import inline with #807

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
Co-authored-by: Phil Kedy <phil.kedy@gmail.com>
2021-04-21 13:26:29 -04:00
abogdanov37 05ee14be5e
Add DNS name resolver. Add unit tests. (#743)
* Add DNS name resolver. Add unit tests.

* Fix code format

* Add namespace support for DNS name resolver. Fix comments

* Update dns.go

* Update dns_test.go

* Update dns.go

* Update dns_test.go

Co-authored-by: Andrey Bogdanov <andrey.bogdanov@zyfra.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Aaron Crawfis <Aaron.Crawfis@microsoft.com>
2021-04-20 08:38:11 -07:00
Phil Kedy 688df9bda4
Removed dependency on dapr/dapr in favor of dapr/kit. Fixed go mod dependencies afterwards. Go 1.16 in go.mod. Removed accidental log dependency. (#807) 2021-04-19 12:06:10 -07:00
Yaron Schneider 3ef025c604
change headers (#679) 2021-02-09 18:57:55 -08:00
Joni Collinge e881e4ba28
mDNS round robin (#540)
* WIP mdns rr

* add callback mechanism

* add initial testing

* fix lint

* add debug logs

* register as unique instance

* update comments

* add continue when no address

* fix lint

* add test for empty address list next

* refresh on new app id in the background

* fix lint

* update comment

* add way to control mDNS instance ID

* update test case

* add guard for empty refreshes

* update log message to include app id

* update log message to include app id

* update comment

Co-authored-by: Yaron Schneider <yaronsc@microsoft.com>
2020-12-14 12:50:21 -08:00
halspang f647d9eedb
Upgrade golang lint to 1.31 (#490)
Upgrade golang lint to 1.31.0

https://github.com/dapr/components-contrib/issues/439
2020-10-12 12:54:15 -07:00
Young Bu Park a6a0e3e3bc
rename servicediscovery to nameresolution pkg and refactor it (#368)
* rename servicediscovery to nameresolution pkg

* fix linter

* add comment

* add more logs
2020-06-24 11:23:15 -07:00