Commit Graph

317 Commits

Author SHA1 Message Date
1b9affabb4 make build fail when need to run gofmt & remove docker pull in travis
use golang 1.8.3 for gateway

Signed-off-by: Minh-Quan TRAN <account@itscaro.me>
2017-10-09 08:42:30 +01:00
89878f0c8a Migrate from alexellis org to openfaas
Note, not all `alexellis/github` references should be changed, there are
a number of repos which are not part of the openfaas org, this commit
excludes those.

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-10-04 09:18:06 +01:00
eed9641254 Display function creation error in UI
Signed-off-by: Alex Young <alex@heuris.io>
2017-10-02 20:54:29 +01:00
221ed7a292 Update for ARM builds
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-10-01 23:36:23 +02:00
028803b4a5 Quote eTag 2017-10-01 13:38:32 +02:00
ac3e91cbdc added a sidenav toggle button when the sidenav is hidden.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2017-10-01 09:42:10 +02:00
40e1fac1c2 Implement Swarm update handler using PUT
This commit implements an update handler for Docker Swarm, it queries the
current spec, updates values in-situ before calling ServiceUpdate.

The UpdateConfig FailureAction is set to rollback, so in the event of
supplying values to the update that would result in the service failing
then the update will be rolled back.

The UpdateConfig Parallelism param is set to an explicit value of 1 which
will result in functions being updated 1 by 1 rather than all at once.

It also moves the restartDelay declaration out of the create and update
handlers and into the main server function alongside maxRestarts.

And finally this commit uses the PUT HTTP verb for updates rather than
the non-HTTP UPDATE verb which was being used initially (also adding it
to the Swagger definition).

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-09-27 09:58:03 +01:00
d7bc2695c3 Add favicons for broad range of browsers/devices
Signed-off-by: John McCabe <john@johnmccabe.net>
2017-09-26 09:32:21 +01:00
ca9a7fe97c Reinstating tests
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-23 20:42:13 +01:00
2229e922d7 Add update endpoint/route
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-23 20:42:13 +01:00
84ae82473c Use types from requests
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
403236610a Remove duplication from createfunction_test.go
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
031a0bc18c Add tests around error handing done in #196
Signed-off-by: Alex Young <alex@heuris.io>
2017-09-22 14:39:01 +01:00
d2b15241c6 fix x-header
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-19 22:14:04 +01:00
1622fadd9c Return error when ServiceCreate fails in
gateway/handler/createhandler.go

Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2017-09-19 20:14:05 +01:00
ec22a301fe Refactor out handler file from server.go
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-13 10:28:40 -07:00
94a15e44d5 should use strings.Contains() instead of stings.Index()
Signed-off-by: wgliang <liangcszzu@163.com>
2017-09-13 09:55:45 -07:00
622b24268d Merge branch 'master' of https://github.com/alexellis/faas 2017-09-13 09:54:14 -07:00
499d6128e5 remove comment
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-13 09:54:05 -07:00
ab8a7e6869 Added feature to delete functions from the UI
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2017-09-13 08:43:19 -07:00
d127dc7cb0 Give feedback via toast in UI. 2017-09-08 10:43:44 +01:00
5339fdcdbe Query Prometheus API for stats.
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-07 22:42:27 +01:00
3db2064d91 Handle constraints
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-04 13:42:36 +01:00
777351af76 Remove old Dockerfiles
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-03 20:44:44 +01:00
78daa9cd39 Specify Linux constraints by default
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-02 20:12:10 +01:00
fba2d8aa52 Add MIT header
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
2cca166dc0 Update async for CallbackUrl
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
3031531b3c Specify callback URL via http header
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
fa069e412c Remove Docker client from NATS
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
cfcb183bc7 Name builder steps
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
bd146f526c Sync async_nats work with master
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-29 19:40:08 +01:00
c5815d36ab add_missing_mit_header_27_aug
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-27 22:37:19 +01:00
c163b7d2a8 Add gateway_service_count metric for external provider
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-25 08:14:05 +01:00
b6002e1c85 Add EnvProcess and logo to UI
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-23 09:01:44 +01:00
e8f387fa47 Use Roboto Mono for code blocks & use on imports for all fonts
Signed-off-by: Fabien Le Frapper <contact@fabienlefrapper.me>
2017-08-22 17:49:39 +01:00
3ac73340c3 Allow restarts of up to 5 times with 5 sec delays
Signed-off-by: Alex <alexellis2@gmail.com>
2017-08-16 21:34:05 +01:00
7818f3fb17 Bump arm to 0.6.0
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-08-13 20:20:42 +00:00
ce8d5838dc Add plugin folder to Dockerfile 2017-08-08 09:14:46 +01:00
f165ce2ca7 External replica proxy 2017-08-08 09:14:46 +01:00
33381a783a External alert-handler support. 2017-08-08 09:14:46 +01:00
1e4b5f907a Wrap scaling / alert handling in interface/adapter pattern. 2017-08-08 09:14:46 +01:00
fa210a0dd3 Move HttpAdapter to own file 2017-08-08 09:14:46 +01:00
9df92c7f1b Start logging metrics 2017-08-08 09:14:46 +01:00
35a15cff01 Support external URL for FaaS functions 2017-08-08 09:14:46 +01:00
cc3308a555 Relocate config_test to tests package and
Export struct members of GatewayConfig{}
2017-07-18 08:46:46 +01:00
457d0be78b Add GatewayConfig
Add env configurable readTimeout / writeTimeout
Add env-timeout test
Modify appropriate Dockerfiles

Signed-off-by: leigh schrandt <leigh@null.net>
2017-07-18 08:46:46 +01:00
283d311b08 Update vendoring via vndr 2017-07-12 20:30:56 +01:00
eccf94295f Run unit tests before build
This modifies Dockerfile.build.* to run unit tests before build.
2017-05-30 17:10:34 +01:00
9e711b3b5d Handle private docker registry auth
This adds support for private docker registries, by adding
an optional `registryAuth` field in the CreateFunctionRequest.
Auth must be passed as base64-encoded basic auth, similar to
how done in Docker file store credentials (~/.docker/config.json).
Credentials are then passed to swarm at service creation.
2017-05-30 17:10:34 +01:00
201d2c20de Requests update 2017-05-08 13:42:14 +01:00