forked from nginx/nginx-gateway-fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
34 lines (28 loc) · 710 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package main
import (
"fmt"
"os"
)
// Set during go build.
var (
version string
// telemetryReportPeriod is the period at which telemetry reports are sent.
telemetryReportPeriod string
// telemetryEndpoint is the endpoint to which telemetry reports are sent.
telemetryEndpoint string
// telemetryEndpointInsecure controls whether TLS should be used when sending telemetry reports.
telemetryEndpointInsecure string
)
func main() {
rootCmd := createRootCommand()
rootCmd.AddCommand(
createStaticModeCommand(),
createProvisionerModeCommand(),
createCopyCommand(),
createSleepCommand(),
)
if err := rootCmd.Execute(); err != nil {
_, _ = fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}