faas-cli

Official CLI for OpenFaaS

OTHER License

Downloads
48
Stars
787
Committers
71

Bot releases are visible (Hide)

faas-cli - Update target URL for default store

Published by alexellis over 5 years ago

faas-cli - Fix gofmt for release build

Published by alexellis over 5 years ago

faas-cli - Generate secret projections for Knative serving

Published by alexellis over 5 years ago

Changelog:

  • Generate secret projections for Knative serving c9544f53a9c8041a1c4f21e8c05832ff821dc75e
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
faas-cli - Generate CRDs from store and Knative serving Service

Published by alexellis over 5 years ago

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
faas-cli - Add OPENFAAS_PREFIX env-var for new functions

Published by alexellis over 5 years ago

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
faas-cli - Patch release

Published by alexellis over 5 years ago

faas-cli - Add envsubst support to stack.yml

Published by alexellis over 5 years ago

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

Docs: environment variable substitution in stack.yml

faas-cli - UX improvements to faas-cli new

Published by alexellis over 5 years ago

Changelog:

  • UX improvements to faas-cli new #621
faas-cli - Allow shrinkwrap of Dockerfile template

Published by alexellis over 5 years ago

Changelog:

  • Allow shrinkwrap of Dockerfile template #615
faas-cli - Default provider name to openfaas

Published by alexellis over 5 years ago

Changelog:

  • For new functions we now default the provider name to openfaas
faas-cli - Default login to username of admin

Published by alexellis over 5 years ago

Changelog:

  • Default login to username of admin #604 @alexellis
faas-cli - Add secret command

Published by alexellis almost 6 years ago

Adds faas-cli secret command for managing secrets via the OpenFaaS CLI/API @viveksyngh @leodido @LucasRoesler @alexellis

Changelog:

  • Implement pinned template repo clone #576 by @LucasRoesler
  • Add secret list command to faas-cli #578 by @viveksyngh
  • Add faas secret remove command #579 by @alexellis
  • Add create command for secrets #580 by @viveksyngh
  • Add faas secret update command #582 by @leodido
faas-cli - Add "describe" verb to template store

Published by alexellis almost 6 years ago

Changelog:

  • Add template store describe #564 by @martindekov

Example usage:

faas-cli template store describe node10-express
faas-cli - Add template store

Published by alexellis almost 6 years ago

Changelog:

  • Add template store command #561 @martindekov plus review from @LucasRoesler @rgee0 @alexellis and others
faas-cli - Update Go version to 1.11

Published by alexellis almost 6 years ago

Changelog:

  • Update Go version to 1.11 #560 @alexellis
faas-cli - Misc fixes for tls-no-verify / secrets / autocrlf

Published by alexellis almost 6 years ago

Changelog:

  • Invoke command fix for --tls-no-verify #556 by ewilde
  • Use core.autocrlf false when cloning templates #552 by johnmccabe
  • Skip template folder during the build #524 by LucasRoesler
  • Make secrets function specific #558 by rgee0
faas-cli - Restore file append functionality to `faas-cli new`

Published by alexellis about 6 years ago

Changelog:

  • Restore file append functionality to faas-cli new #546 - @rgee0 🥇 with @LucasRoesler @kenfdev
faas-cli - Minor fixes/updates

Published by alexellis about 6 years ago

Changelog:

  • Add ls alias to store list command design/approved hacktoberfest #540 by rgee0
  • Add ls alias to store list new-contributor #541 by luxifer
  • Bump version to Go 1.10.4 #537 by alexellis
  • Clarify --tag flag help text #538 by johnmccabe
  • Print labels and annotations in describe command #542 by viveksyngh
faas-cli - Update describe verb to align text left

Published by alexellis about 6 years ago

Changelog:

  • Update describe verb to align text left #532

Minor fix to indentation for style preference.

faas-cli - Adds describe verb and --sign flag to invoke

Published by alexellis about 6 years ago

Changelog:

  • Add --sign for HMAC to invoke command #530 by rgee0
  • Updates to cobra/pflag and Go builder SDK #529 by alexellis
  • Add describe verb for functions #514 by viveksyngh
  • Add --skip-deploy flag to up command #526 by ivanayov