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
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
Asim Aslam
dca5305e8a
replaced build with updated timestamp in runtime
2020-04-17 16:29:05 +01:00
Janos Dobronszki
ac5822f1ee
Fix local runtime updates ( #1543 )
2020-04-16 17:50:24 +02:00
268651df18
regenerate all proto based files ( #1531 )
...
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-04-14 16:25:09 +03:00
Asim Aslam
f840a5003e
Remove runtime List
2020-04-12 23:46:06 +01:00
Asim Aslam
5ef1698632
remove readme
2020-04-12 23:43:55 +01:00