Commit Graph

11 Commits

Author SHA1 Message Date
Abdulaziz Elsheikh b3436837f2
Consul name resolution in-memory cache (#3121)
Signed-off-by: Abdulaziz Elsheikh <abdulaziz.elsheikh@gmail.com>
Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
Co-authored-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>
2023-10-13 08:52:54 -07:00
Alessandro (Ale) Segala d067c13350
Update some dependencies (#2996)
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <github@bernd.dev>
Co-authored-by: Bernd Verst <github@bernd.dev>
2023-07-18 23:10:53 +00:00
Alessandro (Ale) Segala e6c67356cd
Updated to Go 1.18 (#1697)
* Updated to Go 1.18

Signed-off-by: Alessandro (Ale) Segala <43508+ItalyPaleAle@users.noreply.github.com>

* Added go.work file
With Go 1.18, this allows gopls (the Go language server used for example in VS Code) to work inside test apps too.
See: https://go.dev/doc/tutorial/workspaces

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* Removed go.work

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

* 💄

Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>

Co-authored-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-05-06 13:44:45 -07:00
Wang Bing db99b43068
Use revive instead of golint (#1685)
Signed-off-by: pigletfly <wangbing.adam@gmail.com>

Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2022-05-06 12:55:17 -07:00
Bernd Verst f06254f8f4 Update Consul API to v1.11.0
Signed-off-by: Bernd Verst <4535280+berndverst@users.noreply.github.com>
2022-03-14 13:36:59 -07:00
Dmitry Shmulevich c7adb917f3
update license to Apache v2.0 (#1406) 2022-01-04 19:53:31 -08: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 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
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