This example will showcase how to use specs in Fission so that CI/CD flow can be designed better using the specs. Also we are building the function as part of this flow - so it is assumed that the Kubernetes cluster does not have internet connectivity and can not run things like pip
or maven
to fetch dependencies for building from source to package.
We have a simple python function which needs one library for it's working. The files are:
$ tree .
.
├── __init__.py