Skip to content

Releases: openfaas/faas-cli

Update target URL for default store

25 May 21:05
Compare
Choose a tag to compare
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

11 May 15:05
Compare
Choose a tag to compare
Signed-off-by: Alex Ellis <[email protected]>

Generate secret projections for Knative serving

11 May 14:44
Compare
Choose a tag to compare

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

11 May 11:43
Compare
Choose a tag to compare

Changelog:

  • Generate CRD from store images #637
  • Add knative serving v1alpha1 to generate CRD command #638

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

02 May 13:40
Compare
Choose a tag to compare

Changelog:

Patch release

27 Apr 12:55
Compare
Choose a tag to compare
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

08 Apr 19:32
Compare
Choose a tag to compare

Changelog:

Docs: environment variable substitution in stack.yml

UX improvements to faas-cli new

02 Apr 12:37
Compare
Choose a tag to compare

Changelog:

  • UX improvements to faas-cli new #621

Allow shrinkwrap of Dockerfile template

25 Mar 21:51
Compare
Choose a tag to compare

Changelog:

  • Allow shrinkwrap of Dockerfile template #615

Default provider name to openfaas

08 Mar 11:47
Compare
Choose a tag to compare

Changelog:

  • For new functions we now default the provider name to openfaas