This change enables users to have declarative specifications for Fission resources. Users can specify their "app" in a set of spec files, and use a new fission CLI command to "apply" these specs to a running cluster. The new "spec" CLI also includes archiving of local source files, and a file watcher that re-builds archives and uploads them on file changes, and a package build watcher that waits for package builds on the CLI. A "--spec" option is also added to "function create", and will be added to other resources in future changes. This option causes a YAML to be outputted to the specs directory instead of the resource being created on the cluster. The CLI "fission spec --help" outputs usage information.
12 lines
502 B
Markdown
12 lines
502 B
Markdown
This is the root directory of a declaratively specified fission "application". The app
|
|
contains source code for one function (a simple "hello world") in the hello/hello.py
|
|
file.
|
|
|
|
The `specs` directory contains YAML files that specify the Fission environment and
|
|
function.
|
|
|
|
You can create this app on your cluster by running `fission spec apply` from this
|
|
directory. See `fission spec --help` for other options.
|
|
|
|
After applying the spec, you can test the function with `fission fn test --name hello`.
|