Commit Graph

1361 Commits

Author SHA1 Message Date
4963f39e87 Adjusted Swagger.yaml accordingly to feedback
Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00
f674211ee8 Fixed Typo
Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00
4fd0417291 Updated Swagger Documentation
Changes:
Increased version to reflect latest
Every path now is in ''
Added all receivable Status Codes
Made use of Schemas
Added required annotation to models

Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00
9d9ab0d9d8 Add blog posts to community file
Adding blog posts from Ajeet Raina and Mark Sta Ana

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-08-07 16:04:00 +01:00
04a579746d Add Jock to hall of fame
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-07 09:06:19 +01:00
fa9c9a271b Eric has asked to step down
- Removes Eric from list of core contributors after he asked me
today. Eric will retain access to Derek and is welcome to
contribute if/when he is able.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-07 08:55:32 +01:00
7a80b85b5d Add ewilde to .DEREK.yml maintainers list
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-08-02 18:10:27 +01:00
d7a2910232 Move Patreon reference
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-02 12:05:14 +01:00
90335018ff Add read-only support and annotations
The update to the gateway and faas-swarm add read-only containers
and the ability to use annotations in the function schema.

faas-cli 0.6.17 is required.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-01 15:50:32 +01:00
50b030ffd1 Add link to users
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-31 22:31:57 +01:00
c2672790a7 Add new blog and docs site to README
This commit adds link to offical docs and new blog site to README.md
file.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-07-30 21:50:29 +01:00
f720b34edf Add myself to list of maintainers in DEREK
I am adding myself to maintainers in .DEREK file

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-07-30 08:44:40 +01:00
e0f1c941d7 Add Matt's blog on PHP 2018-07-26 09:58:16 +01:00
726fff51af Add zero-scale blog 2018-07-26 09:55:50 +01:00
4a44c3c553 Update links in CONTRIBUTING.md
Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2018-07-25 14:11:37 +01:00
fb9a56428f Add route for async invocation of functions in the kong guide
With this commit i extend the kong docs to add routing for
async invocation of functions.

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-07-25 13:55:59 +01:00
75f05ca38e Add skip_build to sample YAML
The sample YAML is for deploying only and not for building, for
building enter the sample-functions folder.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-24 22:36:20 +01:00
8f0d2d1fd6 Expose scale-function endpoint
- exposes scale-function endpoint for use with faas-idler, this
is protected by auth when enabled.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-23 15:24:11 +01:00
4cbb7d968d Bump gateway version to 0.8.7
This commit bumps gateway version to 0.8.7 in docker-compose.yml and
also adds `scale_from_zero` environment variable to the gateway.

Fixes: #780

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-07-21 09:33:08 +01:00
be907d220c Adds annotation attribute to CreateFunctionRequest
1. Add new annotation attributes which may be used
by the back-end for making scheduling or routing decisions.

2. Updated tests/README.md to give clearer instructions on creating and
tearing down the stack required to run the integration tests

3. Update ci.sh
 * Fail as soon as an error is encountered
 * Allow script to run locally in development environment, test if repos
are already cloned etc..
 * Deploy ./stack.yml used by existing integration tests

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-20 19:51:17 +01:00
9512f09d2b Refactor scaling to use existing code
Existing code has been used for scaling up and querying replicas.
This meant the new code was deleted and there is less duplication
now.

The cache store a whole query response rather than just the
available replica count and the tests were updated. This has been
tested with Docker swarm and the image:
 openfaas/gateway:scale-17-07-2018

This feature now needs the env-var of scale_from_zero to be enabled
in order to turn on the scaling behaviour.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-20 11:39:36 +01:00
c58af8da56 Disable scaling from zero by default
This disables the scaling proxy by default since it is not the
default user-experience and is still under refinement.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-20 11:39:36 +01:00
a1c2c553a5 Add scale_from_zero flag
Added scale_from_zero to config, docs and wrote unit test for the
value.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-20 11:39:36 +01:00
e67d45caa1 Add feature: scale from zero to 1 replicas
This change allows functions to be "idled" or scaled to zero
replicas and then be invoked later on. There is a penalty to
scaling up - the API gateway proxy will block until the function
is ready.

A cache is included to off-set the calls to upstream API to check
on readiness along with unit tests.

Testing via scaling to zero replicas and then invoking function.
On Swarm I observed 3 seconds on an Intel Nuc i5 for scaling back
from zero replicas.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-20 11:39:36 +01:00
31810a4cf2 Move CI to use openfaas/* ns
This was a miss by refactoring work and is causing a CI failure

https://travis-ci.org/openfaas/faas/builds/404409816

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 13:32:33 +01:00
50a8e9aa9f Disable auth in ci tests
This should make CI tests pass without having to parse and run in
the login command via the faas-cli.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:57:17 +01:00
8ede8966cd Bump gateway version
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
ff167c8cd4 Bind secrets to stack
Secrets for gateway needed to be bound to stack, but were
commented-out. Tested on Swarm.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
a27fceb7f4 Reinstate basic_auth flag
- basic_auth is now set to true by default unless overriden
in the env-var "BASIC_AUTH"

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
6b7f2fc0a1 Enable basic-auth by default
The deployment script will enable basic-auth by default to help
avoid people deploying to a public IP with no protection from
malicious actors.

- In deploy_stash.sh /dev/random can hang on some systems, so using
  urandom will give a better experience, if less "random" data.
  For the purposes of creating an initial basic auth password this
  is sufficient.
- Alpine Linux does not have the shasum command, but sha256sum.
- Tested on MacOS with and without --no-auth flag.
- Does not apply for armhf or powershell.

BASIC_AUTH env-var added by Vivek Syngh @viveksyngh

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
00c93f2ddf Add ReadOnlyRootFilesystem flag
Adds flag to denote root-filesystem should be made read-only.

Needed for downstream work and re-vendoring in faas-swarm/faas-
netes and openfaas-operator.

Closes #723

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:28:06 +01:00
07f3e8f624 Accept 202 as valid code for /system/scale-function/<function>
Updated gateway to accept 202 as valid response code for
/system/scale-function/<function> along with 200.

Fixes: #faas-netes/245

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-07-16 11:13:11 +01:00
db465b82a4 Added function url field and copy action to the UI
This change adds a function URL field to the UI and a 'copy to
clipboard' button next to it. If the browser does not support the copy
command, the copy icon will be hidden.

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-07-16 11:12:38 +01:00
e6a3658ac3 Edit queue-worker image with openfaas ns
After editing queue-worker to push do openfaas/ ns instead of
functions/ this chage is required to match the image name.
Set to latest version 0.4.8

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-13 11:16:23 +01:00
4fe96a9cce Update .DEREK.yml with username
Change `iyovcheva` to `ivanayov` after username has been changed

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-13 09:19:09 +01:00
f23d90d441 Remove braces for Python sample
Suggested by community member in an un-merged PR.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-10 21:14:45 +01:00
099362b51d Move watchdog from functions/ to openfaas/ ns
This moves watchdog to a better name for images and also gives free
image-scanning and gives more confidence  to users  that components
ship regularly and makes any vulnerabilities  in  components  clear

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-10 21:09:30 +01:00
9618bc3f7c Remove brace from Python sample
Suggsted in #756

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-10 21:07:36 +01:00
a6ab224a94 Add new blog posts to community.md
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-07-10 20:57:45 +01:00
2fcfd39922 Move faas-fargate entry above nomad
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-09 22:18:30 +01:00
87c048914b AWS Fargate provider added as community project
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-09 22:18:30 +01:00
36ec5b0612 Update typos in CONTRIBUTING.md
Thanks to @rgee0 for proofing.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 22:06:57 +01:00
cba817c499 Allow copyright verbiage
Allows: OpenFaaS Author(s)

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 22:06:57 +01:00
95c738c47e Remove typo in heading: afterburn
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:45:26 +01:00
0149bf3aca Remove AfterBurn reference
Afterburn is deprecated in favour of of-watchdog. Removing link
to prevent confusion.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:43:59 +01:00
507d514e74 Add core contributors / update on copyright
- Core contributors are added by name.
- Copyright notice now encourages OpenFaaS Author(s) in place of
OpenFaaS Project to reflect the nature od distributed copyright.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:37:04 +01:00
5f6b6bf953 Update header
From Project to Author(s) for the catch-all. This file has my
copyright which is retained through the catch-all statement.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:25:03 +01:00
822a1d0825 Update community.md
Add four blog posts on deployment and usage scenarios

Signed-off-by: Lucas Alexander <lucas@alexanderdevelopment.net>
2018-07-09 17:45:20 +01:00
00ad00b651 Push gateway image to both Quay.io and Docker Hub
With this change gateway will be pushed to Quay.io on release
as a backup

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-06 20:18:23 +01:00
28c9ccd0aa Changes from pull request feedback
1. Use httptest.ResponseRecorder instead of custom implementation
StringResponseWriter.

2. Remove verbose log line in infohandler

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-06 17:50:48 +01:00