Commit Graph

1131 Commits

Author SHA1 Message Date
164b3e2ba8 Update guidance on commit messages
Mentions not terminating lines with punctuation

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-03 22:22:36 +01:00
daa79aef75 Deprecate routeless proxy test
Routeless proxy allowed no HTTP path to be given when a Header
X-Function: name was given. This has been deprecated - I am
unaware of any usage of the feature.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-03 17:55:44 +01:00
5e0569f75a Update TestGet_Rejected
Get is a supported method so this test failed, I've now changed
this to an unsupported method - i.e. HEAD to trigger the error
and keep the test.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-03 17:55:44 +01:00
bbbb4b536a Bump watchdog to 1.9.4
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-03 17:55:44 +01:00
034f2c4d13 Update travis to use Go 1.9
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-03 17:55:44 +01:00
84271240d6 Point to docs site for links in README.md 2018-04-03 16:56:49 +01:00
42edd5f00a Update nodeinfo sample function
Update the NodeInfo sample function to use latest
watchdog version (0.7.7) to support both GET and POST method.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-04-03 08:55:59 +01:00
38be3d543f Update BACKERS.md 2018-04-02 10:44:31 +01:00
3fe1e0b461 Broaden 50 chars to 72 for commit subject
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-02 09:20:38 +01:00
3b6280f44f Add Serverless Kubernetes RPi home-lab 2018-03-31 16:56:08 +01:00
775c08de86 Update README.md 2018-03-31 15:21:10 +01:00
7d31734734 Update README.md 2018-03-31 15:20:25 +01:00
54abee9a23 Update to link to next-gen watchdog 2018-03-31 14:01:30 +01:00
bdc4f02deb Update README.md
Adds link to the under-construction docs site and the new workshop.
2018-03-31 13:59:46 +01:00
b11d7aa42b added pycon talk
Signed-off-by: Michael Herman <hermanmu@gmail.com>
2018-03-31 08:31:38 +01:00
5b3099fb90 added openfaas code eval sample, re-ordered samples by date
Signed-off-by: Michael Herman <hermanmu@gmail.com>
2018-03-31 08:31:38 +01:00
6bd604f588 Add ARM builds of AlertManager/Prometheus
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-29 14:07:36 +00:00
eb2dc7aeab Update queue-worker version
Update queue-worker version to latest 0.4.3 in docker compose

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-03-29 14:41:58 +01:00
b20f527d76 Replace tabs with spaces
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2018-03-29 12:53:55 +01:00
e7001b2b49 Remove patching references from ARM deployment guide
Signed-off-by: rgee0 <richard@technologee.co.uk>
2018-03-28 19:08:54 +01:00
65ed8457af Fix issue in passing-through of proxy body
Proxy body was being passed correctly due to placement of defer
statement. This has been moved into outer scope to resolve issue.

Tested with new e2e tests in certifier component.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-27 21:12:38 +01:00
58bd87c811 Update proxy to pass query-string
HTTP proxy was not passing query-string upstream. This change
reinstates the behaviour through TDD - adding test coverage and
automated regression testing.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-27 19:33:43 +01:00
a20534fb41 Bump gateway version to 0.7.8
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 20:26:55 +01:00
9a1b119c9f Remove Prometheus tracking for forwarded requests
Forwarded requests were being logged in the function metrics and
I saw this when doing some testing on auto-scaling with K8s.

This change removes the call to the Prometheus notifier for any
calls which are forwarded to the provider and retains them for the
functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 13:12:29 +01:00
949810c403 Update troubleshooting guide about namespaces
Updated to show how to use namespaces with Kubernetes
Also updates the timeouts for gateways newer than 0.7.7
2018-03-26 09:21:59 +01:00
de2c74fcdb Add feature for graceful shutdown of HTTP server
If the watchdog is sent SIGTERM from an external process then it
should stop accepting new connections and attempt to finish the
work in progress. This change makes use of the new ability in Go
1.9 and onwards to cancel a HTTP server gracefully.

The write_timeout duration is used as a grace period to allow all
in-flight requests to complete. The pattern is taken directly from
the offical example in the Golang documentation. [1]

Further tuning and testing may be needed for Windows containers which
have a different set of signals for closing work. This change aims
to cover the majority use-case for Linux containers.

The HTTP health-check is also invalidated by creating an and
expression with the existing lock file.

Tested with Kubernetes by deploying a custom watchdog and the
fprocess of `env`. Log message was observed when scaling down and
connections stopped being accepted on terminating replica.

Also corrects some typos from previous PR.

[1] https://golang.org/pkg/net/http/#Server.Shutdown

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-24 16:38:46 +00:00
6921e4fc0f Bump gateway to 0.7.7 for direct function access
0.7.7 allows direct function access bypassing the provider - this makes
the throughput increase and skips a HTTP hop that is no longer required.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-24 16:33:34 +00:00
ca425b8183 Adding Azure AKS Part 2 to community.md
Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2018-03-24 08:29:17 +00:00
ca15008adc guide,do: switch to ubuntu-17-10-x64
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2018-03-23 21:26:26 +00:00
4877a60aee Changed the download functionality to cover IE.
Since IE doesn't work well with `.click()` (because of access denied) we
can take advantage of the `navigator.msSaveOrOpenBlob`.
https://stackoverflow.com/questions/46232980/click-giving-access-denied-in-ie11/46233123#46233123

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-03-23 16:43:38 +00:00
c633fbb96d Fix mouse click error on IE11
MouseEvent initialization was failing on IE11.
Add a separate case for IE11 that fixes the issue.

Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com>
2018-03-23 16:43:38 +00:00
0f126ce241 Fix crypto breaking error for IE11
window.crypto is throwing an error on IE11
which required a modification to use window.msCrypto
instead in case of running on IE11

Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com>
2018-03-23 16:43:38 +00:00
f36b84bb18 Update community.md
Added blog post, podcast episode, 3 speaking engagements, and author to a 2017 blog/podcast row to fix formatting.

Signed-off-by: John Callaway <john@1north.com>
2018-03-23 16:40:56 +00:00
5824d865c6 Add a title to the index.html for the gateway
This will replace the gateway URL showing up as the title.

Signed-off-by: David Muckle <dvdmuckle@dvdmuckle.xyz>
2018-03-23 16:38:19 +00:00
f9d081accb Remove invalid UPDATE HTTP Method from watchdog
The UPDATE HTTP Method isn't valid and not currently in use by the
watchdog so removing it.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-03-23 16:37:33 +00:00
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
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
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
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
04718101ff Community.md missing blog post by BurtonR
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-03-21 13:21:58 +00:00
fa97882234 Add Contino blog post 2018-03-21 08:52:54 +00:00
9f87511ab3 Add John's event for CPH and two VMware blogs 2018-03-21 08:49:27 +00:00
f604b20503 Add 2018 events for Alex / Nic 2018-03-21 08:40:06 +00:00
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
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
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
e72252d17d Correct typo in signed-off message 2018-03-18 19:05:19 +00:00
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
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
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