From 0817b9580d82d3b0bece24ad56035ca790053dad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josejulio=20Mart=C3=ADnez?= Date: Fri, 20 Sep 2024 14:03:09 -0600 Subject: [PATCH] Update relationship status (#147) * Update relationship status - Complaint and Non-Compliant to Violations and No-Violations * Update k8spolicy_ispropagatedto_k8scluster_detail.proto --------- Co-authored-by: Randy George --- ...licy_ispropagatedto_k8scluster_detail.pb.go | 18 +++++++++--------- ...licy_ispropagatedto_k8scluster_detail.proto | 6 +++--- data/k8spolicy_ispropagatedto_k8scluster.json | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.pb.go b/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.pb.go index 8e16dab9..948073e6 100644 --- a/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.pb.go +++ b/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.pb.go @@ -28,8 +28,8 @@ type K8SPolicyIsPropagatedToK8SClusterDetail_Status int32 const ( K8SPolicyIsPropagatedToK8SClusterDetail_STATUS_UNSPECIFIED K8SPolicyIsPropagatedToK8SClusterDetail_Status = 0 K8SPolicyIsPropagatedToK8SClusterDetail_STATUS_OTHER K8SPolicyIsPropagatedToK8SClusterDetail_Status = 1 - K8SPolicyIsPropagatedToK8SClusterDetail_NON_COMPLIANT K8SPolicyIsPropagatedToK8SClusterDetail_Status = 2 - K8SPolicyIsPropagatedToK8SClusterDetail_COMPLIANT K8SPolicyIsPropagatedToK8SClusterDetail_Status = 3 + K8SPolicyIsPropagatedToK8SClusterDetail_VIOLATION K8SPolicyIsPropagatedToK8SClusterDetail_Status = 2 + K8SPolicyIsPropagatedToK8SClusterDetail_NON_VIOLATION K8SPolicyIsPropagatedToK8SClusterDetail_Status = 3 ) // Enum value maps for K8SPolicyIsPropagatedToK8SClusterDetail_Status. @@ -37,14 +37,14 @@ var ( K8SPolicyIsPropagatedToK8SClusterDetail_Status_name = map[int32]string{ 0: "STATUS_UNSPECIFIED", 1: "STATUS_OTHER", - 2: "NON_COMPLIANT", - 3: "COMPLIANT", + 2: "VIOLATION", + 3: "NON_VIOLATION", } K8SPolicyIsPropagatedToK8SClusterDetail_Status_value = map[string]int32{ "STATUS_UNSPECIFIED": 0, "STATUS_OTHER": 1, - "NON_COMPLIANT": 2, - "COMPLIANT": 3, + "VIOLATION": 2, + "NON_VIOLATION": 3, } ) @@ -174,9 +174,9 @@ var file_kessel_inventory_v1beta1_relationships_k8spolicy_ispropagatedto_k8sclus 0x01, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x54, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x11, - 0x0a, 0x0d, 0x4e, 0x4f, 0x4e, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x49, 0x41, 0x4e, 0x54, 0x10, - 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x49, 0x41, 0x4e, 0x54, 0x10, 0x03, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x54, 0x48, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0d, + 0x0a, 0x09, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x11, 0x0a, + 0x0d, 0x4e, 0x4f, 0x4e, 0x5f, 0x56, 0x49, 0x4f, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x03, 0x42, 0x8e, 0x01, 0x0a, 0x36, 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, diff --git a/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.proto b/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.proto index 164e9859..54dc6ec5 100644 --- a/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.proto +++ b/api/kessel/inventory/v1beta1/relationships/k8spolicy_ispropagatedto_k8scluster_detail.proto @@ -15,8 +15,8 @@ message K8SPolicyIsPropagatedToK8SClusterDetail { enum Status { STATUS_UNSPECIFIED = 0; STATUS_OTHER = 1; - NON_COMPLIANT = 2; - COMPLIANT = 3; + VIOLATIONS = 2; + NO_VIOLATIONS = 3; } // The resource ID assigned to the resource by Kessel Asset Inventory. @@ -26,4 +26,4 @@ message K8SPolicyIsPropagatedToK8SClusterDetail { int64 k8s_cluster_id = 240280960 [ json_name = "k8s_cluster_id", (google.api.field_behavior) = OUTPUT_ONLY ]; Status status = 355610639 [ json_name = "status",(buf.validate.field).enum = {not_in: [0], defined_only: true} ]; -} \ No newline at end of file +} diff --git a/data/k8spolicy_ispropagatedto_k8scluster.json b/data/k8spolicy_ispropagatedto_k8scluster.json index a86bd96a..48db35e4 100644 --- a/data/k8spolicy_ispropagatedto_k8scluster.json +++ b/data/k8spolicy_ispropagatedto_k8scluster.json @@ -9,7 +9,7 @@ "object_local_resource_id": "2" }, "relationship_data": { - "status": "COMPLIANT" + "status": "NO_VIOLATIONS" } } }