From 83f367afbefe97e05e462d8f04662ea6bded9ace Mon Sep 17 00:00:00 2001 From: Abhishek koserwal Date: Wed, 27 Nov 2024 16:27:40 +0530 Subject: [PATCH] add cluster_reason field to cluster detail (#238) * add cluster_reason field to cluster detail * adding validation rules --- .../resources/k8s_cluster_detail.pb.go | 171 ++++++++++-------- .../resources/k8s_cluster_detail.proto | 6 + openapi.yaml | 2 + 3 files changed, 102 insertions(+), 77 deletions(-) diff --git a/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.pb.go b/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.pb.go index e251c1da..2008b8cb 100644 --- a/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.pb.go +++ b/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.pb.go @@ -251,6 +251,7 @@ type K8SClusterDetail struct { // The OCP cluster ID or ARN etc for *KS ExternalClusterId string `protobuf:"bytes,219571597,opt,name=external_cluster_id,proto3" json:"external_cluster_id,omitempty"` ClusterStatus K8SClusterDetail_ClusterStatus `protobuf:"varint,499346904,opt,name=cluster_status,proto3,enum=kessel.inventory.v1beta1.resources.K8SClusterDetail_ClusterStatus" json:"cluster_status,omitempty"` + ClusterReason *string `protobuf:"bytes,499346905,opt,name=cluster_reason,proto3,oneof" json:"cluster_reason,omitempty"` // The version of kubernetes KubeVersion string `protobuf:"bytes,395858490,opt,name=kube_version,proto3" json:"kube_version,omitempty"` KubeVendor K8SClusterDetail_KubeVendor `protobuf:"varint,264191642,opt,name=kube_vendor,proto3,enum=kessel.inventory.v1beta1.resources.K8SClusterDetail_KubeVendor" json:"kube_vendor,omitempty"` @@ -306,6 +307,13 @@ func (x *K8SClusterDetail) GetClusterStatus() K8SClusterDetail_ClusterStatus { return K8SClusterDetail_CLUSTER_STATUS_UNSPECIFIED } +func (x *K8SClusterDetail) GetClusterReason() string { + if x != nil && x.ClusterReason != nil { + return *x.ClusterReason + } + return "" +} + func (x *K8SClusterDetail) GetKubeVersion() string { if x != nil { return x.KubeVersion @@ -356,7 +364,7 @@ var file_kessel_inventory_v1beta1_resources_k8s_cluster_detail_proto_rawDesc = [ 0x72, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x5f, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd7, 0x09, 0x0a, 0x10, 0x4b, 0x38, 0x73, 0x43, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd1, 0x0a, 0x0a, 0x10, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x3c, 0x0a, 0x13, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x8d, 0xcb, 0xd9, 0x68, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xba, 0x48, @@ -369,82 +377,90 @@ var file_kessel_inventory_v1beta1_resources_k8s_cluster_detail_proto_rawDesc = [ 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x0b, 0xba, 0x48, 0x08, 0x82, 0x01, 0x05, 0x10, 0x01, 0x22, 0x01, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, - 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x26, 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x5f, - 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xba, 0xa4, 0xe1, 0xbc, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x71, 0x0a, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x9a, - 0xfd, 0xfc, 0x7d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3f, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, - 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x4b, 0x38, 0x73, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x4b, 0x75, - 0x62, 0x65, 0x56, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x42, 0x0b, 0xba, 0x48, 0x08, 0x82, 0x01, 0x05, - 0x10, 0x01, 0x22, 0x01, 0x00, 0x52, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x64, - 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x0e, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x76, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xe3, 0xc1, 0xb6, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xba, - 0x48, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0e, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x76, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x7b, 0x0a, 0x0e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, - 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0xbe, 0xce, 0xab, 0xe3, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, - 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, - 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, - 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0b, 0xba, 0x48, 0x08, 0x82, 0x01, 0x05, 0x10, 0x01, - 0x22, 0x01, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, - 0x6f, 0x72, 0x6d, 0x12, 0x57, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x91, 0xc5, 0xfc, - 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, - 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x4b, 0x38, 0x73, 0x43, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, - 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x0d, - 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, - 0x1a, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, - 0x14, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, - 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, - 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x04, 0x22, 0x73, 0x0a, 0x0a, 0x4b, - 0x75, 0x62, 0x65, 0x56, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x1b, 0x0a, 0x17, 0x4b, 0x55, 0x42, - 0x45, 0x5f, 0x56, 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, - 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x4b, 0x55, 0x42, 0x45, 0x5f, 0x56, - 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, - 0x03, 0x41, 0x4b, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x45, 0x4b, 0x53, 0x10, 0x03, 0x12, - 0x07, 0x0a, 0x03, 0x49, 0x4b, 0x53, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x50, 0x45, 0x4e, - 0x53, 0x48, 0x49, 0x46, 0x54, 0x10, 0x05, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x4b, 0x45, 0x10, 0x06, - 0x22, 0xfe, 0x02, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, - 0x72, 0x6d, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x54, - 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x54, - 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, - 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x41, - 0x52, 0x45, 0x4d, 0x45, 0x54, 0x41, 0x4c, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x03, 0x12, 0x11, 0x0a, - 0x0d, 0x42, 0x41, 0x52, 0x45, 0x4d, 0x45, 0x54, 0x41, 0x4c, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x04, - 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x57, 0x53, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x05, 0x12, 0x0b, 0x0a, - 0x07, 0x41, 0x57, 0x53, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x5a, - 0x55, 0x52, 0x45, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x07, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x5a, 0x55, - 0x52, 0x45, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x42, 0x4d, 0x43, - 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x42, - 0x4d, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, - 0x4b, 0x55, 0x42, 0x45, 0x56, 0x49, 0x52, 0x54, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x0b, 0x12, 0x11, - 0x0a, 0x0d, 0x4f, 0x50, 0x45, 0x4e, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x5f, 0x49, 0x50, 0x49, 0x10, - 0x0c, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x50, 0x45, 0x4e, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x5f, 0x55, - 0x50, 0x49, 0x10, 0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x43, 0x50, 0x5f, 0x49, 0x50, 0x49, 0x10, - 0x0e, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x43, 0x50, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x0f, 0x12, 0x0f, - 0x0a, 0x0b, 0x4e, 0x55, 0x54, 0x41, 0x4e, 0x49, 0x58, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x10, 0x12, - 0x0f, 0x0a, 0x0b, 0x4e, 0x55, 0x54, 0x41, 0x4e, 0x49, 0x58, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x11, - 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x53, 0x50, 0x48, 0x45, 0x52, 0x45, 0x5f, 0x49, 0x50, 0x49, 0x10, - 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x53, 0x50, 0x48, 0x45, 0x52, 0x45, 0x5f, 0x55, 0x50, 0x49, - 0x10, 0x13, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x56, 0x49, 0x52, 0x54, 0x5f, 0x49, 0x50, 0x49, 0x10, - 0x14, 0x42, 0x9d, 0x01, 0x0a, 0x32, 0x6f, 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x15, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, - 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6b, - 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x65, 0x0a, 0x0e, 0x63, 0x6c, 0x75, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0xd9, 0xdb, 0x8d, 0xee, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x34, 0xba, 0x48, 0x31, 0x72, 0x2f, 0x10, 0x01, 0x18, 0x80, 0x08, 0x32, + 0x28, 0x5e, 0x5b, 0x41, 0x2d, 0x5a, 0x61, 0x2d, 0x7a, 0x5d, 0x28, 0x5b, 0x41, 0x2d, 0x5a, 0x61, + 0x2d, 0x7a, 0x30, 0x2d, 0x39, 0x5f, 0x2c, 0x3a, 0x5d, 0x2a, 0x5b, 0x41, 0x2d, 0x5a, 0x61, 0x2d, + 0x7a, 0x30, 0x2d, 0x39, 0x5f, 0x5d, 0x29, 0x3f, 0x24, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x26, + 0x0a, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xba, + 0xa4, 0xe1, 0xbc, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x71, 0x0a, 0x0b, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x76, + 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x18, 0x9a, 0xfd, 0xfc, 0x7d, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3f, + 0x2e, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, + 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x2e, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x56, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x42, + 0x0b, 0xba, 0x48, 0x08, 0x82, 0x01, 0x05, 0x10, 0x01, 0x22, 0x01, 0x00, 0x52, 0x0b, 0x6b, 0x75, + 0x62, 0x65, 0x5f, 0x76, 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x12, 0x32, 0x0a, 0x0e, 0x76, 0x65, 0x6e, + 0x64, 0x6f, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0xe3, 0xc1, 0xb6, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xba, 0x48, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x0e, 0x76, + 0x65, 0x6e, 0x64, 0x6f, 0x72, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x7b, 0x0a, + 0x0e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, + 0xbe, 0xce, 0xab, 0xe3, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x42, 0x2e, 0x6b, 0x65, 0x73, 0x73, + 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, + 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x4b, + 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, + 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x42, 0x0b, 0xba, + 0x48, 0x08, 0x82, 0x01, 0x05, 0x10, 0x01, 0x22, 0x01, 0x00, 0x52, 0x0e, 0x63, 0x6c, 0x6f, 0x75, + 0x64, 0x5f, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x57, 0x0a, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x18, 0x91, 0xc5, 0xfc, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x6b, + 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, + 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x2e, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, + 0x69, 0x6c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x52, 0x05, 0x6e, 0x6f, + 0x64, 0x65, 0x73, 0x22, 0x6d, 0x0a, 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x09, + 0x0a, 0x05, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x41, 0x49, + 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x46, 0x46, 0x4c, 0x49, 0x4e, 0x45, + 0x10, 0x04, 0x22, 0x73, 0x0a, 0x0a, 0x4b, 0x75, 0x62, 0x65, 0x56, 0x65, 0x6e, 0x64, 0x6f, 0x72, + 0x12, 0x1b, 0x0a, 0x17, 0x4b, 0x55, 0x42, 0x45, 0x5f, 0x56, 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x5f, + 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, + 0x11, 0x4b, 0x55, 0x42, 0x45, 0x5f, 0x56, 0x45, 0x4e, 0x44, 0x4f, 0x52, 0x5f, 0x4f, 0x54, 0x48, + 0x45, 0x52, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x41, 0x4b, 0x53, 0x10, 0x02, 0x12, 0x07, 0x0a, + 0x03, 0x45, 0x4b, 0x53, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x49, 0x4b, 0x53, 0x10, 0x04, 0x12, + 0x0d, 0x0a, 0x09, 0x4f, 0x50, 0x45, 0x4e, 0x53, 0x48, 0x49, 0x46, 0x54, 0x10, 0x05, 0x12, 0x07, + 0x0a, 0x03, 0x47, 0x4b, 0x45, 0x10, 0x06, 0x22, 0xfe, 0x02, 0x0a, 0x0d, 0x43, 0x6c, 0x6f, 0x75, + 0x64, 0x50, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x4c, 0x4f, + 0x55, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, + 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x4c, 0x4f, + 0x55, 0x44, 0x5f, 0x50, 0x4c, 0x41, 0x54, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x4f, 0x54, 0x48, 0x45, + 0x52, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x4f, 0x4e, 0x45, 0x5f, 0x55, 0x50, 0x49, 0x10, + 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x41, 0x52, 0x45, 0x4d, 0x45, 0x54, 0x41, 0x4c, 0x5f, 0x49, + 0x50, 0x49, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x41, 0x52, 0x45, 0x4d, 0x45, 0x54, 0x41, + 0x4c, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x57, 0x53, 0x5f, 0x49, + 0x50, 0x49, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x41, 0x57, 0x53, 0x5f, 0x55, 0x50, 0x49, 0x10, + 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x07, + 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x08, 0x12, + 0x10, 0x0a, 0x0c, 0x49, 0x42, 0x4d, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x49, 0x50, 0x49, 0x10, + 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x49, 0x42, 0x4d, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x55, 0x50, + 0x49, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x4b, 0x55, 0x42, 0x45, 0x56, 0x49, 0x52, 0x54, 0x5f, + 0x49, 0x50, 0x49, 0x10, 0x0b, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x50, 0x45, 0x4e, 0x53, 0x54, 0x41, + 0x43, 0x4b, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x0c, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x50, 0x45, 0x4e, + 0x53, 0x54, 0x41, 0x43, 0x4b, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x0d, 0x12, 0x0b, 0x0a, 0x07, 0x47, + 0x43, 0x50, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x0e, 0x12, 0x0b, 0x0a, 0x07, 0x47, 0x43, 0x50, 0x5f, + 0x55, 0x50, 0x49, 0x10, 0x0f, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x55, 0x54, 0x41, 0x4e, 0x49, 0x58, + 0x5f, 0x49, 0x50, 0x49, 0x10, 0x10, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x55, 0x54, 0x41, 0x4e, 0x49, + 0x58, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x11, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x53, 0x50, 0x48, 0x45, + 0x52, 0x45, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x56, 0x53, 0x50, 0x48, + 0x45, 0x52, 0x45, 0x5f, 0x55, 0x50, 0x49, 0x10, 0x13, 0x12, 0x0d, 0x0a, 0x09, 0x4f, 0x56, 0x49, + 0x52, 0x54, 0x5f, 0x49, 0x50, 0x49, 0x10, 0x14, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x42, 0x9d, 0x01, 0x0a, 0x32, + 0x6f, 0x72, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6b, 0x65, 0x73, 0x73, + 0x65, 0x6c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x73, 0x42, 0x15, 0x4b, 0x38, 0x73, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x44, 0x65, + 0x74, 0x61, 0x69, 0x6c, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2d, + 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, + 0x2d, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6b, 0x65, 0x73, 0x73, 0x65, 0x6c, 0x2f, + 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, + 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, } var ( @@ -500,6 +516,7 @@ func file_kessel_inventory_v1beta1_resources_k8s_cluster_detail_proto_init() { } } } + file_kessel_inventory_v1beta1_resources_k8s_cluster_detail_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.proto b/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.proto index 06af0fec..eea42671 100644 --- a/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.proto +++ b/api/kessel/inventory/v1beta1/resources/k8s_cluster_detail.proto @@ -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" ]; diff --git a/openapi.yaml b/openapi.yaml index a7112190..9c542613 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -673,6 +673,8 @@ components: - OFFLINE type: string format: enum + cluster_reason: + type: string kube_version: type: string description: The version of kubernetes