...
Code Block | ||
---|---|---|
| ||
{ "port" : 4005, "group": "groupname", "subType": "subType" } |
Deploy
Code Block | ||
---|---|---|
| ||
{
"version": "1",
"cd": {
"strategy" : "notify" || "update"
},
"settings": {
"memory": "512Mi", //https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory%22
"mode": "deployment | daemonset",
"replicas": 1,
"loadBalancer": true
},
"src": {
"branch": "master",
"commit": "324234234"
},
"recipe": {
"id": "mongoId",
"image": {
"name": "imagename",
"prefix": "soajsorg",
"tag": "tagname"
},
"ports": [],
"env" {
//list of envirnment variables
}
},
} |
JSON Example
Code Block | ||
---|---|---|
| ||
{
"name": "mydaemon",
"type": "mdaemon",
"description" : "this is a sample description",
"configuration": {
"port": 11000,
"group": "daemonGroup",
"subType": "cronJob"
},
"versions" : [
{
"version" : "1",
"lastSync": {
"branch": "feature/standardization",
"ts": 123123123
}
"jobs": {
"migrator" : {}
},
"documentation": {
"readme" : "json stringified swagger file",
"release" : "json stringified swagger file"
},
"branches": [
"feature/standardization"
],
"maintenance": {
"port": {
"type": "inherit"
},
"readiness": "/heartbeat"
},
}
],
"metadata": {
"tags": ["tag1", "tag2"],
"attributes": {
"att1": ["att1.1", "att1.2"],
"att2": ["att2.1", "att2.2"]
},
"program": ["soajs"]
},
"ui": {
"main": "",
"sub": ""
},
"settings": {
"acl": {
"groups" :{
"type": "blackList", //// "whitelist"
"value": ["owner"],
"config": {}
}
},
"recipes" : ["recipeId"],
"environments :{
"type": "blackList", //// "whitelist"
"value": ["dev"],
"config": {}
}
},
"src": {
"provider": "github",
"owner": "ragheb",
"repo": "test"
}
} |