1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

documentation added for report command

This commit is contained in:
evalsocket 2020-09-16 00:49:55 -07:00
parent 1d741cb6aa
commit e6da0c11f1
4 changed files with 5 additions and 5 deletions

View file

@ -18,7 +18,7 @@ func AllReportsCommand() *cobra.Command {
var mode,namespace, policy string
cmd := &cobra.Command{
Use: "all",
Short: "generate report",
Short: "generate report for all scope",
Example: fmt.Sprintf("To create a namespace report from background scan:\nkyverno report namespace --namespace=defaults \n kyverno report namespace"),
RunE: func(cmd *cobra.Command, args []string) (err error) {
os.Setenv("POLICY-TYPE", common.PolicyReport)

View file

@ -15,8 +15,8 @@ func ClusterCommand() *cobra.Command {
var mode, policy string
cmd := &cobra.Command{
Use: "cluster",
Short: "generate report",
Example: fmt.Sprintf("To create a cluster report from background scan:\nkyverno report cluster --namespace=defaults \n kyverno report cluster"),
Short: "generate report for cluster scope",
Example: fmt.Sprintf("To create a cluster report from background scan: kyverno report cluster"),
RunE: func(cmd *cobra.Command, args []string) (err error) {
os.Setenv("POLICY-TYPE", common.PolicyReport)
logger := log.Log.WithName("Report")

View file

@ -19,7 +19,7 @@ func HelmCommand() *cobra.Command {
var mode, policy, namespace string
cmd := &cobra.Command{
Use: "helm",
Short: "generate report",
Short: "generate report for scope app",
Example: fmt.Sprintf("To create a helm report from background scan:\nkyverno report helm --namespace=defaults \n kyverno report helm"),
RunE: func(cmd *cobra.Command, args []string) (err error) {
os.Setenv("POLICY-TYPE", common.PolicyReport)

View file

@ -18,7 +18,7 @@ func NamespaceCommand() *cobra.Command {
var mode, namespace, policy string
cmd := &cobra.Command{
Use: "namespace",
Short: "generate report",
Short: "generate report for scope namespace",
Example: fmt.Sprintf("To create a namespace report from background scan:\nkyverno report namespace --namespace=defaults \n kyverno report namespace"),
RunE: func(cmd *cobra.Command, args []string) (err error) {
os.Setenv("POLICY-TYPE", common.PolicyReport)