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

add cluster_reason field to cluster detail #238

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
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
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
Loading