Bot releases are hidden (Show)
Published by alexellis over 5 years ago
Published by alexellis over 5 years ago
Published by alexellis over 5 years ago
Changelog:
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
Published by alexellis over 5 years ago
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
Published by alexellis over 5 years ago
Changelog:
OPENFAAS_PREFIX
#634 by @alexellisPublished by alexellis over 5 years ago
Published by alexellis over 5 years ago
Changelog:
Published by alexellis over 5 years ago
Changelog:
Published by alexellis over 5 years ago
Changelog:
Published by alexellis over 5 years ago
Changelog:
Published by alexellis over 5 years ago
Changelog:
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:
Published by alexellis almost 6 years ago
Changelog:
Example usage:
faas-cli template store describe node10-express
Published by alexellis almost 6 years ago
Changelog:
Published by alexellis almost 6 years ago
Changelog:
Published by alexellis almost 6 years ago
Changelog:
Published by alexellis about 6 years ago
Changelog:
faas-cli new
#546 - @rgee0 🥇 with @LucasRoesler @kenfdevPublished by alexellis about 6 years ago
Changelog:
Published by alexellis about 6 years ago
Changelog:
Minor fix to indentation for style preference.
Published by alexellis about 6 years ago
Changelog:
--sign
for HMAC to invoke command #530 by rgee0describe
verb for functions #514 by viveksyngh--skip-deploy
flag to up
command #526 by ivanayov