Skip to content

Commit

Permalink
add cluster_reason field to cluster detail (#238)
Browse files Browse the repository at this point in the history
* add cluster_reason field to cluster detail

* adding validation rules
  • Loading branch information
akoserwal authored Nov 27, 2024
1 parent 0d5a7dc commit 564aeb6
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 77 deletions.
171 changes: 94 additions & 77 deletions api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ message K8sClusterDetail {

ClusterStatus cluster_status = 499346904 [ json_name = "cluster_status", (buf.validate.field).enum = {not_in: [0], defined_only: true} ];

optional string cluster_reason = 499346905 [ json_name = "cluster_reason",
(buf.validate.field).string.min_len = 1,
(buf.validate.field).string.max_len = 1024,
(buf.validate.field).string.pattern = "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$"
];

// The version of kubernetes
string kube_version = 395858490 [ json_name = "kube_version" ];

Expand Down
2 changes: 2 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,8 @@ components:
- OFFLINE
type: string
format: enum
cluster_reason:
type: string
kube_version:
type: string
description: The version of kubernetes
Expand Down

0 comments on commit 564aeb6

Please sign in to comment.