Fix Java spec example (#1519)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Hello World in JVM/Java on Fission
|
# Hello World in JVM/Java on Fission
|
||||||
|
|
||||||
The `io.fission.HelloWorld.java` class is a a very simple fission function that implements `io.fission.Function` and says "Hello, World!" .
|
The `io.fission.HelloWorld.java` class is a very simple fission function that implements `io.fission.Function` and says "Hello, World!" .
|
||||||
|
|
||||||
## Building and deploying using Fission
|
## Building and deploying using Fission
|
||||||
|
|
||||||
@@ -57,5 +57,4 @@ $ fission fn create --name hello --deploy target/hello-world-1.0-SNAPSHOT-jar-wi
|
|||||||
$ fission route create --function hello --url /hellop --method GET
|
$ fission route create --function hello --url /hellop --method GET
|
||||||
$ fission fn test --name hello
|
$ fission fn test --name hello
|
||||||
Hello World!
|
Hello World!
|
||||||
|
```
|
||||||
```
|
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: fission.io/v1
|
||||||
|
kind: Environment
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: java
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
builder:
|
||||||
|
command: build
|
||||||
|
image: fission/jvm-builder:1.7.1
|
||||||
|
imagepullsecret: ""
|
||||||
|
keeparchive: true
|
||||||
|
poolsize: 3
|
||||||
|
resources: {}
|
||||||
|
runtime:
|
||||||
|
image: fission/jvm-env:1.7.1
|
||||||
|
version: 2
|
||||||
@@ -4,4 +4,4 @@
|
|||||||
apiVersion: fission.io/v1
|
apiVersion: fission.io/v1
|
||||||
kind: DeploymentConfig
|
kind: DeploymentConfig
|
||||||
name: java
|
name: java
|
||||||
uid: 3305cef5-21e6-4a55-b977-5c76ee62b0a6
|
uid: 908a303a-bf23-4bae-a22c-b1db9a1f71a9
|
||||||
|
|||||||
@@ -1,52 +0,0 @@
|
|||||||
include:
|
|
||||||
- src/
|
|
||||||
- pom.xml
|
|
||||||
kind: ArchiveUploadSpec
|
|
||||||
name: helloworld-java
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: fission.io/v1
|
|
||||||
kind: Package
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: helloworld-java-127w
|
|
||||||
namespace: default
|
|
||||||
spec:
|
|
||||||
deployment:
|
|
||||||
checksum: {}
|
|
||||||
environment:
|
|
||||||
name: java
|
|
||||||
namespace: default
|
|
||||||
source:
|
|
||||||
checksum: {}
|
|
||||||
type: url
|
|
||||||
url: archive://helloworld-java
|
|
||||||
status:
|
|
||||||
buildstatus: pending
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: fission.io/v1
|
|
||||||
kind: Function
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: hello-java
|
|
||||||
namespace: default
|
|
||||||
spec:
|
|
||||||
InvokeStrategy:
|
|
||||||
ExecutionStrategy:
|
|
||||||
ExecutorType: poolmgr
|
|
||||||
MaxScale: 1
|
|
||||||
MinScale: 0
|
|
||||||
TargetCPUPercent: 80
|
|
||||||
StrategyType: execution
|
|
||||||
configmaps: null
|
|
||||||
environment:
|
|
||||||
name: java
|
|
||||||
namespace: default
|
|
||||||
package:
|
|
||||||
functionName: io.fission.HelloWorld
|
|
||||||
packageref:
|
|
||||||
name: helloworld-java-127w
|
|
||||||
namespace: default
|
|
||||||
resources: {}
|
|
||||||
secrets: null
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
apiVersion: fission.io/v1
|
||||||
|
kind: Function
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: hello
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
InvokeStrategy:
|
||||||
|
ExecutionStrategy:
|
||||||
|
ExecutorType: poolmgr
|
||||||
|
MaxScale: 0
|
||||||
|
MinScale: 0
|
||||||
|
SpecializationTimeout: 120
|
||||||
|
TargetCPUPercent: 0
|
||||||
|
StrategyType: execution
|
||||||
|
configmaps: null
|
||||||
|
environment:
|
||||||
|
name: java
|
||||||
|
namespace: default
|
||||||
|
functionTimeout: 60
|
||||||
|
package:
|
||||||
|
functionName: io.fission.HelloWorld
|
||||||
|
packageref:
|
||||||
|
name: hellojava
|
||||||
|
namespace: default
|
||||||
|
resources: {}
|
||||||
|
secrets: null
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
include:
|
||||||
|
- src
|
||||||
|
- pom.xml
|
||||||
|
kind: ArchiveUploadSpec
|
||||||
|
name: src-URlE
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: fission.io/v1
|
||||||
|
kind: Package
|
||||||
|
metadata:
|
||||||
|
creationTimestamp: null
|
||||||
|
name: hellojava
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
deployment:
|
||||||
|
checksum: {}
|
||||||
|
environment:
|
||||||
|
name: java
|
||||||
|
namespace: default
|
||||||
|
source:
|
||||||
|
checksum: {}
|
||||||
|
type: url
|
||||||
|
url: archive://src-URlE
|
||||||
|
status:
|
||||||
|
buildstatus: pending
|
||||||
|
lastUpdateTimestamp: "2020-01-29T09:43:56Z"
|
||||||
Reference in New Issue
Block a user