mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fixing cli output printing issues
This commit is contained in:
parent
2e60df0cb3
commit
00da200c59
1 changed files with 3 additions and 1 deletions
|
@ -257,7 +257,8 @@ func applyPolicyOnResource(policy *v1.ClusterPolicy, resource *unstructured.Unst
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("\n\n" + strings.ReplaceAll(string(yamlEncodedResource), "\n", "\n"))
|
fmt.Printf("\n\n" + string(yamlEncodedResource))
|
||||||
|
fmt.Printf("\n\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -273,6 +274,7 @@ func applyPolicyOnResource(policy *v1.ClusterPolicy, resource *unstructured.Unst
|
||||||
if len(validateResponse.PolicyResponse.Rules) > 0 {
|
if len(validateResponse.PolicyResponse.Rules) > 0 {
|
||||||
fmt.Printf("\n\nValidation:")
|
fmt.Printf("\n\nValidation:")
|
||||||
fmt.Printf("\nResource is valid")
|
fmt.Printf("\nResource is valid")
|
||||||
|
fmt.Printf("\n\n")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue