Remove WeaveScopeHost from network
Signed-off-by: Zhengyi Lai <zheng1@yunify.com>
This commit is contained in:
@@ -203,7 +203,7 @@ func (conf *Config) stripEmptyOptions() {
|
||||
conf.OpenPitrixOptions = nil
|
||||
}
|
||||
|
||||
if conf.NetworkOptions != nil && conf.NetworkOptions.WeaveScopeHost == "" {
|
||||
if conf.NetworkOptions != nil && conf.NetworkOptions.EnableNetworkPolicy == false {
|
||||
conf.NetworkOptions = nil
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ func newTestConfig() (*Config, error) {
|
||||
AttachmentManagerEndpoint: "openpitrix-hyperpitrix.openpitrix-system.svc:9122",
|
||||
},
|
||||
NetworkOptions: &network.Options{
|
||||
WeaveScopeHost: "weave-scope-app.weave.svc",
|
||||
EnableNetworkPolicy: true,
|
||||
},
|
||||
MonitoringOptions: &prometheus.Options{
|
||||
Endpoint: "http://prometheus.kubesphere-monitoring-system.svc",
|
||||
|
||||
Reference in New Issue
Block a user