daffa9e548
use metadata.Metadata ( #8 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-18 16:50:41 +03:00
40b0870cf8
fix linting ( #4 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 01:08:23 +03:00
53654185ba
add logger to options
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-29 17:44:49 +03:00
fc3794f548
move runtime implementations ( #22 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-25 15:55:30 +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
c4a303190a
lint fixes ( #14 )
...
* lint fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-08-21 14:53:21 +03:00
Janos Dobronszki
eee5b98d78
Generic git checkout ( #1951 )
2020-08-20 14:18:53 +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
Janos Dobronszki
2b2dc2f811
Support private repos in env 'local' ( #1938 )
2020-08-18 18:26:14 +02:00
Janos Dobronszki
a2a808f2d6
Baseurl, gitlab support, single word service names ( #1933 )
2020-08-18 11:31:49 +02:00
ben-toogood
5a88ea7247
runtime: resource limits (kubernetes implementation) ( #1931 )
...
* runtime: add resource limit CreateOptions
* util/kubernetes/client: implement support for resource limits
* runtime/kubernetes: set resource limits for k8s deployments
* util/kubernetes: remove template check for ints
* util/kubernetes: fix incorrect yaml syntax
* runtime/kubernetes: fix incorrect units
* runtime: update create options to use Resources struct
2020-08-14 11:47:28 +01:00
Asim Aslam
374aae1490
Merge branch 'master' of ssh://github.com/micro/go-micro
2020-08-13 14:10:49 +01:00
Asim Aslam
ccf2f4efd6
fix windows
2020-08-13 14:10:41 +01:00
ben-toogood
9380b365de
runtime/local: fix injection of secrets as env vars ( #1930 )
2020-08-13 09:22:25 +01:00
Asim Aslam
f0142febcf
executable is now os
2020-08-13 07:57:57 +01:00
Asim Aslam
375b67ee16
simplify runtime logs
2020-08-11 22:57:30 +01:00
Asim Aslam
b6e1c7ac99
make source dir a variable
2020-08-11 17:25:43 +01:00
Asim Aslam
e83a808b05
make log dir a variable
2020-08-11 17:23:00 +01:00
Asim Aslam
fae4151027
Add a build package ( #1926 )
...
* Add a build package
* fix go mod
* package tar
2020-08-11 16:51:58 +01:00
ben-toogood
593b543230
runtime/kubernetes: fix streaming logs error handling ( #1919 )
2020-08-10 15:20:33 +01:00
ben-toogood
fdce953c15
runtime/kubernetes: fix update bug ( #1918 )
2020-08-10 15:08:04 +01:00
Dominic Wong
835343d6a5
logs should return for non existent services ( #1906 )
2020-08-06 22:56:05 +01:00
ben-toogood
006bbefaf3
runtime: support for dynamic secrets ( #1861 )
...
* runtime: replace CreateCredentials with CreateSecret
* runtime/kubernetes: secrets support
* runtime: CreateSecret => WithSecret
* runtime: use map[string]string for secrets
* runtime/kubernetes: update to use kv secrets
* Fix merge conflict (missing import)
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-29 13:41:50 +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
Janos Dobronszki
fbdf1f2c1c
Fixing micro logs
being follow by default against k8s ( #1866 )
2020-07-23 09:50:38 +02:00
ben-toogood
0d860c53a6
runtime/kubernetes: ignore namespace already exists errors ( #1852 )
...
Co-authored-by: Asim Aslam <asim@aslam.me>
2020-07-18 11:12:05 +01:00
Asim Aslam
7d41c2224e
Don't close the stream ( #1844 )
2020-07-15 14:44:31 +01:00
ben-toogood
f73ec65ac3
runtime/kubernetes: increase debugging ( #1841 )
2020-07-15 09:26:25 +01:00
Dominic Wong
7c5e3b0f30
report errors from log streaming ( #1828 )
2020-07-13 17:35:23 +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
3480e0a64e
runtime/kubernetes: remove reference to runtime cells ( #1814 )
2020-07-09 20:21:34 +01:00
ben-toogood
6d9a38a747
kubernetes: fixes for production ( #1812 )
...
* util/kubernetes/client: add secrets to deployments
* util/kubernetes/client: remove ServiceAccountName override
* debugging
* runtime/kubernetes: fix error
* runtime/kubernetes: remove test secret
* util/kubernetes/client: update default image
* util/kubernetes/client: remove default command for deployments
* runtime/kubernetes: pass source as arg
* runtime/kubernetes: remove debugging
* util/kubernetes/client: revert default image change
2020-07-09 16:29:01 +01:00
ben-toogood
f744c6248f
runtime/service: pass namespace option to service ( #1792 )
2020-07-03 11:37:14 +01:00
Janos Dobronszki
3c633e3577
Sparse checkout of repos, all repo downloads happen to different folders for concurrency support ( #1779 )
2020-07-02 14:40:40 +02:00
Dominic Wong
a2a1f4dfbd
support mono repo deps ( #1736 )
...
* support mono repo deps
* add protoc
2020-06-24 16:27:22 +01: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
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