1246 Commits

Author SHA1 Message Date
John McCabe
fac3345668 Use http package consts for http methods
This commit replaces occurences of http method strings with the
corresponding consts from the http package.

*Note* UPDATE is not strictly speaking a valid method and as such isn't
part of the http package (should be a PUT or PATCH?)

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-03-23 16:37:33 +00:00
Alex Ellis
0c7e59fe8a Add direct_functions mode to gateway for tuning
Adds a pair of configuration options for performance tuning. The
gateway can now invoke functions directly and can bypass the
provider. See updated table in README.md for configuration values.

BaseURLResolver is added with unit tests that decouples resolving
upstream URL from the reverse proxy client code.

- SingleHostBaseURLResolver resolves a single upstream host
- FunctionAsHostBaseURLResolver resolves host based upon conventions
within the URL of the request to a function for direct access

Tested with Kubernetes (faas-netes) and faas-swarm through UI, CLI
calling system endpoints and functions directly.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-23 16:35:37 +00:00
Alex Ellis (VMware)
a841e3d7f3 Fix bug reading default value for combine_output
The default should be set to true so we maintain backwards.
compatibility.
readconfig.go was altered due to bug reading default value. This was
tested by adding unit tests to readconfig_test.go for positive and
negative scenarios.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-22 11:23:49 +00:00
Daniel Shapira
ae1279a553 Add Twistlock's blog post
Adding a blog post on securing Kubernetes for OpenFaaS

Signed-off-by: Daniel Shapira <daniel@twistlock.com>
2018-03-21 15:11:59 +00:00
Burton Rheutan
04718101ff Community.md missing blog post by BurtonR
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-03-21 13:21:58 +00:00
Alex Ellis
fa97882234
Add Contino blog post 2018-03-21 08:52:54 +00:00
Alex Ellis
9f87511ab3
Add John's event for CPH and two VMware blogs 2018-03-21 08:49:27 +00:00
Alex Ellis
f604b20503
Add 2018 events for Alex / Nic 2018-03-21 08:40:06 +00:00
Alex Ellis (VMware)
c716c54868 Break out logging / metrics for functions in forwarding_proxy
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-20 09:51:42 +00:00
Vivek Singh
c484eeecdb Add /_/health endpoint to watchdog
Introduce new endpoint `/_/health` to watchdog for health status of
functions  which check for `/tmp/.lock` file

Fixes first part of #547 issue.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-03-20 08:52:22 +00:00
Alex Ellis
df59720377
Update CONTRIBUTING.md
Add link for rewriting Git history in preparation for Derek's new
commit message linting feature.
2018-03-18 20:42:03 +00:00
Alex Ellis
e72252d17d
Correct typo in signed-off message 2018-03-18 19:05:19 +00:00
Alex Ellis
de22f69dd5
Update CONTRIBUTING.md
Adds guidelines for commit message formatting with rules
from Chris Beams' blog post here:

https://chris.beams.io/posts/git-commit/

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-18 18:52:03 +00:00
Alex Ellis (VMware)
30cf8de89b Update combine_output test
Integration test for combine_output should use stat instead of
man as man is not installed in the CI system.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 21:12:44 +00:00
Alex Ellis (VMware)
3031d0e1c2 Feature: combine_output to control stdout/stderr
This enables an often-requested feature to separate stderr
from stdout within function responses. New flag combine_output is on
by default to match existing behaviour. When combine_output is set
to false it redirects stderr to the container logs rather than
combining it into the function response.

Tested with unit tests for default behaviour and new behaviour.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:59:47 +00:00
Alex Ellis (VMware)
85d1436707 Make use of config value for HTTP port override
As added by previous commit with unit tests.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:20:06 +00:00
Alex Ellis (VMware)
70e9a83e87 Allow override of HTTP port via env-var
HTTP port can now be overriden through use of "port" environmental
variable.

Prefer messaging "want" over "wanted" in error messages, this is more
idiomatic Golang.

Move away from Go ARMv6 (RPi Zero) and give ARMv7 as a minimum
version for release binaries.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:18:09 +00:00
Alex Ellis
207e169cde
Update TestDrive tutorial
PWD links to HTTPS - this is now supported by the provider
Move references to localhost to 127.0.0.1 to prevent clashes with 
IPv6 aliases on Linux systems.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 12:29:09 +00:00
rgee0
f3ae1a2f62 Added AlertManager ARM Dockerfile and openfaas label to armhf network
Signed-off-by: rgee0 <richard@technologee.co.uk>
2018-03-15 21:50:16 +01:00
Alex Ellis
63f8707544
Bump faas-swarm 2018-03-14 22:39:37 +00:00
Alex Ellis
3897d1f54e Bump swarm versions
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 17:30:28 +00:00
Alex Ellis
806e7f88c4 Remove memory limit on gateway/swarm and remove old armhf file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 16:38:29 +00:00
Alex Ellis
62a15032ba Add openfaas label to functions network
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 16:14:59 +00:00
Alex Ellis (VMware)
616ac44739 Bump alertmanager to RC version due to bug
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-13 09:26:32 +00:00
Alex Ellis
3eccd55963
Update for GKE RBAC instruction 2018-03-10 10:37:52 +01:00
Alex Ellis
bcc64e6e0f
Typo fix for link
Typo fix.

Fixes #567

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-10 10:32:23 +01:00
Jono Finger
a024d4a6fb Using faas-cli new for function generation
Signed-off-by: Jono Finger <jono@foodnotblogs.com>
2018-03-09 23:55:58 +01:00
Jono Finger
78c8451df2 Removing scaling section
Signed-off-by: Jono Finger <jono@foodnotblogs.com>
2018-03-09 23:55:58 +01:00
Jono Finger
c04a3c0612 Addressing some comments
Signed-off-by: Jono Finger <jfinger@plos.org>
2018-03-09 23:55:58 +01:00
Jono Finger
7cd333a285 Adding first draft of registry doc
Signed-off-by: Jono Finger <jfinger@plos.org>
2018-03-09 23:55:58 +01:00
Stefan Prodan
8f1de15524 Added Stefan to maintainers
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2018-03-09 13:51:38 +01:00
Ken Fukuyama
7d860bff41 fixed unexpected behavior where the selected function properties don't get
updated after adding/deleting a different function.

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-03-08 22:30:45 +01:00
Ken Fukuyama
02642ffb3f Edited unnecessary fields and $scopes.
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-03-08 22:30:45 +01:00
Alex Ellis
b9d705ebd4 UI: in-line ready directive
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-08 22:30:45 +01:00
Alex Ellis
a8d91590ab UI: fix ng-model complaint
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-08 22:30:45 +01:00
Alex Ellis
ccfb8f7be4 Make UI block until function reports readiness
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-08 22:30:45 +01:00
Burton Rheutan
936beb2166 return err from json unmarshal
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-03-07 20:12:27 +00:00
Burton Rheutan
26c8671865 updated hubstats to accept repo for pull count
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-03-07 20:12:27 +00:00
Alex Ellis
d1fb0084b4 Samples: update gitignore file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 15:39:34 +00:00
Alex Ellis
1dd8904174 Remove Markdown binary
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 15:38:42 +00:00
Alex Ellis
4d43861c65 Remove Markdown binary
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 15:37:55 +00:00
Alex Ellis
37ef024df7 Proxy fix - copy request headers into upstream
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 15:31:25 +00:00
Alex Ellis
ab33d80654 Convert apikeyprotected-secret to apikey-secret with proper Golang template
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 15:15:35 +00:00
Alex Ellis
56e8c5b211 Remove legacy sample function
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 14:56:54 +00:00
Alex Ellis
9cdf24dfc6 Introduce upstream_timeout in .yml file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 12:49:25 +00:00
Alex Ellis
6efaee5b4f Add upstream_timeout as env-var
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 12:49:25 +00:00
Alex Ellis
30928739ee Use context for upstream timeouts
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 12:49:25 +00:00
Alex Ellis
db8eb5cfe2 Bump faas-swarm to 0.2.0
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-03 20:42:16 +00:00
Alex Ellis
5acb18915d Config tweak for samples
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-03 20:36:18 +00:00
Michael Herman
00f9de9d4b updated build script
Signed-off-by: Michael Herman <hermanmu@gmail.com>
2018-03-03 18:54:04 +00:00