Commit 62db1127 authored by Rami Berman's avatar Rami Berman
Browse files

Update config.go, tapConfig.go, and models.go

parent c5d90a76
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -387,6 +387,7 @@ func getMizuConfig() (*shared.MizuAgentConfig, error) {
config := shared.MizuAgentConfig{
TapTargetRegex: *serializableRegex,
MaxDBSizeBytes: Config.Tap.MaxEntriesDBSizeBytes(),
DaemonMode: Config.Tap.DaemonMode,
}
return &config, nil
}
......@@ -21,6 +21,7 @@ const (
WorkspaceTapName = "workspace"
EnforcePolicyFile = "traffic-validation-file"
ContractFile = "contract"
DaemonModeTapName = "daemon"
)
type TapConfig struct {
......@@ -42,6 +43,7 @@ type TapConfig struct {
AskUploadConfirmation bool `yaml:"ask-upload-confirmation" default:"true"`
ApiServerResources shared.Resources `yaml:"api-server-resources"`
TapperResources shared.Resources `yaml:"tapper-resources"`
DaemonMode bool `yaml:"daemon-mode"`
}
func (config *TapConfig) PodRegex() *regexp.Regexp {
......
......@@ -29,6 +29,7 @@ type Resources struct {
type MizuAgentConfig struct {
TapTargetRegex api.SerializableRegexp `yaml:"tapTargetRegex"`
MaxDBSizeBytes int64 `yaml:"maxDBSizeBytes"`
DaemonMode bool `yaml:"daemonMode"`
}
type WebSocketMessageMetadata struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment