Skip to content

Commit

Permalink
feat(eng-1847) Improve cluster status
Browse files Browse the repository at this point in the history
  • Loading branch information
mzottola committed Oct 28, 2024
1 parent 9b1a5fe commit dec600a
Showing 1 changed file with 98 additions and 1 deletion.
99 changes: 98 additions & 1 deletion websocket/websocket-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,65 @@ paths:
type: string
components:
schemas:
QoveryPodInErrorComponentInFailure:
type: object
required:
- component_name
- pod_name
- container_name
properties:
component_name:
type: string
pod_name:
type: string
container_name:
type: string
level:
type: string
enum:
- ERROR
- WARNING
reason:
type: string
nullable: true
message:
type: string
nullable: true
QoveryMissingComponentInFailure:
type: object
required:
- component_name
properties:
component_name:
type: string
NodeInWarning:
type: object
required:
- reason
- message
properties:
reason:
type: string
message:
type: string
QoveryOkKubeVersion:
type: object
required:
- kube_version
properties:
kube_version:
type: string
QoveryDriftKubeVersion:
type: object
required:
- kube_version
- expected_kube_version
properties:
kube_version:
type: string
expected_kube_version:
type: string

ApplicationStatusDto:
type: object
required:
Expand Down Expand Up @@ -550,8 +609,46 @@ components:
ClusterStatusDto:
type: object
required:
- nodes
- computed_status
- nodes
properties:
computed_status:
type: object
properties:
global_status:
nullable: true
type: string
enum:
- RUNNING
- WARNING
- ERROR
qovery_components_in_failure:
type: array
items:
oneOf:
- $ref: '#/components/schemas/QoveryPodInErrorComponentInFailure'
- $ref: '#/components/schemas/QoveryMissingComponentInFailure'
discriminator:
propertyName: type
mapping:
POD_IN_ERROR: '#/components/schemas/QoveryPodInErrorComponentInFailure'
MISSING_COMPONENT: '#/components/schemas/QoveryMissingComponentInFailure'
node_warnings:
type: object
additionalProperties:
$ref: "#/components/schemas/NodeInWarning"
is_max_nodes_size_reached:
type: boolean
kube_version_status:
type: object
oneOf:
- $ref: '#/components/schemas/QoveryOkKubeVersion'
- $ref: '#/components/schemas/QoveryDriftKubeVersion'
discriminator:
propertyName: type
mapping:
OK: '#/components/schemas/QoveryOkKubeVersion'
DRIFT: '#/components/schemas/QoveryDriftKubeVersion'
nodes:
type: array
items:
Expand Down

0 comments on commit dec600a

Please sign in to comment.