Commit Graph

1276 Commits

Author SHA1 Message Date
8fe8120b36 Add missing files to ARM Dockerfile
Appears to have been missed during recent PRs from community.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 13:46:23 +00:00
24dfcb62c2 Add ci-armhf to Makefile
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 12:19:26 +01:00
ea831fd084 Add 2x blog posts
- Top 5 tips and tricks for boosting productivity with the
OpenFaaS CLI
- Multi-stage Serverless on Kubernetes with OpenFaaS and GKE

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 08:29:15 +01:00
73254f798b Add haveibeenpwned to functions Docker prefix
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 08:26:50 +01:00
c182a0af82 Started implementing Host header propagation for asynchronous invocations
Add Host field to the queue.Request struct and copy it from Host field
of the HTTP request when converting HTTP request to queue.Request in
MakeQueuedProxy function.

Signed-off-by: Dmitri Rubinstein <dmitri.rubinstein@googlemail.com>
2018-08-16 16:20:28 +01:00
fd0abe46dd Propagate Host header from gateway request to the function.
Host HTTP header was not propagated to the function because it is not
a part of http.Request.Header map.

Signed-off-by: Dmitri Rubinstein <dmitri.rubinstein@googlemail.com>
2018-08-16 16:20:28 +01:00
c86de503c7 Attach X-Call-Id to asynchronous calls
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-16 16:04:09 +01:00
2031c64183 Add two blogs
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-16 08:43:28 +01:00
75707689f2 Add events and blogs
- OSS EU, Goto (Alex E)
- John C's RPi even

- 2x blog posts

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-15 20:57:25 +01:00
03015e48bd Add test for Http_path for watchdog.
This test takes inspiration from the PR from @telackey with changes
to make it more maintainable. Since the test does not require
changes to the code, I wanted to add it before merging changes.

Ref: https://github.com/openfaas/faas/pull/789

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-13 17:57:44 +01:00
a4c867fd8f Adds HTTP Host entry
Fixes: https://github.com/openfaas-incubator/of-watchdog/pull/24

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-13 17:42:49 +01:00
44ceb8da22 Add haveibeenpwned sample function
Idea from Matthew Holt, using the haveibeenpwned API to query
whether a password has been found in a data-breach.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-13 10:20:13 +01:00
87cfa097bc Add blog post on VMware CodeHouse
Add blog post detailing VMware CodeHouse 2018 where OpenFaaS was a major technical component.

Signed-off-by: Jonas Rosland <jrosland@vmware.com>
2018-08-11 13:34:26 +01:00
b18433c6e7 Bump up faas-swarm to 0.4.1
This updates faas-swarm version including a fix for annotations.
In version 0.4.0 the prefix was not removed from the annotation
key, which was causing errors trying to get the value

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-08-09 16:16:21 +01:00
5143917782 Modified API Docs based on feedback
* Removed "Basic " from example
* Removed HTTPS from scheme
* Updated Info Object
* Fixed Ident

Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00
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