mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-10 12:53:37 +00:00
Adding experimental feature flags (#627)
This commit is contained in:
parent
e2df973fe6
commit
bfbbc27e62
@ -89,6 +89,8 @@ func getInstallMizuAgentConfig(maxDBSizeBytes int64, tapperResources shared.Reso
|
|||||||
MizuResourcesNamespace: config.Config.MizuResourcesNamespace,
|
MizuResourcesNamespace: config.Config.MizuResourcesNamespace,
|
||||||
AgentDatabasePath: shared.DataDirPath,
|
AgentDatabasePath: shared.DataDirPath,
|
||||||
StandaloneMode: true,
|
StandaloneMode: true,
|
||||||
|
ServiceMap: config.Config.ServiceMap,
|
||||||
|
OAS: config.Config.OAS,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &mizuAgentConfig
|
return &mizuAgentConfig
|
||||||
|
@ -156,6 +156,8 @@ func getTapMizuAgentConfig() *shared.MizuAgentConfig {
|
|||||||
TapperResources: config.Config.Tap.TapperResources,
|
TapperResources: config.Config.Tap.TapperResources,
|
||||||
MizuResourcesNamespace: config.Config.MizuResourcesNamespace,
|
MizuResourcesNamespace: config.Config.MizuResourcesNamespace,
|
||||||
AgentDatabasePath: shared.DataDirPath,
|
AgentDatabasePath: shared.DataDirPath,
|
||||||
|
ServiceMap: config.Config.ServiceMap,
|
||||||
|
OAS: config.Config.OAS,
|
||||||
}
|
}
|
||||||
|
|
||||||
return &mizuAgentConfig
|
return &mizuAgentConfig
|
||||||
|
@ -34,9 +34,11 @@ type ConfigStruct struct {
|
|||||||
ConfigFilePath string `yaml:"config-path,omitempty" readonly:""`
|
ConfigFilePath string `yaml:"config-path,omitempty" readonly:""`
|
||||||
HeadlessMode bool `yaml:"headless" default:"false"`
|
HeadlessMode bool `yaml:"headless" default:"false"`
|
||||||
LogLevelStr string `yaml:"log-level,omitempty" default:"INFO" readonly:""`
|
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 {
|
if _, err := logging.LogLevel(config.LogLevelStr); err != nil {
|
||||||
return fmt.Errorf("%s is not a valid log level, err: %v", config.LogLevelStr, err)
|
return fmt.Errorf("%s is not a valid log level, err: %v", config.LogLevelStr, err)
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,8 @@ type MizuAgentConfig struct {
|
|||||||
MizuResourcesNamespace string `json:"mizuResourceNamespace"`
|
MizuResourcesNamespace string `json:"mizuResourceNamespace"`
|
||||||
AgentDatabasePath string `json:"agentDatabasePath"`
|
AgentDatabasePath string `json:"agentDatabasePath"`
|
||||||
StandaloneMode bool `json:"standaloneMode"`
|
StandaloneMode bool `json:"standaloneMode"`
|
||||||
|
ServiceMap bool `json:"serviceMap"`
|
||||||
|
OAS bool `json:"oas"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type WebSocketMessageMetadata struct {
|
type WebSocketMessageMetadata struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user