Add example for builder podspec (#1374)

This commit is contained in:
Vivek Singh
2019-11-04 16:02:30 +08:00
committed by Ta-Ching Chen
parent d1ed089c3e
commit e4f44ffa63
12 changed files with 98 additions and 0 deletions
@@ -0,0 +1,38 @@
apiVersion: fission.io/v1
kind: Function
metadata:
name: hello
namespace: default
spec:
environment:
name: python-27
namespace: default
package:
packageref:
name: hello-pkg
namespace: default
functionName: hello.main
---
apiVersion: fission.io/v1
kind: Package
metadata:
name: hello-pkg
namespace: default
spec:
source:
url: archive://hello-archive
buildcmd: "./build.sh"
environment:
name: python-27
namespace: default
status:
buildstatus: pending
---
kind: ArchiveUploadSpec
name: hello-archive
include:
- "hello/*.py"
- "hello/*.sh"
- "hello/requirements.txt"