From 83fb4bc6eddbdf3fdb6b56859e850e670cadf591 Mon Sep 17 00:00:00 2001 From: Bezalel Brandwine Date: Wed, 20 Oct 2021 15:49:01 +0300 Subject: [PATCH] add cluster API version + cloud provider to structure --- reporthandling/datastructures.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reporthandling/datastructures.go b/reporthandling/datastructures.go index b0649a2b..ef49f702 100644 --- a/reporthandling/datastructures.go +++ b/reporthandling/datastructures.go @@ -4,6 +4,7 @@ import ( "time" "github.com/armosec/armoapi-go/armotypes" + "k8s.io/apimachinery/pkg/version" ) type AlertScore float32 @@ -84,6 +85,8 @@ type RuleStatus struct { type PostureReport struct { CustomerGUID string `json:"customerGUID"` ClusterName string `json:"clusterName"` + ClusterAPIServerInfo *version.Info `json:"clusterAPIServerInfo"` + ClusterCloudProvider string `json:"clusterCloudProvider"` ReportID string `json:"reportID"` JobID string `json:"jobID"` ReportGenerationTime time.Time `json:"generationTime"`