Skip to content

Instantly share code, notes, and snippets.

@life1347
Created October 24, 2019 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save life1347/00f8b612d0cfce3110c8e7bb92ccc52d to your computer and use it in GitHub Desktop.
Save life1347/00f8b612d0cfce3110c8e7bb92ccc52d to your computer and use it in GitHub Desktop.
JSON payload of Fission API
{
"apiVersion": "fission.io/v1",
"kind": "Environment",
"metadata": {
"name": "nodejs",
"namespace": "default"
},
"spec": {
"builder": {},
"keeparchive": false,
"poolsize": 3,
"resources": {},
"runtime": {
"image": "fission/node-env"
},
"terminationGracePeriod": 5,
"version": 2
}
}
{
"apiVersion": "fission.io/v1",
"kind": "Package",
"metadata": {
"name": "hello-js-hpo8",
"namespace": "default"
},
"spec": {
"deployment": {
"checksum": {},
"literal": "UEsDBBQACAAIAGU/K08AAAAAAAAAAAAAAAAIAAkAaGVsbG8uanNVVAUAAU+peF08ib0KwkAQBvt7is9UCkGCZcQ3sYl3KwrnruwPJsi9uyiS6WYmPaREpT3NT1E3nDDZwhnX4Ox34W0Wdpp9h3cCACUP5b98MZ88bMRhGPo1XqQsI7ob1So9XqK1bM7c/X47ppY+AQAA//9QSwcI5arE5mkAAAB3AAAAUEsBAhQDFAAIAAgAZT8rT+WqxOZpAAAAdwAAAAgACQAAAAAAAAAAAKSBAAAAAGhlbGxvLmpzVVQFAAFPqXhdUEsFBgAAAAABAAEAPwAAAKgAAAAAAA==",
"type": "literal"
},
"environment": {
"name": "nodejs",
"namespace": "default"
},
"source": {
"checksum": {}
}
},
"status": {
"buildstatus": "succeeded",
"lastUpdateTimestamp": "2019-10-10T09:02:31.546522Z"
}
}
{
"apiVersion": "fission.io/v1",
"kind": "Function",
"metadata": {
"name": "nodejs",
"namespace": "default"
},
"spec": {
"InvokeStrategy": {
"ExecutionStrategy": {
"ExecutorType": "poolmgr",
"MaxScale": 0,
"MinScale": 0,
"SpecializationTimeout": 0,
"TargetCPUPercent": 0
},
"StrategyType": "execution"
},
"configmaps": null,
"environment": {
"name": "nodejs",
"namespace": "default"
},
"functionTimeout": 60,
"package": {
"functionName": "hello",
"packageref": {
"name": "hello-js-hpo8",
"namespace": "default",
"resourceversion": "28716118"
}
},
"resources": {},
"secrets": null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment