@@ -26,14 +26,26 @@ const (
26
26
)
27
27
28
28
type CNSConfig struct {
29
+ AZRSettings AZRSettings
30
+ AsyncPodDeletePath string
31
+ CNIConflistFilepath string
32
+ CNIConflistScenario string
29
33
ChannelMode string
34
+ EnableAsyncPodDelete bool
35
+ EnableCNIConflistGeneration bool
36
+ EnableIPAMv2 bool
30
37
EnablePprof bool
31
38
EnableSubnetScarcity bool
32
39
EnableSwiftV2 bool
33
- SWIFTV2Mode SWIFTV2Mode
34
40
InitializeFromCNI bool
41
+ KeyVaultSettings KeyVaultSettings
42
+ MSISettings MSISettings
43
+ ManageEndpointState bool
35
44
ManagedSettings ManagedSettings
45
+ MellanoxMonitorIntervalSecs int
36
46
MetricsBindAddress string
47
+ ProgramSNATIPTables bool
48
+ SWIFTV2Mode SWIFTV2Mode
37
49
SyncHostNCTimeoutMs int
38
50
SyncHostNCVersionIntervalMs int
39
51
TLSCertificatePath string
@@ -42,19 +54,8 @@ type CNSConfig struct {
42
54
TLSSubjectName string
43
55
TelemetrySettings TelemetrySettings
44
56
UseHTTPS bool
57
+ WatchPods bool `json:"-"`
45
58
WireserverIP string
46
- KeyVaultSettings KeyVaultSettings
47
- MSISettings MSISettings
48
- ProgramSNATIPTables bool
49
- ManageEndpointState bool
50
- CNIConflistScenario string
51
- EnableCNIConflistGeneration bool
52
- CNIConflistFilepath string
53
- MellanoxMonitorIntervalSecs int
54
- AZRSettings AZRSettings
55
- WatchPods bool
56
- EnableAsyncPodDelete bool
57
- AsyncPodDeletePath string
58
59
}
59
60
60
61
type TelemetrySettings struct {
@@ -219,4 +220,5 @@ func SetCNSConfigDefaults(config *CNSConfig) {
219
220
if config .AsyncPodDeletePath == "" {
220
221
config .AsyncPodDeletePath = "/var/run/azure-vnet/deleteIDs"
221
222
}
223
+ config .WatchPods = config .EnableIPAMv2 || config .EnableSwiftV2
222
224
}
0 commit comments