Regenearte the code

Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
Mikolaj Pawlikowski
2021-03-12 12:57:20 +00:00
parent c7a7008bf5
commit e827a8dc67
2 changed files with 38 additions and 8 deletions

View File

@@ -33,11 +33,17 @@ type ClusterHealthResults struct {
// Format: date-time
GeneratedAt strfmt.DateTime `json:"generated-at,omitempty"`
// instances healthy
InstancesHealthy []string `json:"instancesHealthy"`
// hosts healthy
HostsHealthy []string `json:"hostsHealthy"`
// instances unealthy
InstancesUnealthy []string `json:"instancesUnealthy"`
// hosts unhealthy
HostsUnhealthy []string `json:"hostsUnhealthy"`
// pods healthy
PodsHealthy []string `json:"podsHealthy"`
// pods unhealthy
PodsUnhealthy []string `json:"podsUnhealthy"`
}
// Validate validates this cluster health results

View File

@@ -249,13 +249,25 @@ func init() {
"type": "string",
"format": "date-time"
},
"instancesHealthy": {
"hostsHealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"instancesUnealthy": {
"hostsUnhealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"podsHealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"podsUnhealthy": {
"type": "array",
"items": {
"type": "string"
@@ -582,13 +594,25 @@ func init() {
"type": "string",
"format": "date-time"
},
"instancesHealthy": {
"hostsHealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"instancesUnealthy": {
"hostsUnhealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"podsHealthy": {
"type": "array",
"items": {
"type": "string"
}
},
"podsUnhealthy": {
"type": "array",
"items": {
"type": "string"