147 Commits

Author SHA1 Message Date
Martin Dekov (VMware)
4d73e21906 Bump watchdog to 0.9.4
Bumping the watchdog to 0.9.4 in
mentioned places

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-09-19 21:04:53 +01:00
Alex Ellis (VMware)
b786104f3a Rename nodeinfo image to match store
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-15 14:25:31 +01:00
Radoslav Dimitrov
c062e4dbde Sample-functions: Get watchdog using curl instead of ADD - arm64
Convert all sample-functions to use curl to get the watchdog as
it can be cached by Docker. Issue #841

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-09-06 15:03:10 +01:00
Radoslav Dimitrov
c28747890c Sample-functions: Get watchdog using curl instead of ADD - armhf
Convert all sample-functions to use curl to get the watchdog as
it can be cached by Docker. Issue #841

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-09-06 15:03:10 +01:00
Radoslav Dimitrov
cdbd25c0fb Sample-functions: Get watchdog using curl instead of ADD - amd64
Convert all sample-functions to use curl to get the watchdog as
it can be cached by Docker. Issue #841

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-09-06 15:03:10 +01:00
Alex Ellis (VMware)
a99ad5708b Move watchdog to latest version in samples
Moves to 0.9.0

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-30 11:20:52 +01:00
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
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
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
Edward Wilde
be907d220c Adds annotation attribute to CreateFunctionRequest
1. Add new annotation attributes which may be used
by the back-end for making scheduling or routing decisions.

2. Updated tests/README.md to give clearer instructions on creating and
tearing down the stack required to run the integration tests

3. Update ci.sh
 * Fail as soon as an error is encountered
 * Allow script to run locally in development environment, test if repos
are already cloned etc..
 * Deploy ./stack.yml used by existing integration tests

Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-20 19:51:17 +01:00
Alex Ellis (VMware)
f23d90d441 Remove braces for Python sample
Suggested by community member in an un-merged PR.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-10 21:14:45 +01:00
Alex Ellis (VMware)
9618bc3f7c Remove brace from Python sample
Suggsted in #756

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-10 21:07:36 +01:00
Lucas Roesler
41bda568a7 Update secret docs and sample-functions
**What**
- Update the documentation about secret management to note the changed
file location
- Remove the documentation on secret rotation, because this will not
currently work
- Update apikey-secret and ApiKeyProtected-Secrets to read secret values
from both the old and the new locations

**Why**
- Recent updates to faas-swarm and faas-netes changed the mount location
of secrets.  These changes update the docs to reflect this change.

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-06-17 05:00:52 -07:00
Sean Smith
2292aab829 Update to golang 1.9.7
Issue #660 has been open for a while to update to 1.9.6, this
performs the update to the latest in the 1.9 release (1.9.7)

Signed-off-by: Sean Smith <sean@wwsean08.com>
2018-06-16 08:37:11 -07:00
Ivana Yovcheva (VMware)
7f6295c9cf Update alpine version to 3.7
This updates alpine version to 3.7 in sample-functions, gateway
and some markdown docas.

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-05-11 14:14:59 +01:00
Ivana Yovcheva (VMware)
975cf4be7c Update watchdog version to 0.8.0
This updates watchdog version to latest 0.8.0 in the functions
samples and documentation

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-05-11 14:14:59 +01:00
Alex Ellis (VMware)
bfe239de4d Add pwgen and bump Alpine base image
Alpine Base image goes to 3.7 (latest)

pwgen sample added.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-20 15:47:22 +01:00
rgee0
7ab969fdfb Fix apikey-secret README.md
Following the existing README instructions would result in an error
when the user attempted to create the secret.  This small change
remediates the instruction so that the secret is successfully created.

Signed-off-by: rgee0 <richard@technologee.co.uk>
2018-04-16 06:33:46 -07:00
Ivana Yovcheva (VMware)
f936dcd757 Update watchdog version to 0.7.9 in function templates and docs
This updates fwatchdog to latest version (0.7.9) in all templates
in sample-functions and faas version in the documentation

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-04-12 22:36:26 -07:00
Vivek Singh
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
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
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
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
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
Alex Ellis
bcc74f5dc6
Update wrong tag - dev to latest 2018-02-25 11:54:52 +00:00
John McCabe
19e7f4639e Complete bump to 0.7.1 watchdog and repo.
Also bumps golang builder version to 1.9.4 for sample functions.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-02-25 11:54:21 +00:00
John McCabe
4e9d999554 Bump gateway and watchdog tags/versions
This commit bumps the non-arm gateway from 0.7.0 to 0.7.1 and the arm
variants from 0.6.9 to 0.7.0.

It also updates all watchdog versions to the 0.7.1 release.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-02-25 11:54:21 +00:00
Alex Ellis
d012c46162
Update README.md 2018-02-23 08:23:29 +00:00
Alex Ellis
a96bf1de94
Update README.md 2018-02-23 08:22:57 +00:00
Alex Ellis
bf91f3f0a7 Move samples.yml to default name of stack.yml, upgrade to 0.7.0 in all samples
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-06 22:00:24 +00:00
Alex Ellis
7e7442e8d3 Move Dockerfile to dockerfile
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-06 21:42:54 +00:00
Alex Ellis
1bdd9cb75d Fix armhf sample
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-01-10 21:58:55 +00:00
Alex Ellis
b3b9273a9c Add figlet example
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-01-10 21:56:46 +00:00
Alex Ellis
01450bdf17 Add nmap sample
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-30 21:27:20 +00:00
Alex Ellis
1c2817c834 Delete old shell scripts
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-28 19:17:59 +00:00
Alex Ellis
05cdbcc04d Remove un-needed shell files
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-28 19:15:29 +00:00
Alex Ellis
6199c61178 Remove non-async deployment option
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-22 09:14:56 +00:00
Lucas Roesler
5f30c7570f Use builder pattern in ApiKeyProtected-Secrets
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2017-12-16 16:08:52 +00:00
Lucas Roesler
4fb53be0e4 Remove obsolete docker build
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2017-12-16 16:08:52 +00:00
Lucas Roesler
156103e2db Update the sample functions
**What**
- Move the new secrets sample function to ApiKeyProtected-Secrets
- Bring back the original ApiKeyProtected sample function

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2017-12-16 16:08:52 +00:00
Lucas Roesler
35f0e9e657 Clean up docs and refactor createhandler
**What**
- Add a description for the secret key to the api swagger spec.
- Remove optional examples from the secret management guide.
- Update the ApiKeyProtected README to point at the new guide.
- Refactor the `makeSpec` function to accept the already assembled secrets
array because this should be easier to unit test.

Signed-off-by: Lucas Roesler <lucas.roesler@gmail.com>
2017-12-16 16:08:52 +00:00
Lucas Roesler
0fef825fb4 Add support to specify secrets in services
**What**
- During function creation, accept an array of strings defining swarm secrets
that are required for the service
- Update docs
- Add new guide on using the secrets capability
- Add new sample function to highlight using environment variables
- Update `ApiKeyProtected` sample function to utilize the new secrets
capabilities

**Why**
- This allows secrets to remain encrypted at rest instead of being unencrypted
in environment variables and yaml files.

Fixes #285

Signed-off-by: Lucas Roesler <lucas.roesler@gmail.com>
2017-12-16 16:08:52 +00:00
Alex Ellis
39f5119e49 Add NATS for armhf
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-11-09 12:42:46 +00:00
Alex Ellis
a077dd7627 Bump samples/versions - reduce image sizes through multi-stage builds
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-11-09 11:20:40 +00:00