diff --git a/cli/cmd/installRunner.go b/cli/cmd/installRunner.go index cbb4602b9..b4912e7ce 100644 --- a/cli/cmd/installRunner.go +++ b/cli/cmd/installRunner.go @@ -89,6 +89,8 @@ func getInstallMizuAgentConfig(maxDBSizeBytes int64, tapperResources shared.Reso MizuResourcesNamespace: config.Config.MizuResourcesNamespace, AgentDatabasePath: shared.DataDirPath, StandaloneMode: true, + ServiceMap: config.Config.ServiceMap, + OAS: config.Config.OAS, } return &mizuAgentConfig diff --git a/cli/cmd/tapRunner.go b/cli/cmd/tapRunner.go index 6287403fd..3210acc9a 100644 --- a/cli/cmd/tapRunner.go +++ b/cli/cmd/tapRunner.go @@ -156,6 +156,8 @@ func getTapMizuAgentConfig() *shared.MizuAgentConfig { TapperResources: config.Config.Tap.TapperResources, MizuResourcesNamespace: config.Config.MizuResourcesNamespace, AgentDatabasePath: shared.DataDirPath, + ServiceMap: config.Config.ServiceMap, + OAS: config.Config.OAS, } return &mizuAgentConfig diff --git a/cli/config/configStruct.go b/cli/config/configStruct.go index f0402bf2d..f18142eea 100644 --- a/cli/config/configStruct.go +++ b/cli/config/configStruct.go @@ -34,9 +34,11 @@ type ConfigStruct struct { ConfigFilePath string `yaml:"config-path,omitempty" readonly:""` HeadlessMode bool `yaml:"headless" default:"false"` LogLevelStr string `yaml:"log-level,omitempty" default:"INFO" readonly:""` + ServiceMap bool `yaml:"service-map" default:"false" readonly:""` + OAS bool `yaml:"oas" default:"false" readonly:""` } -func(config *ConfigStruct) validate() error { +func (config *ConfigStruct) validate() error { if _, err := logging.LogLevel(config.LogLevelStr); err != nil { return fmt.Errorf("%s is not a valid log level, err: %v", config.LogLevelStr, err) } diff --git a/shared/models.go b/shared/models.go index d16ca1d92..28dae2feb 100644 --- a/shared/models.go +++ b/shared/models.go @@ -41,6 +41,8 @@ type MizuAgentConfig struct { MizuResourcesNamespace string `json:"mizuResourceNamespace"` AgentDatabasePath string `json:"agentDatabasePath"` StandaloneMode bool `json:"standaloneMode"` + ServiceMap bool `json:"serviceMap"` + OAS bool `json:"oas"` } type WebSocketMessageMetadata struct {