Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(eng-1847) Improve cluster status #718

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
mzottola marked this conversation as resolved.
Show resolved Hide resolved
- 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
Loading