1209 Commits

Author SHA1 Message Date
Edward Wilde
b564243f32 Update alpine function to enable patch support
Relates to: #815"

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-08-30 11:09:26 +01:00
Patricio Diaz
3b4c1d90eb Bump Prometheus & AlertManager
Updated Swarm image versions for Prometheus &
Alertmanager to match Kubernetes stack

- Prometheus: v2.2.0 => v2.3.1
- Alertmanager: v0.15.0-rc.0 => v0.15.0

Signed-off-by: Patricio Diaz <padiazg@gmail.com>
2018-08-29 19:42:29 +01:00
Alex Ellis (VMware)
810e11c1f6 Bump GW to 0.9.0
Adds PATH support over HTTP for functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:47:23 +01:00
Alex Ellis (VMware)
9c2f6dd2a4 Fix bug introduced by URL transformer
This prevented Prometheus metrics from being gathered from the
URL.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:41:04 +01:00
Alex Ellis (VMware)
6055cafd4a Set Docker image NS to openfaas
This was altered to "alexellis" for building a testing image,
but shouldn't have been pushed. Reverting.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:41:04 +01:00
Alex Ellis (VMware)
e551d12b65 Add test coverage for FunctionPrefixTrimmingURLPathTransformer
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:41:04 +01:00
Alex Ellis (VMware)
4367fc4e35 Add test coverage for buildUpstreamRequest
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:41:04 +01:00
Alex Ellis (VMware)
2f98ca8802 Review changes for HTTP paths
This reviews the code and fixes up suggestions made by team for
the HTTP paths PR #789.

- Removed feature-flag (this is backwards-compatible, so I see
no value in adding the flag)
- There was a URL transform happening for calls proxied to the
back end, I changed this for the nil-transform - i.e. it does not
change anything in the URL
- Introduced variables to describe the regex indicies used in
the URL trimming.

Tested with Docker Swarm with a ruby-microservice, with
system calls and with function calls using the UI.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:41:04 +01:00
Thomas E Lackey
b1846b842c Add a non-capturing subgroup so that the function regex will match async functions as well.
Signed-off-by: Thomas E Lackey <telackey@bozemanpass.com>
2018-08-29 12:41:04 +01:00
Thomas E Lackey
8749e0d891 Only truncate '/function/...' paths.
Signed-off-by: Thomas E Lackey <telackey@bozemanpass.com>
2018-08-29 12:41:04 +01:00
Thomas E Lackey
decf9addb3 Make 'URLPathTransformer' interface and implementation to do the function prefix trimming instead of baking it in. Also add a configuration option, 'pass_url_path_to_functions' to control whether the full path is passed to the functions or not.
Signed-off-by: Thomas E Lackey <telackey@bozemanpass.com>
2018-08-29 12:41:04 +01:00
Thomas E Lackey
7870b87c38 Implement proposal 716, passing full paths through the Gateway and fwatchdog.
Previously, only the query string of the URL was passed through the Gateway.
With this change, the entire path requested by the client is passed through as well as the query string.

While fwatchdog already supported passing the path through, in practice this would not happen
since the Gateway would have swallowed it before forwarding the request to the watchdog.

With this change, the path portion after the function name is added to the Http_Path environment
variable, provided that cgiHeaders are enabled.  This is similar to the of-watchdog equivalent.

Signed-off-by: Thomas E Lackey <telackey@bozemanpass.com>
2018-08-29 12:41:04 +01:00
Ivana Yovcheva (VMware)
05cf688270 Update blog post/write-ups section with Cisco DevNet Sandbox
This updates the blog post section with OpenFaaS being mentioned
on Cisco DevNet Sandbox Cloud section and blog post for OpenFaaS
on Kubernetes from 2 Jan 2018 again in DevNet Sandbox

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-08-29 10:30:28 +01:00
Alex Ellis (VMware)
5ad927aa15 Add Makefile for Prometheus/armhf
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 07:36:38 +00:00
Alex Ellis (VMware)
5855d9ae86 Add Makefile for alertmanager-armhf
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-28 19:52:17 +00:00
Alex Ellis (VMware)
2a2380a10b Upgrade armhf/arm64 imasges for Prometheus
Covers Prometheus and AlertManagerx

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-28 19:50:29 +00:00
Alex Ellis (VMware)
220a5d61ba Add ARM64 Prometheus version
Adds 2.2.0

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-28 19:39:01 +00:00
Alex Ellis (VMware)
1047fd9a97 Add a space to Lucas' name
Also removed rouge `**` character from markdown

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-28 09:43:51 +01:00
Ken Fukuyama
ddc59f6403 Updated copyright
Added OpenFaaS Author(s) to show distributed copyright.

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-08-24 09:01:41 +01:00
Ken Fukuyama
9ceac9c67e Renamed ServiceReplicasCounter to ServiceReplicasGauge
To avoid future confusion, this fix renames ServiceReplicasCounter to
ServiceReplicasGauge.

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-08-24 09:01:41 +01:00
Ken Fukuyama
4fabd50799 Changed Metrics to be exposed via Exporter
This change exposes the gateway metrics with an exporter which
implements the Collector interface of prometheus.
This change Fixes #697

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-08-24 09:01:41 +01:00
Ken Fukuyama
6d6a487711 Renamed externalwatcher to exporter
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-08-24 09:01:41 +01:00
Ken Fukuyama
b73e14be92 Automatically select 'Download' for store functions
This minor fix selects the 'Download' radio button by default if the
function has a label with `com.openfaas.ui.ext`.
Closes #827

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-08-24 08:54:27 +01:00
Alex Ellis
b3a71b456a Bump ARMHF versions to latest
Versions now in sync with x86_64:

* `openfaas/gateway:0.8.12-armhf`
* `openfaas/faas-swarm:0.4.1-armhf`
* `openfaas/queue-worker:0.4.9-armhf`

Also moves from functions/ to openfaas/

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-08-24 07:11:22 +00:00
Alex Ellis (VMware)
273c8a40e7 Make push.sh runnable
Added chmod +x

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-23 22:09:53 +01:00
Alex Ellis (VMware)
64e7de4288 Add armhf build steps
This will help with CI for ARMHF

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-23 21:44:03 +01:00
Martin Dekov (VMware)
91b6c24494 Bump up the gateway to 0.8.11
I am moving gateway build version to 0.8.11

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-08-22 20:12:04 +01:00
Edward Wilde
e9f5be107b Adds support for additional PATCH HTTP verb
Full list of supported verbs is now supported: "GET", "POST", "PUT",
"PATCH", "DELETE"

Relates to: #openfaas/faas/issues/815

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-08-22 20:10:03 +01:00
Alex Ellis
979cb51619
Remove inactive contributors
Removed Eric on his request

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-22 17:13:21 +01:00
Stanton Xu
3c9b97a2b2 Delete duplicated bartsmykla from DEREK users list.
Signed-off-by: Stanton Xu <xjiefeng@gmail.com>
2018-08-22 08:07:28 +01:00
Stanton Xu
f2306bc5ee Amend Derek users in .DEREK.yml file
Remove the duplicated `viveksyngh` and add full-time team `bartsmykla`

Signed-off-by: Stanton Xu <xjiefeng@gmail.com>
2018-08-22 08:07:28 +01:00
Stanton Xu
5523c9026a Amend Derek users in .DEREK.yml file
Addressing issue #824, added bartsmykla, LucasRoesler, s8sg, viveksyngh, 
removed ovation22, cpitkin, jockdarock, itscaro

Signed-off-by: Stanton Xu <xjiefeng@gmail.com>
2018-08-22 08:07:28 +01:00
Alex Ellis (VMware)
9a879c96c3 Add note on health-checks for Kubernetes and Swarm
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 14:57:28 +01:00
Alex Ellis (VMware)
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
Alex Ellis (VMware)
24dfcb62c2 Add ci-armhf to Makefile
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 12:19:26 +01:00
Alex Ellis (VMware)
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
Alex Ellis (VMware)
73254f798b Add haveibeenpwned to functions Docker prefix
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 08:26:50 +01:00
Dmitri Rubinstein
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
Dmitri Rubinstein
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
Alex Ellis (VMware)
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
Alex Ellis
2031c64183
Add two blogs
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-16 08:43:28 +01:00
Alex Ellis (VMware)
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
Alex Ellis (VMware)
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
Alex Ellis (VMware)
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
Alex Ellis (VMware)
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
Jonas Rosland
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
Ivana Yovcheva (VMware)
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
Simon Pelczer
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
Simon Pelczer
4963f39e87 Adjusted Swagger.yaml accordingly to feedback
Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00
Simon Pelczer
f674211ee8 Fixed Typo
Signed-off-by: Simon Pelczer <templum.dev@gmail.com>
2018-08-07 17:56:47 +01:00