-
Notifications
You must be signed in to change notification settings - Fork 244
/
Copy pathconfig.go
149 lines (116 loc) · 3.95 KB
/
config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
// Copyright 2017 Microsoft. All rights reserved.
// MIT License
package common
// Command line options.
const (
// Operating environment.
OptEnvironment = "environment"
OptEnvironmentAlias = "e"
OptEnvironmentAzure = "azure"
OptEnvironmentMAS = "mas"
OptEnvironmentFileIpam = "fileIpam"
OptEnvironmentIPv6NodeIpam = "ipv6NodeIpam"
// API server URL.
OptAPIServerURL = "api-url"
OptAPIServerURLAlias = "u"
OptCnsURL = "cns-url"
OptCnsURLAlias = "c"
// Logging level.
OptLogLevel = "log-level"
OptLogLevelAlias = "l"
OptLogLevelInfo = "info"
OptLogLevelDebug = "debug"
// Logging target.
OptLogTarget = "log-target"
OptLogTargetAlias = "t"
OptLogTargetSyslog = "syslog"
OptLogTargetStderr = "stderr"
OptLogTargetFile = "logfile"
OptLogStdout = "stdout"
OptLogMultiWrite = "stdoutfile"
// Logging location
OptLogLocation = "log-location"
OptLogLocationAlias = "o"
// IPAM query URL.
OptIpamQueryUrl = "ipam-query-url"
OptIpamQueryUrlAlias = "q"
// IPAM query interval.
OptIpamQueryInterval = "ipam-query-interval"
OptIpamQueryIntervalAlias = "i"
// Start CNM
OptStartAzureCNM = "start-azure-cnm"
OptStartAzureCNMAlias = "startcnm"
// Interval to send reports to host
OptReportToHostInterval = "report-interval"
OptReportToHostIntervalAlias = "hostinterval"
// Periodic Interval Time
OptIntervalTime = "interval"
OptIntervalTimeAlias = "it"
OptDefaultIntervalTime = "defaultinterval"
// Version.
OptVersion = "version"
OptVersionAlias = "v"
// Help.
OptHelp = "help"
OptHelpAlias = "h"
// CNI binary location
OptNetPluginPath = "net-plugin-path"
OptNetPluginPathAlias = "np"
// CNI binary location
OptNetPluginConfigFile = "net-plugin-config-file"
OptNetPluginConfigFileAlias = "npconfig"
// Telemetry config Location
OptTelemetryConfigDir = "telemetry-config-file"
OptTelemetryConfigDirAlias = "d"
// Create ext Hns network
OptCreateDefaultExtNetworkType = "create-defaultextnetwork-type"
OptCreateDefaultExtNetworkTypeAlias = "defaultextnetworktype"
// Disable Telemetry
OptTelemetry = "telemetry"
OptTelemetryAlias = "dt"
// Enable CNS to program SNAT iptables rules
OptProgramSNATIPTables = "program-snat-iptables"
// Enable Telemetry service
OptTelemetryService = "telemetry-service"
OptTelemetryServiceAlias = "ts"
// HTTP connection timeout
OptHttpConnectionTimeout = "http-connection-timeout"
OptHttpConnectionTimeoutAlias = "httpcontimeout"
// HTTP response header timeout
OptHttpResponseHeaderTimeout = "http-response-header-timeout"
OptHttpResponseHeaderTimeoutAlias = "httprespheadertimeout"
// Enable CNS to manage endpoint state
OptManageEndpointState = "manage-endpoint-state"
// Store file location
OptStoreFileLocation = "store-file-path"
OptStoreFileLocationAlias = "storefilepath"
// Private Endpoint
OptPrivateEndpoint = "private-endpoint"
OptPrivateEndpointAlias = "pe"
// Infrastructure Network
OptInfrastructureNetworkID = "infra-vnet"
OptInfrastructureNetworkIDAlias = "iv"
// Node ID/Name
OptNodeID = "node-id"
OptNodeIDAlias = "n"
// Managed mode
OptManaged = "managed"
OptManagedAlias = "m"
// Client mode, cmd
OptDebugCmd = "debugcmd"
OptDebugCmdAlias = "cmd"
// Client mode, args for cmd
OptDebugArg = "debugarg"
OptDebugArgAlias = "darg"
// CNS config path
OptCNSConfigPath = "config-path"
OptCNSConfigPathAlias = "cp"
// OptCNIConflistFilepath
OptCNIConflistFilepath = "cni-conflist-filepath"
// OptCNIConflistFilepathAlias TODO: a "shorthand" is required for the acn args package but this isn't helpful
OptCNIConflistFilepathAlias = "cniconflist"
// OptCNIConflistFilepath
OptCNIConflistScenario = "cni-conflist-scenario"
// OptCNIConflistScenarioAlias "shorthand" for the cni conflist scenairo, see above
OptCNIConflistScenarioAlias = "cniconflistscenario"
)