1312 Commits

Author SHA1 Message Date
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
Richard Gee
7df548668f Add logging to scale from zero requests
Trivial change to add logging around scale from zero events in scaling.go.
Previously scale from zero events were not logged in the same way that normal
scaling events are.  This change adds log writes to show when a scale from zero
was requested and when a function successfully moved to > 0 replicas.

Signed-off-by: Richard Gee <richard@technologee.co.uk>
2018-10-20 08:56:14 +01:00
qinpengfei
70a5e343c5 code formatter
Signed-off-by: qinpengfei <qinpengfei@jd.com>
2018-10-19 21:24:15 +01:00
Alex Ellis (VMware)
476b652c26 Update integration test
We now send Accepted not OK for creating functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-19 21:19:21 +01:00
Alex Ellis (VMware)
62525f6570 Don't follow redirects from functions
- Covers part of 919 by making the HTTP client used for proxying
stop following redirects. Tested with a stateless microservice,
but additional code changes may be requierd in the queue-worker,
the watchdogs and other areas.

Tested on Swarm with stateless microservice (Node.js) issuing
a redirect via Location header.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-19 21:19:21 +01:00
Radoslav Dimitrov
31e5439550 Bump queue-worker version to 0.5.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
2d52206c79 Bump faas-swarm version to 0.4.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
204c0d7f9a Bump the watchdog version to 0.9.6
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 08:45:05 +01:00
Radoslav Dimitrov
456e4f5c2f Bump the gateway version to 0.9.6
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 08:45:05 +01:00
John McCabe
76af9298dc Add VMUG Ireland event to community
Signed-off-by: John McCabe <john@johnmccabe.net>
2018-10-15 21:30:58 +01:00
John McCabe
4579cefd5e Add ScotlandPHP Keynote to community
Signed-off-by: John McCabe <john@johnmccabe.net>
2018-10-15 21:30:58 +01:00
Patricio Diaz
1d560f589f Added KubeCon+CloudNativeCon 2018 Event
Signed-off-by: Patricio Diaz <padiazg@gmail.com>
2018-10-15 15:59:04 +01:00
Lucas Roesler
9170ea6bd7 Fix typo in community providers table
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-13 11:44:12 +01:00
Lucas Roesler
e475436cca Split providers table into two
**What**
- Split the table into official providers and community providers
- Move the site links to the site column

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-13 11:44:12 +01:00
Lucas Roesler
9f53edd37e Add openfaas-operator to the provider table
**What**
- Add openfaas-operator as a provider with status Incubation

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-13 11:44:12 +01:00
Radoslav Dimitrov
d1a22df522 ARMHF publishing script - remove jq dependency
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-13 11:05:12 +01:00
Ken Fukuyama
7aa37c6c1e Add Japanese events and blog posts
Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-10-13 10:28:01 +01:00
Alex Ellis
d0c770ddff
Add event locations to my talks 2018-10-13 09:45:01 +01:00
Alex Ellis
89ac0addd6
Add Lambda blog post and update key
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-10-12 12:23:06 +01:00
Alex Ellis
8a78710409
Add 2x packtpub.com books
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-10-12 12:18:04 +01:00
Alex Ellis
f720e7a0dc
Add 2018 Bossie 🏆🏆!
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-10-12 12:14:04 +01:00
Edward Wilde
d78df06606 Add terraform provider to community.md
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-10-12 12:11:51 +01:00
Alex Ellis (VMware)
1dcc887554 Bump figlet version
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-09 16:55:36 +01:00
Vivek Singh
41876cc932 Update queue worker version to 0.5.3
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-10-04 15:28:35 +03:00