Skip to content

Commit

Permalink
fix: add v1alpha to health check endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei-du committed May 4, 2022
1 parent 8ca7bc7 commit 4257891
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 47 deletions.
20 changes: 10 additions & 10 deletions instill/mgmt/v1alpha/mgmt.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@
],
"paths": {},
"definitions": {
"googlerpcStatus": {
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
Expand All @@ -29,15 +38,6 @@
}
}
}
},
"protobufAny": {
"type": "object",
"properties": {
"@type": {
"type": "string"
}
},
"additionalProperties": {}
}
}
}
2 changes: 1 addition & 1 deletion instill/mgmt/v1alpha/mgmt_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ service UserService {
rpc Liveness(LivenessRequest) returns (LivenessResponse) {
option (google.api.http) = {
get : "/v1alpha/__liveness"
additional_bindings : [ {get : "/health/mgmt"} ]
additional_bindings : [ {get : "/v1alpha/health/mgmt"} ]
};
}

Expand Down
72 changes: 36 additions & 36 deletions instill/mgmt/v1alpha/mgmt_service.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
"application/json"
],
"paths": {
"/health/mgmt": {
"/v1alpha/__liveness": {
"get": {
"summary": "Liveness method receives a LivenessRequest message and returns a\nLivenessResponse message.\nSee https://github.com/grpc/grpc/blob/master/doc/health-checking.md",
"operationId": "UserService_Liveness2",
"operationId": "UserService_Liveness",
"responses": {
"200": {
"description": "A successful response.",
Expand All @@ -30,7 +30,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand All @@ -48,21 +48,21 @@
]
}
},
"/v1alpha/__liveness": {
"/v1alpha/__readiness": {
"get": {
"summary": "Liveness method receives a LivenessRequest message and returns a\nLivenessResponse message.\nSee https://github.com/grpc/grpc/blob/master/doc/health-checking.md",
"operationId": "UserService_Liveness",
"summary": "Readiness method receives a ReadinessRequest message and returns a\nReadinessResponse message.\nSee https://github.com/grpc/grpc/blob/master/doc/health-checking.md",
"operationId": "UserService_Readiness",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/instillmgmtv1alphaLivenessResponse"
"$ref": "#/definitions/instillmgmtv1alphaReadinessResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand All @@ -80,21 +80,21 @@
]
}
},
"/v1alpha/__readiness": {
"/v1alpha/health/mgmt": {
"get": {
"summary": "Readiness method receives a ReadinessRequest message and returns a\nReadinessResponse message.\nSee https://github.com/grpc/grpc/blob/master/doc/health-checking.md",
"operationId": "UserService_Readiness",
"summary": "Liveness method receives a LivenessRequest message and returns a\nLivenessResponse message.\nSee https://github.com/grpc/grpc/blob/master/doc/health-checking.md",
"operationId": "UserService_Liveness2",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/instillmgmtv1alphaReadinessResponse"
"$ref": "#/definitions/instillmgmtv1alphaLivenessResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -126,7 +126,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -164,7 +164,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -198,7 +198,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -229,7 +229,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -262,7 +262,7 @@
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
"$ref": "#/definitions/rpcStatus"
}
}
},
Expand Down Expand Up @@ -299,24 +299,6 @@
}
},
"definitions": {
"googlerpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"instillmgmtv1alphaHealthCheckRequest": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -377,6 +359,24 @@
},
"additionalProperties": {}
},
"rpcStatus": {
"type": "object",
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
},
"v1alphaCreateUserResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 4257891

Please sign in to comment.