| { |
| "id": "http://fabric8.io/hugegraph-computer/ComputerSchema#", |
| "$schema": "http://json-schema.org/draft-06/schema#", |
| "type" : "object", |
| "definitions" : { |
| "NodePhase" : { |
| "type" : "string", |
| "enum" : ["NodePending", "NodeRunning", "NodeTerminated"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.NodePhase" |
| }, |
| "ResourceName" : { |
| "type" : "string", |
| "enum" : ["cpu", "memory", "storage", "ephemeral-storage"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.ResourceName" |
| }, |
| "RestartPolicy" : { |
| "type" : "string", |
| "enum" : ["Always", "OnFailure", "Never"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.RestartPolicy" |
| }, |
| "PullPolicy" : { |
| "type" : "string", |
| "enum" : ["Always", "Never", "IfNotPresent"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.PullPolicy" |
| }, |
| "PodPhase" : { |
| "type" : "string", |
| "enum" : ["Pending", "Running", "Succeeded", "Failed", "Unknown"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.PodPhase" |
| }, |
| "EventType" : { |
| "type" : "string", |
| "enum" : ["Normal", "Warning"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.EventType" |
| }, |
| "CommonComponentState" : { |
| "type" : "string", |
| "enum" : ["NotReady", "Ready", "Deleted"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.CommonComponentState" |
| }, |
| "JobComponentState" : { |
| "type" : "string", |
| "enum" : ["Pending", "Running", "Succeeded", "Failed", "Cancelled", "Unknown"], |
| "javaType": "org.apache.hugegraph.computer.k8s.crd.model.JobComponentState" |
| } |
| }, |
| "properties": { |
| "NodePhase": { |
| "$ref": "#/definitions/NodePhase" |
| }, |
| "ResourceName": { |
| "$ref": "#/definitions/ResourceName" |
| }, |
| "RestartPolicy": { |
| "$ref": "#/definitions/RestartPolicy" |
| }, |
| "PullPolicy" : { |
| "$ref": "#/definitions/PullPolicy" |
| }, |
| "PodPhase" : { |
| "$ref": "#/definitions/PodPhase" |
| }, |
| "EventType" : { |
| "$ref": "#/definitions/EventType" |
| }, |
| "CommonComponentState" : { |
| "$ref": "#/definitions/CommonComponentState" |
| }, |
| "JobComponentState" : { |
| "$ref": "#/definitions/JobComponentState" |
| } |
| } |
| } |