class Kubescape::TestReportParser

Defined in:

tasks/utils/kubescape.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(report_json : JSON::Any) #

[View source]

Instance Method Detail

def get_alert_message(name : String, kind : String, namespace : Nil) #

[View source]
def get_alert_message(name : String, kind : String, namespace : String) #

[View source]
def parse #

[View source]
def parse_k8s_object_name(name : Nil, metadata_name : JSON::Any) : String #

[View source]
def parse_k8s_object_name(name : JSON::Any, metadata_name : Nil) : String #

[View source]
def parse_k8s_object_name(name, metadata_name) : String #

Use empty string if name and metadata_name are not valid values


[View source]
def parse_k8s_object_namespace(namespace : JSON::Any) #

[View source]
def parse_k8s_object_namespace(namespace : Nil) #

[View source]
def parse_rule_response(rule_response : JSON::Any, rule_name : String) #

[View source]
def parse_rule_response_k8s_object(k8s_obj : JSON::Any, rule_name : String, response_alert : JSON::Any | Nil) : TestResource #

[View source]