networkpolicy: add new parameters allowedIngressNamespaces for user customization
Signed-off-by: Duan Jiong <djduanjiong@gmail.com>
This commit is contained in:
@@ -102,6 +102,9 @@ func newTestConfig() (*Config, error) {
|
||||
},
|
||||
NetworkOptions: &network.Options{
|
||||
EnableNetworkPolicy: true,
|
||||
NSNPOptions: network.NSNPOptions{
|
||||
AllowedIngressNamespaces: []string{},
|
||||
},
|
||||
},
|
||||
MonitoringOptions: &prometheus.Options{
|
||||
Endpoint: "http://prometheus.kubesphere-monitoring-system.svc",
|
||||
|
||||
Reference in New Issue
Block a user