Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Mizu
Commits
62db1127
Commit
62db1127
authored
3 years ago
by
Rami Berman
Browse files
Options
Download
Email Patches
Plain Diff
Update config.go, tapConfig.go, and models.go
parent
c5d90a76
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cli/config/config.go
+1
-0
cli/config/config.go
cli/config/configStructs/tapConfig.go
+2
-0
cli/config/configStructs/tapConfig.go
shared/models.go
+1
-0
shared/models.go
with
4 additions
and
0 deletions
+4
-0
cli/config/config.go
+
1
-
0
View file @
62db1127
...
...
@@ -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
}
This diff is collapsed.
Click to expand it.
cli/config/configStructs/tapConfig.go
+
2
-
0
View file @
62db1127
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
shared/models.go
+
1
-
0
View file @
62db1127
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help