forked from openshift/operator-framework-olm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.go
22 lines (18 loc) · 829 Bytes
/
start.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main
import (
"github.com/spf13/cobra"
)
func newStartCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "start",
Short: "Start the PackageServer manager",
SilenceUsage: true,
RunE: run,
}
cmd.Flags().String("name", defaultName, "configures the metadata.name for the packageserver csv resource")
cmd.Flags().String("namespace", defaultNamespace, "configures the metadata.namespace that contains the packageserver csv resource")
cmd.Flags().String("health", defaultHealthCheckPort, "configures the health check port that the kubelet is configured to probe")
cmd.Flags().String("pprof", defaultPprofPort, "configures the pprof port that the process exposes")
cmd.Flags().Bool("disable-leader-election", false, "configures whether leader election will be disabled")
return cmd
}