2023-07-07 13:17:24 +02:00
|
|
|
package create
|
|
|
|
|
|
|
|
import (
|
2023-09-06 16:44:50 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/command"
|
2023-09-12 14:58:30 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/exception"
|
2023-09-04 17:15:55 +02:00
|
|
|
metricsconfig "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/metrics-config"
|
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/test"
|
2023-09-05 04:14:28 +02:00
|
|
|
userinfo "github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/user-info"
|
2023-09-04 17:15:55 +02:00
|
|
|
"github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/commands/create/values"
|
2023-07-07 13:17:24 +02:00
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Command() *cobra.Command {
|
|
|
|
cmd := &cobra.Command{
|
2023-09-13 11:53:19 +02:00
|
|
|
Use: "create",
|
|
|
|
Short: command.FormatDescription(true, websiteUrl, false, description...),
|
|
|
|
Long: command.FormatDescription(false, websiteUrl, false, description...),
|
|
|
|
Example: command.FormatExamples(examples...),
|
|
|
|
Args: cobra.NoArgs,
|
|
|
|
SilenceUsage: true,
|
2023-07-07 13:17:24 +02:00
|
|
|
RunE: func(cmd *cobra.Command, args []string) error {
|
|
|
|
return cmd.Help()
|
|
|
|
},
|
|
|
|
}
|
2023-07-31 11:03:27 +02:00
|
|
|
cmd.AddCommand(
|
2023-09-12 14:58:30 +02:00
|
|
|
exception.Command(),
|
2023-07-31 11:03:27 +02:00
|
|
|
metricsconfig.Command(),
|
|
|
|
test.Command(),
|
|
|
|
userinfo.Command(),
|
2023-07-31 17:48:00 +02:00
|
|
|
values.Command(),
|
2023-07-31 11:03:27 +02:00
|
|
|
)
|
2023-07-07 13:17:24 +02:00
|
|
|
return cmd
|
|
|
|
}
|