87e1480077
config: add name to each config imp
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 16:18:17 +03:00
125646d89b
add Name func option
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-29 14:07:35 +03:00
c7bafecce3
add meter and tracer across all options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-22 23:32:33 +03:00
92e6fd036e
config: merge default not overwrite
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-21 02:20:06 +03:00
770e8425bd
config: move reflect stuff to util/reflect
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-01-19 01:40:34 +03:00
8feab7cc48
config: init before load
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-20 23:08:40 +03:00
aa6afdf440
config: fix tests
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-20 01:07:48 +03:00
b50855855b
config: export method to init new empty struct
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-20 00:15:29 +03:00
150e8ad698
config: improve and export helper func
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-19 23:22:05 +03:00
035a84e696
config: fix tests
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-18 03:50:52 +03:00
8c504bd029
handle before/after inside config implementations
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-18 03:37:18 +03:00
f6c0728a59
fix context usage across codebase
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-17 22:52:00 +03:00
06c3cd6637
config: fix default config loader
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-13 19:28:29 +03:00
92aec349c3
config: add missing codec error
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-13 13:26:44 +03:00
2dcd30b21c
add defaut config parser
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-13 13:17:38 +03:00
a7a3c679d1
config: load defaults
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-13 13:10:04 +03:00
a754ff7c0c
more lint fixes
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-09 12:10:25 +03:00
e08276c2e2
gofmt
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-08 00:41:14 +03:00
b7b28f6b9a
lint
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-08 00:38:37 +03:00
8fd745eab0
config: add logger to options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-07 19:27:08 +03:00
c6fd9c1c23
add context helpers
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-07 16:10:20 +03:00
5279c2aa0f
config package rework ( #9 )
...
* change config interface
* reuse codec
* allow to modify next config based on values in current config via BeforeLoad
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-12-04 02:28:45 +03:00
112f21006c
config: add default config
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-29 18:08:21 +03:00
67ab44593b
fix repocard issues ( #21 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 15:41:48 +03:00
8076e410a9
fix repocard issues ( #20 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 14:33:36 +03:00
0f4b1435d9
move implementations to external repos ( #17 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 13:44:41 +03:00
c4a303190a
lint fixes ( #14 )
...
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-21 14:53:21 +03:00
199ff66bd4
enable cache for build, closes #8 ( #12 )
...
* enable cache for build, closes #8
* goimports
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-20 15:23:41 +03:00
06136312bb
regen files with never protoc ( #6 )
...
* regen files with never protoc
* rewrite import path
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-19 17:47:17 +03:00
Z
dcf785677f
Fix: file-watcher bugs ( #1897 )
...
* Fix: file-watcher bugs
* Update watcher_linux.go
Co-authored-by: 杨铭哲 <yangmz@weipaitang.com>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-08-06 18:21:09 +01:00
Dominic Wong
eee91ed976
Check chan not closed before sending updates for memory loader ( #1894 )
...
* dont send on closed chan
2020-08-04 16:21:03 +01:00
ben-toogood
9813f98c8b
config: remove default config ( #1882 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-28 13:54:58 +01:00
Asim Aslam
563768b58a
v3 refactor ( #1868 )
...
* Move to v3
Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00
Asim Aslam
e082ac42a0
go fmt
2020-07-19 10:51:16 +01:00
Asim Aslam
0299517f0d
remove config readme
2020-07-14 21:55:05 +01:00
Asim Aslam
e1404a1100
remove secrets package
2020-07-14 21:53:43 +01:00
Asim Aslam
057d61063f
Move back command
2020-07-14 20:57:13 +01:00
Asim Aslam
0a79db498c
do not compare snapshot unless non nil ( #1830 )
2020-07-14 07:52:45 +01:00
ben-toogood
8fe4f1f2c3
config/cmd: don't fatally error if config can't be loaded ( #1825 )
...
* config/cmd: don't fatally error if config cannot be loaded
* config/cmd: fix log level typo
2020-07-13 15:08:53 +01:00
ben-toogood
2e04fcd718
config/cmd: don't fatally error if auth account cannot be generated ( #1824 )
2020-07-13 12:52:54 +01:00
ben-toogood
4e7621da18
config/cmd: standardise error handling ( #1816 )
...
* runtime/kubernetes: remove reference to runtime cells
* config/cmd: standardize error handling
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-12 07:22:08 +01:00
ben-toogood
09ec20fded
runtime: provide credentials to services ( #1817 )
...
* runtime: inject credentials into service
* util/auth: self generate accounts (needed for jwt)
* runtime/kubernetes: add logging for creds
* runtime/kubernetes: serialize secret name
* runtime/kubernetes: remove unused code
* runtime/kubernetes: base64 encode secret
* runtime/kubernetes: remove metadata from secret
* util/kubernetes/client: omit empty secret metadata
* util/kubernetes/client: fix secret template
* util/kubernetes/client: fix secrets
* web: update auth util
* util/auth: fix missing arg
* extend token expiry
* extend token expiry
2020-07-10 16:25:46 +01:00
ben-toogood
318a80f824
config/cmd: improve cert loading for infra ( #1813 )
...
* config/cmd: improve cert loading for infra
* config/cmd: remove certificate_authorities flag
* config/cmd: fix caps
* config/cmd: fix bug with IsSet
* config/cmd: fix bool flags
2020-07-09 18:02:24 +01:00
ben-toogood
333320dcb8
config/cmd: secure broker ( #1806 )
...
* config/cmd: secure broker
* config/cmd: remove testing
2020-07-08 16:22:48 +01:00
ben-toogood
86f4235aaf
config/cmd: custom certificate authorities & secure registry ( #1803 )
...
* config/cmd: add registry_secure option
* config/cmd: tmp load ca
* config/cmd: tmp load ca
* config/cmd: refactor certificate_authorities setup
* config/cmd: improve usage
2020-07-08 08:50:08 +01:00
ben-toogood
f5ed7e5833
config/source/service: change default namespace to micro ( #1798 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-07 08:19:52 +01:00
Colin Hoglund
90dca65f55
make environment variable interpolation preprocessor optional ( #1715 )
2020-07-06 20:13:35 +01:00
ben-toogood
c58ac35dfc
broker/service: use wrapped micro client to authenticate requests ( #1782 )
2020-07-02 17:54:53 +01:00
ben-toogood
d577dd6abe
config: add namespace support ( #1780 )
...
* config/cmd: use service namespace for config
* config/service: add namespace option to list
2020-07-02 14:07:58 +01:00
ben-toogood
174e44b846
Deprecate client/selector ( #1767 )
...
* client/{grpc,rpc}: depricate selector (wip)
* {client,cmd}: remove client/selector
* deprecate client/selector
* router/static: fix lookup
* config/cmd: add support for legacy static selector flag
* config/cmd: add support for legacy dns selector flag
2020-07-01 17:06:59 +01:00