Skip to content

Commit

Permalink
Update relationship status (#147)
Browse files Browse the repository at this point in the history
* Update relationship status
 - Complaint and Non-Compliant to Violations and No-Violations

* Update k8spolicy_ispropagatedto_k8scluster_detail.proto

---------

Co-authored-by: Randy George <[email protected]>
  • Loading branch information
josejulio and randymgeorge committed Sep 20, 2024
1 parent 2e36bb4 commit 0817b95
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.

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 @@ -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.
Expand All @@ -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} ];
}
}
2 changes: 1 addition & 1 deletion data/k8spolicy_ispropagatedto_k8scluster.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"object_local_resource_id": "2"
},
"relationship_data": {
"status": "COMPLIANT"
"status": "NO_VIOLATIONS"
}
}
}

0 comments on commit 0817b95

Please sign in to comment.