12 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
d08553ed3f Update examples to remove Swarm format in stack.yml
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-09-21 17:45:45 +01:00
Alex Ellis (OpenFaaS Ltd)
830ec7286d Switch to idomatic approach for creating URLs
Switches to more Go-idomatic approach for creating URLs and
populating querystrings.

There is an unexplained error in the certifier project, and
this indirection is not helping with debugging errors.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-24 11:42:33 +00:00
Alex Ellis (OpenFaaS Ltd)
77ad215bcc Generate annotations in OpenFaaS CR output
The faas-cli generate command was missing support for
annotations. Fixes: #890

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2021-06-03 08:50:11 +01:00
Alex Ellis (OpenFaaS Ltd)
c8fbda1e86 Migrate to GA Knative serving service
The Knative serving service we were generating was out of
date, this PR changes that to work with the latest schema.

Changes have been tested with env vars and --tag=sha

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-10-16 14:10:43 +01:00
Alex Ellis (OpenFaaS Ltd)
0ab4012784 Depreciate generic "faas" provider for "openfaas"
The openfaas provider was introduced as a default over 8 months
ago, so anyone still using the generic and legacy term "faas"
should update their stack.yml file. Simply replacing "faas" with
"openfaas" is sufficient, all files created over the past
8 months+ should already have this text.

This is the final step of the depreciation of the legacy
provider "faas" and has no bearing on functionality.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-12-01 08:48:54 +00:00
Alex Ellis
8bf3a93b94 Replace empty env-vars with default value
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-04-08 20:27:09 +01:00
Alex Ellis
bcff3a6bc8 Rename provider YAML faas to openfaas
The provider name value of faas is archaic and should be changed
to openfaas. The CLI code already supports this but the generated
values use the text faas still.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-03-06 17:20:31 +00:00
Alex Ellis (VMware)
c4f266bbc8 Comment out limits/requests
Swarm and Kubernetes currently need a different format for these
fields so I'm commenting out the fields to prevent confusion with
new users. Pro users should uncomment the lines if they want to.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-04-06 08:28:48 +01:00
Alex Ellis (VMware)
80a9178015 Add note for Kubernetes
Kubernetes needs a specific deployment format for memory limits.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 16:21:32 +01:00
Alex Ellis (VMware)
1bb9a369f5 Bump templates to 0.7.8 watchdog
Brings templates for samples up to 0.7.8 watchdog.

Expands minimum memory to 40MB for each sample function - much
lower and the pod was never scheduled by Kubernetes.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 16:01:24 +01:00
Alex Ellis (VMware)
942119bbf1 Move from localhost to 127.0.0.1 as a default for IPv6 clashes, add env-var OPENFAAS_URL as override for gateway URL for Kubernetes users
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-12 19:39:48 +01:00
Alex Ellis
f2e8061d65 Move samples.yml to stack.yml (default) and update references in shell scripts
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-06 22:04:13 +00:00