1335 Commits

Author SHA1 Message Date
Burton Rheutan
a51d42c983 Download vendor cdn files for gateway
This change set downloads the CDN resources for the gateway
and bundles them with the other static resources for the UI.

This is needed for situations where a user does not have access
to the CDN either because of firewall rules or network policy.

The files and versions remain the same, only now loaded locally
with directory paths matching the CDN paths.

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-12-05 20:20:15 +00:00
Radoslav Dimitrov
350907aacd Update gateway to golang:1.10.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-12-05 19:59:18 +00:00
Alex Ellis (VMware)
6ef5ef73cc Update arm64 build of gateway
- adds version folder - tested on Rock64

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-12-04 11:15:38 +00:00
Lucas Roesler
830159bda3 Bump the faas-swarm version in the compose yml
**What**
- Update the fass-swarm version to 0.5.0

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-11-29 10:58:22 +00:00
marcus-smallman
d22af7cf74 Add csharp mongodb template to community file
Signed-off-by: marcus-smallman <marcussmallman@live.co.uk>
2018-11-29 10:48:39 +00:00
Ivana Yovcheva (VMware)
b1d1fe21e0 Add OpenFest and IstaCon events in November
A talk on IstaCon, Sofia, workshop on OpenFest, Sofia, and a
lightning talk during the same event are added to the events list

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-11-26 16:37:05 +00:00
Alex Ellis
891ea8bda3
Add 2x micro-tutorials
Added two micro-tutorials

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-24 17:49:21 +00:00
Alex Ellis (VMware)
495cf9e7af Add CODEOWNERS
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-22 17:50:13 +01:00
Alex Ellis
fb1adb0d5d
Add pr_description_required
Add pr_description_required to default YAML file for Derek.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-11-22 13:32:28 +01:00
Ivana Yovcheva
fe6974c74a Fix scale from zero to be true by default
Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-11-22 13:30:20 +01:00
Alex Ellis (VMware)
d6e58a4ea7 Add PHPConference Brazil
- closes #974

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-21 14:22:43 +01:00
Alex Ellis (VMware)
956bfed53d Bump gw to 0.9.11
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-21 14:19:04 +01:00
Alex Ellis (VMware)
7c6e242f2f Add note on Yagni
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-19 08:40:48 +01:00
Laurent Grangeau
6cc9481165 Add DevOpsDDay and Capitole du Libre conferences from France
Signed-off-by: Laurent Grangeau <laurent.grangeau@gmail.com>
2018-11-17 14:57:46 +00:00
Martin Dekov (VMware)
ade5f32513 Bump files to use alpine:3.8
Bump Dockerfiles and mentions of alpine 3.7 to be now
3.8

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-11-16 20:27:05 +00:00
Kendrick Coleman
2944b9393c Add VMworld 2018 Speaking Session
Added VMworld 2018 Speaking Session on Creating Your First Serverless Function with OpenFaaS

Signed-off-by: Kendrick Coleman <kendrickc@vmware.com>
2018-11-16 20:26:26 +00:00
Richard Gee
78a4584019 Add sha256 hashgen for watchdog to ci config
Issue #955 suggested that the watchdog binaries should have associated sha256 files to help assure the veracity of the built artefacts.  This change mirrors the method employed on
faas-cli to generate and deploy the sha256 hash for each flavour of the current watchdog.

Signed-off-by: Richard Gee <richard@technologee.co.uk>
2018-11-14 22:02:21 +00:00
Martin Dekov (VMware)
98a76c6949 Bump gateway to 0.9.10
Bumping gateway image for armhf and x64-86 to be the latest
0.9.10

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-11-12 10:24:56 +00:00
Philippe Charrière
2bd78e0dcf Add blogpost + project
Signed-off-by: Philippe Charrière <pcharriere@gitlab.com>
2018-11-11 20:27:10 +00:00
Burton Rheutan
6e45707234 Add blog post from golem.de to community
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-11-11 15:36:31 +00:00
Swarvanu Sengupta
37a30a46a2 Add faasflow reference in the community
Signed-off-by: Swarvanu Sengupta <swarvanusg@gmail.com>
2018-11-11 12:31:45 +00:00
Burton Rheutan
ee077e14a4 Add Austin meetup event to community file
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-11-09 20:50:20 +00:00
Vivek Singh
80e1a61349 Add banaglore kubernetes meetup event
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-11-09 07:29:28 +00:00
Shaun Berryman
69c1db4561 Update incubator link
Incubator link is pointing to the main OpenFaaS GitHub organization instead of the OpenFaaS-Incubator organization.

Signed-off-by: Shaun Berryman <shaun@shaunberryman.com>
2018-11-08 21:25:44 +00:00
Thomas Peikert
053003bd7c Add link to Crystal Template
Signed-off-by: TPei <t.s.peikert@gmail.com>
2018-11-08 19:22:14 +00:00
Alex Ellis (VMware)
b4c12f824b Make use of cache in scaling
- this reinstates the cache to reduce the count of lookups to the
provider when checking if scaling is needed.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-07 13:49:56 +00:00
Alex Ellis (VMware)
117707df14 Enable backoff/retries on scaling up
- this change is needed for Docker Swarm which may give an error
when several concurrent requests come in to scale a deployment.

Tested on Docker Swarm before/after with the hey tool and figlet
scaled down to zero replicas.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-07 13:49:56 +00:00
Alex Ellis
446c8672ae
Add Ed to Core Contributors
This commit adds Ed to the Core Contributors

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-05 16:17:29 +00:00
Patricio Diaz
93615598be Added blog entry Using GraphQL in OpenFaaS functions
Signed-off-by: Patricio Diaz <padiazg@gmail.com>
2018-11-05 13:53:24 +00:00
Alex Ellis (VMware)
169431375d Enable hashed passwords with PowerShell
- PR #929 introduced the ability to generate passwords for the
gateway admin user, this is a good step forwards for Windows
users. It did introduce an inconsistency in the format that
passwords are stored by not using a form of hashing. Hashing
of secrets is used extensively within OpenFaaS/OpenFaaS Cloud
whether with Swarm or Kubernetes via helm. If there are
concerns about using a hashed value for a password I would
suggest raising an issue to track this and have any decision
we make applied for all users (not just PowerShell users).

As a  compromise I've introduced hashing by default and added
a new flag called -noHash which can be used to replicate the
behaviour of the original PR.

After feedback from other contributors I also looked into whether
the flag syntax could match the existing syntax but left this as
is. Bash will use --no-auth and PowerShell will use --noAuth.

This was tested on Docker Swarm on Windows.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-04 20:37:11 +00:00
John McCabe
47a834c830 Print same deploying message as sh installer
Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
John McCabe
cb4aa8f352 Suppress stdout when creating secrets
- copies behaviour from bash installer

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
John McCabe
785bd6d69b Add -help to deploy_stack.ps1
Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
John McCabe
5d7776c951 Generate user/pass for PowerShell deploy script
- Generates the password to mirror deploy_stack.sh
- Uses hardcoded admin to mirror deploy_stack.sh
- Uses throw to exit when error
- Updates faas-cli login command for Powershell

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
John McCabe
7d5955b6f2 Check that Docker is in Swarm mode
This commit updates deploy_stack.ps1 to check that Docker is running in
Swarm mode before proceeding.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
John McCabe
8d041efd0c Prompt for user/password in deploy_stack.ps1
This commit updates the Windows deploy_stack.ps1 to set the
basic-auth-user and basic-auth-password secrets if absent.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-11-04 20:13:18 +00:00
Emmanuel Lebeaupin
70b4873f70 Add conference in Nantes
Signed-off-by: Emmanuel Lebeaupin <emmanuel.lebeaupin@gmail.com>
2018-11-04 10:42:53 +00:00
Alex Ellis (VMware)
9cea08c728 Extract scaling from zero
- extracting this package means it can be used in other components
such as the asynchronous nats-queue-worker which may need to
invoke functions which are scaled down to zero replicas.

Ref: https://github.com/openfaas/nats-queue-worker/issues/32

Tested on Docker Swarm for scaling up, already scaled and not
found error.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-01 15:10:08 +00:00
Radoslav Dimitrov
fb06e299cf Update .gitignore to discard /contrib/staging/
Omit the staging directory created by the publish-armhf.sh script

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-28 16:29:39 +00:00
Burton Rheutan
4812859516 Add blog post from k33g
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-10-28 15:58:33 +00:00
Burton Rheutan
5a87f6c6d1 Add blog post from Saurabh Londhe
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-10-28 15:14:11 +00:00
Alex Ellis (VMware)
101b06243b Add documentation for scaling handler
- documents ScalingConfig and MakeScalingHandler

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-28 12:24:25 +00:00
Philippe Charrière
0601794e23 Add a blog post
Hello, I added a blog post https://k33g.gitlab.io/articles/2018-10-20-OPENFAAS.html
It's a kind of quick start

Signed-off-by: Philippe Charrière <pcharriere@gitlab.com>
2018-10-26 19:46:37 +01:00
Lucas Roesler
7e36b2477d Update nats-streaming to 0.11.2
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Lucas Roesler
cbf39f0069 Bump nats-streaming version to 0.11.0
**What**
- Bumpe nats-streaming version to 0.11.0 in the docker-compose files
- Addresses #790

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Radoslav Dimitrov
05c7b3f9ee Add openfaas-operator to the ARMHF build script
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-26 08:17:17 +01:00
Alex Ellis (VMware)
63e948fce1 Add sample function
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-25 12:57:02 +01:00
Alex Ellis (VMware)
f5939c9a60 Update for scaling edge-case
- as reported on Slack and in issue #931 the gateway scaling code
was scaling to zero replicas as a result of the "proportional
scaling" added by @Templum's PR. This commit added a failing test
which was fixed by adding boundary checking - now if the scaling
amount is "0" we keep the current amount of replicas.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-25 11:47:47 +01:00
Alex Ellis (VMware)
4a6c6afe94 Bump gw version to 0.9.7
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-21 12:49:43 +01:00
Alex Ellis
17a9b736fb
Update CONTRIBUTING.md 2018-10-20 18:07:58 +01:00