Lukasz Raczylo
a7522e7d6c
fix: struct field alignment ( #2632 )
2023-04-26 02:16:34 +02:00
Rene Jochum
010b1d9f11
fix: linting issues ( #2566 )
2022-09-30 20:32:55 +02:00
David Brouwer
85c0b0b8eb
fix: some linting issues ( #2563 )
2022-09-30 16:27:07 +02:00
Mohamed MHAMDI
1db36357d5
feat(logger): add logger option to all micro components (override DefaultLogger) closes #2556 ( #2559 )
...
* feat(logger): add logger option to all components
* fix: refactor api/rpc.go
* fix: refactor api/stream.go
* fix: api/options.go comment
* fix(logger): do not use logger.Helper internally
* fix(logger): fix comments
* fix(logger): use level.Enabled method
* fix: rename mlogger to log
* fix: run go fmt
* fix: log level
* fix: factories
Co-authored-by: Mohamed MHAMDI <mmhamdi@hubside.com>
Co-authored-by: Davincible <david.brouwer.99@gmail.com>
2022-09-29 16:44:53 +02:00
Asim Aslam
0c2041e439
add events package ( #2341 )
...
* add events package
* update go version
2021-11-08 08:52:39 +00:00
Benjamin
5d5aee1f08
replace ioutil with io and os ( #2327 )
...
set the go version to 1.16 in pr.yml and tests.yml, so as to be consistent with the version in go.mod.
2021-10-30 19:24:40 +01:00
Asim Aslam
1cd7cfaa6c
go-micro.dev/v4 ( #2305 )
2021-10-12 12:55:53 +01:00
Shubhendra Singh Chauhan
26b859c4f9
improve code quality ( #2128 )
...
* Fix inefficient string comparison
* Fix unnecessary calls to Printf
* Canonicalize header key
* Replace `t.Sub(time.Now())` with `time.Until`
* Remove unnecessary blank (_) identifier
* Remove unnecessary use of slice
* Remove unnecessary comparison with bool
2021-02-25 08:30:35 +00:00
francescocarzaniga
bba3107ae1
Remove hpcloud/tail in favour of nxadm/tail ( #2109 )
2021-01-25 07:51:17 +00:00
Asim Aslam
d94936f6c9
v3 ( #2104 )
...
* v3
* revert plugins
* fixup some issues
2021-01-20 13:54:31 +00:00
Asim Aslam
dbe8c93e20
remove service implementations ( #2094 )
2020-12-11 11:12:44 +00:00
Dominic Wong
0ce132eb8f
Fix race condition when updating process being waited on ( #1694 )
2020-06-12 10:42:52 +01:00
Dominic Wong
86dfcb819b
Ignore "no such process" error ( #1686 )
...
* Cleanup how status is updated for service. Ignore "no such process" error as it could be that the pid died
* add nice error log to record process error exit
2020-06-12 10:42:52 +01:00
Janos Dobronszki
d613804b0a
Sigterm instead of Sigkill ( #1687 )
...
Co-authored-by: Dominic Wong <domwongemail@googlemail.com>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-06-12 10:42:52 +01:00
Máximo Cuadros
0d88650511
go modules cleanup and remove wrong self import to v1 ( #1658 )
...
* Runtime local git, simply go-git code
* go modules cleanup and remove wrong self import to v1
* pin mergo v0.3.8 to avoid panics
Signed-off-by: Máximo Cuadros <mcuadros@gmail.com>
Co-authored-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-05-29 14:32:11 +03:00
Ben Toogood
12061bd006
Add account issuers
2020-05-21 16:41:55 +01:00
Ben Toogood
8875719619
Default Runtime multi-tenancy
2020-05-19 11:01:06 +01:00
Ben Toogood
c19b349e96
Update runtime.Event struct
2020-05-19 10:14:07 +01:00
Ben Toogood
14155c7e02
Add runtime ErrNotFound
2020-05-19 09:28:00 +01:00
Dominic Wong
05858b746c
kill all processes correctly for micro kill command ( #1633 )
2020-05-13 18:36:45 +01:00
Janos Dobronszki
0fb4734e67
Upload local source code to micro server ( #1613 )
2020-05-13 12:07:53 +02:00
Ben Toogood
f892b41299
Add runtime to service.Options()
2020-05-11 17:09:28 +01:00
Ben Toogood
506006f0fa
Auth Options
2020-05-11 11:47:59 +01:00
Janos Dobronszki
fccab8ad27
Runtime name should be base folder outside repos ( #1598 )
2020-04-30 18:20:51 +02:00
Vasiliy Tolstov
d44adafca5
api/router: avoid unneeded loops and fix path match ( #1594 )
...
* api/router: avoid unneeded loops and fix path match
* if match found in google api path syntax, not try pcre loop
* if path is not ending via $ sign, append it to pcre to avoid matching other strings like
/api/account/register can be matched to /api/account
* api: add tests and validations
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-29 15:23:10 +03:00
Janos Dobronszki
da66561d1e
Fixing too large offsets for default runtime logs ( #1587 )
2020-04-28 13:42:15 +01:00
Janos Dobronszki
b875868a39
Don't ignore errors from checkout source code ( #1584 )
...
Don't check out code for builtin services.
2020-04-28 10:51:39 +02:00
Janos Dobronszki
8148e0a0f8
Micro log fixes ( #1570 )
2020-04-28 09:49:39 +02:00
Ben Toogood
494e0b5060
Runtime: Add Kubernetes ServiceAccounts & Remove imagePullSecrets
2020-04-27 14:13:51 +01:00
Asim Aslam
0a030f3d8a
strip unused list endpoint
2020-04-24 18:05:38 +01:00
Asim Aslam
d62ae23a9c
Strip label
2020-04-23 20:20:48 +01:00
Asim Aslam
c68226e9b0
only do namespace check if not default
2020-04-23 19:19:13 +01:00
Ben Toogood
bb25bd94c8
Log k8s requests
2020-04-23 17:56:00 +01:00
Ben Toogood
616db3442a
Debugging
2020-04-23 17:44:40 +01:00
Ben Toogood
8849b85a7f
Merge branch 'master' of https://github.com/micro/go-micro into image-pull-secret-fix
2020-04-23 17:37:15 +01:00
Ben Toogood
4c05623a3c
Image pull secret fix
2020-04-23 17:26:59 +01:00
Asim Aslam
ec929b3d2f
log error and ensure we pass through namespace
2020-04-23 17:14:30 +01:00
Asim Aslam
2299559397
Check for namespace ( #1564 )
2020-04-23 16:22:41 +01:00
ben-toogood
99d4b2b31a
Merge branch 'master' into git-secrets
2020-04-23 15:39:37 +01:00
Janos Dobronszki
ff8ad7d4ca
Default runtime now checks out code on demand ( #1563 )
...
* Default runtime now checks out code on demand
* Go mod tidy
2020-04-23 16:30:43 +02:00
ben-toogood
b692c045b5
Merge branch 'master' into git-secrets
2020-04-23 15:01:47 +01:00
Ben Toogood
b5f53595ca
Pass image_pull_secrets in runtime service
2020-04-23 14:22:23 +01:00
Ben Toogood
88176dca53
Remove debugging
2020-04-23 14:13:07 +01:00
Ben Toogood
020476614c
Tweak CreateImagePullSecret
2020-04-23 14:06:33 +01:00
Ben Toogood
0f42346976
Additonal Debugging
2020-04-23 14:03:04 +01:00
ben-toogood
692b27578c
Runtime Namespace ( #1547 )
...
* Add context option to runtime; Add dynamic namespace to kubectl client
* Add namespace runtime arg
* Fixes & Debugging
* Pass options in k8s runtime
* Set namespace on k8s resources
* Additional Logging
* More debugging
* Remove Debugging
* Ensure namespace exists
* Add debugging
* Refactor namespaceExists check
* Fix
* Fix
* Fix
* Fix
* Change the way we check for namespace
* Fix
* Tidying Up
* Fix Test
* Fix merge bugs
* Serialize k8s namespaces
* Add namespace to watch
* Serialize namespace when creating k8s namespace
Co-authored-by: Ben Toogood <ben@micro.mu>
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-04-23 13:53:42 +01:00
Micro
316b81f790
Debugging
2020-04-23 13:11:00 +01:00
Micro
501a6bf3ea
Add imagePullSecrets to PodSpec
2020-04-23 12:27:36 +01:00
Janos Dobronszki
7c31edd5f8
Enabling default runtime to run multiple versions ( #1545 )
...
* Enabling default runtime to run multiple versions
* Trigger build
* Fix
* Sprintf
2020-04-20 15:54:29 +02:00
Asim Aslam
16db76bee2
remove list endpoint from runtime and stop checking type in update
2020-04-17 17:54:34 +01:00