Skip to content

Commit 144d1d2

Browse files
committed
setting config values
1 parent bf6bf03 commit 144d1d2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

npm/cmd/start.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ func start(config npmconfig.Config, flags npmconfig.Flags) error {
130130
options.FieldSelector = "spec.nodeName=" + models.GetNodeName()
131131
}),
132132
)
133+
npmV2DataplaneCfg.IsL1VHNode = config.Toggles.IsL1VHNode
134+
npmV2DataplaneCfg.EnableNPMLite = config.Toggles.EnableNPMLite
133135
}
134136
k8sServerVersion := k8sServerVersion(clientset)
135137

npm/config/config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ var DefaultConfig = Config{
5252
// NetPolInBackground is currently used in Linux to apply NetPol controller Add events in the background
5353
NetPolInBackground: true,
5454
EnableNPMLite: false,
55+
IsL1VHNode: false,
5556
},
5657
}
5758

@@ -96,6 +97,7 @@ type Toggles struct {
9697
// NetPolInBackground
9798
NetPolInBackground bool
9899
EnableNPMLite bool
100+
IsL1VHNode bool
99101
}
100102

101103
type Flags struct {

0 commit comments

Comments
 (0)