Releases: openfaas/faas-cli
Releases · openfaas/faas-cli
Update target URL for default store
Update default store URL The rawgit site appears to be getting shut-down: https://rawgit.com Signed-off-by: Alex Ellis <[email protected]>
Fix gofmt for release build
Signed-off-by: Alex Ellis <[email protected]>
Generate secret projections for Knative serving
Changelog:
- Generate secret projections for Knative serving c9544f5
This commit projects secrets into the Knative CRD YAML, however
it appears that the CRD validator for the Service object will
now allow multiple volumes to be mounted into the same directory
which breaks compatiability with OpenFaaS on Kubernetes.
A separate directory is used for each secret with the key so
that "aws" will be mounted at /var/openfaas/secrets/aws/name.
$ cat stack.yml
provider:
name: openfaas
gateway: http://127.0.0.1:8080 # can be a remote server
network: "func_functions" # this is optional and defaults to func_functions
functions:
secret-print:
image: functions/alpine:latest
environment:
fprocess: "cat /var/openfaas/secrets/alex/name"
secrets:
- alex
- matias
Produces:
faas-cli generate --api serving.knative.dev/v1alpha1
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: secret-print
namespace: openfaas-fn
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: functions/alpine:latest
env:
- name: fprocess
value: cat /var/openfaas/secrets/alex/name
volumeMounts:
- name: alex
mountPath: /var/openfaas/secrets/alex
readOnly: true
- name: matias
mountPath: /var/openfaas/secrets/matias
readOnly: true
volumes:
- name: alex
secret:
secretName: alex
- name: matias
secret:
secretName: matias
Generate CRDs from store and Knative serving Service
Changelog:
Example commands:
# Generate CRD entry for a store function
$ faas-cli generate --from-store figlet
---
apiVersion: openfaas.com/v1alpha2
kind: Function
metadata:
name: figlet
namespace: openfaas-fn
spec:
name: figlet
image: functions/figlet:0.13.0
# Generate a CRD entry to deploy to Knative serving
$ faas-cli generate \
--api serving.knative.dev/v1alpha1 \
--from-store figlet
---
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: figlet
namespace: openfaas-fn
spec:
runLatest:
configuration:
revisionTemplate:
spec:
container:
image: functions/figlet:0.13.0
Add OPENFAAS_PREFIX env-var for new functions
Changelog:
- Add unit test cases for secrets proxy #588 by @viveksyngh
- Fix unit test for builder #627 by @viveksyngh
- Allow --prefix flag for new command to be overridden by
OPENFAAS_PREFIX
#634 by @alexellis
Patch release
Link to cli.openfaas.com repo Added link to repo for updates to the get.sh file Signed-off-by: Burton Rheutan <[email protected]>
Add envsubst support to stack.yml
Changelog:
- Add envsubst support to stack.yml #626 @alexellis
- Update "faas-cli new" help message #621 @alexellis
- Add build-label flag for build command #567 @viveksyngh
UX improvements to faas-cli new
Changelog:
- UX improvements to faas-cli new #621
Allow shrinkwrap of Dockerfile template
Changelog:
- Allow shrinkwrap of Dockerfile template #615
Default provider name to openfaas
Changelog:
- For new functions we now default the provider name to openfaas