Skip to content

Commit

Permalink
Fix condition tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Deyuan Deng committed Apr 22, 2015
1 parent ee34d49 commit 401442b
Show file tree
Hide file tree
Showing 9 changed files with 824 additions and 31 deletions.
2 changes: 1 addition & 1 deletion api/swagger-spec/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion api/swagger-spec/resourceListing.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
"title": "",
"description": ""
}
}
}
264 changes: 259 additions & 5 deletions api/swagger-spec/v1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,116 @@
}
]
},
{
"path": "/api/v1beta1/componentStatuses",
"description": "API at /api/v1beta1 version v1beta1",
"operations": [
{
"type": "v1beta1.ComponentStatusList",
"method": "GET",
"summary": "list objects of kind ComponentStatus",
"nickname": "listComponentStatus",
"parameters": [
{
"type": "string",
"paramType": "query",
"name": "fields",
"description": "a selector to restrict the list of returned objects by their fields; defaults to everything",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "query",
"name": "labels",
"description": "a selector to restrict the list of returned objects by their labels; defaults to everything",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "query",
"name": "namespace",
"description": "object name and auth scope, such as for teams and projects",
"required": false,
"allowMultiple": false
},
{
"type": "string",
"paramType": "query",
"name": "resourceVersion",
"description": "when specified with a watch call, shows changes that occur after that particular version of a resource; defaults to changes from the beginning of history",
"required": false,
"allowMultiple": false
},
{
"type": "boolean",
"paramType": "query",
"name": "watch",
"description": "watch for changes to the described resources and return them as a stream of add, update, and remove notifications; specify resourceVersion",
"required": false,
"allowMultiple": false
}
],
"responseMessages": [
{
"code": 200,
"message": "OK",
"responseModel": "v1beta1.ComponentStatusList"
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta1/componentStatuses/{name}",
"description": "API at /api/v1beta1 version v1beta1",
"operations": [
{
"type": "v1beta1.ComponentStatus",
"method": "GET",
"summary": "read the specified ComponentStatus",
"nickname": "readComponentStatus",
"parameters": [
{
"type": "string",
"paramType": "path",
"name": "name",
"description": "name of the ComponentStatus",
"required": true,
"allowMultiple": false
},
{
"type": "string",
"paramType": "query",
"name": "namespace",
"description": "object name and auth scope, such as for teams and projects",
"required": false,
"allowMultiple": false
}
],
"responseMessages": [
{
"code": 200,
"message": "OK",
"responseModel": "v1beta1.ComponentStatus"
}
],
"produces": [
"application/json"
],
"consumes": [
"*/*"
]
}
]
},
{
"path": "/api/v1beta1/endpoints",
"description": "API at /api/v1beta1 version v1beta1",
Expand Down Expand Up @@ -7233,6 +7343,150 @@
"id": "v1beta1.CapabilityType",
"properties": {}
},
"v1beta1.ComponentCondition": {
"id": "v1beta1.ComponentCondition",
"required": [
"type",
"status"
],
"properties": {
"error": {
"type": "string",
"description": "error code from health check attempt (if any)"
},
"message": {
"type": "string",
"description": "health check message received from the component"
},
"status": {
"type": "string",
"description": "current status of this component condition, one of Full, None, Unknown"
},
"type": {
"type": "string",
"description": "type of component condition, currently only Healthy"
}
}
},
"v1beta1.ComponentStatus": {
"id": "v1beta1.ComponentStatus",
"properties": {
"annotations": {
"type": "any",
"description": "map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about the object"
},
"apiVersion": {
"type": "string",
"description": "version of the schema the object should have"
},
"conditions": {
"type": "array",
"items": {
"$ref": "v1beta1.ComponentCondition"
},
"description": "list of component conditions observed"
},
"creationTimestamp": {
"type": "string",
"description": "RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists"
},
"deletionTimestamp": {
"type": "string",
"description": "RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"id": {
"type": "string",
"description": "name of the object; must be a DNS_SUBDOMAIN and unique among all objects of the same kind within the same namespace; used in resource URLs; cannot be updated"
},
"kind": {
"type": "string",
"description": "kind of object, in CamelCase; cannot be updated"
},
"name": {
"type": "string",
"description": "name of the component"
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
},
"resourceVersion": {
"$ref": "uint64",
"description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/api-conventions.md#concurrency-control-and-consistency"
},
"selfLink": {
"type": "string",
"description": "URL for the object; populated by the system, read-only"
},
"uid": {
"type": "string",
"description": "unique UUID across space and time; populated by the system, read-only; cannot be updated"
}
}
},
"v1beta1.ComponentStatusList": {
"id": "v1beta1.ComponentStatusList",
"required": [
"items"
],
"properties": {
"annotations": {
"type": "any",
"description": "map of string keys and values that can be used by external tooling to store and retrieve arbitrary metadata about the object"
},
"apiVersion": {
"type": "string",
"description": "version of the schema the object should have"
},
"creationTimestamp": {
"type": "string",
"description": "RFC 3339 date and time at which the object was created; populated by the system, read-only; null for lists"
},
"deletionTimestamp": {
"type": "string",
"description": "RFC 3339 date and time at which the object will be deleted; populated by the system when a graceful deletion is requested, read-only; if not set, graceful deletion of the object has not been requested"
},
"generateName": {
"type": "string",
"description": "an optional prefix to use to generate a unique name; has the same validation rules as name; optional, and is applied only name if is not specified"
},
"id": {
"type": "string",
"description": "name of the object; must be a DNS_SUBDOMAIN and unique among all objects of the same kind within the same namespace; used in resource URLs; cannot be updated"
},
"items": {
"type": "array",
"items": {
"$ref": "v1beta1.ComponentStatus"
},
"description": "list of component status objects"
},
"kind": {
"type": "string",
"description": "kind of object, in CamelCase; cannot be updated"
},
"namespace": {
"type": "string",
"description": "namespace to which the object belongs; must be a DNS_SUBDOMAIN; 'default' by default; cannot be updated"
},
"resourceVersion": {
"$ref": "uint64",
"description": "string that identifies the internal version of this object that can be used by clients to determine when objects have changed; populated by the system, read-only; value must be treated as opaque by clients and passed unmodified back to the server: https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/api-conventions.md#concurrency-control-and-consistency"
},
"selfLink": {
"type": "string",
"description": "URL for the object; populated by the system, read-only"
},
"uid": {
"type": "string",
"description": "unique UUID across space and time; populated by the system, read-only; cannot be updated"
}
}
},
"v1beta1.Container": {
"id": "v1beta1.Container",
"required": [
Expand Down Expand Up @@ -8551,7 +8805,7 @@
"properties": {
"kind": {
"type": "string",
"description": "kind of the condition, one of Reachable, Ready, Schedulable"
"description": "kind of the condition, current kinds: Reachable, Ready, Schedulable"
},
"lastProbeTime": {
"type": "string",
Expand Down Expand Up @@ -8971,10 +9225,10 @@
"v1beta1.PersistentVolumeSpec": {
"id": "v1beta1.PersistentVolumeSpec",
"required": [
"hostPath",
"glusterfs",
"persistentDisk",
"awsElasticBlockStore"
"awsElasticBlockStore",
"hostPath",
"glusterfs"
],
"properties": {
"accessModes": {
Expand Down Expand Up @@ -10094,4 +10348,4 @@
}
}
}
}
}
Loading

0 comments on commit 401442b

Please sign in to comment.