1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 18:15:48 +00:00

print metrics for applied policy

Signed-off-by: NoSkillGirl <singhpooja240393@gmail.com>
This commit is contained in:
NoSkillGirl 2021-06-21 17:38:47 +05:30
parent 60a5623b94
commit d45175f5be

View file

@ -34,12 +34,13 @@ func ProcessMetrics(newStr, e2ePolicyName string, e2eTime time.Time) bool {
}
}
fmt.Println("action: ", action)
fmt.Println("policyName: ", policyName)
fmt.Println("timeInTimeFormat: ", timeInTimeFormat)
if policyName == e2ePolicyName {
fmt.Println("--------------------------------------------------------")
fmt.Println(lineSplitedByNewLine)
fmt.Println("action: ", action)
fmt.Println("policyName: ", policyName)
fmt.Println("timeInTimeFormat: ", timeInTimeFormat)
diff := e2eTime.Sub(timeInTimeFormat)
if diff < 0 {
if action == "created" {