🔨 Define ProxyConfig

This commit is contained in:
M. Mert Yildiran
2022-12-28 05:10:40 +03:00
parent 647d197f51
commit 23b6dd220a
10 changed files with 37 additions and 50 deletions

View File

@@ -39,14 +39,18 @@ type FrontConfig struct {
DstPort uint16 `yaml:"dst-port" default:"80"`
}
type ProxyConfig struct {
Worker WorkerConfig `yaml:"worker"`
Hub HubConfig `yaml:"hub"`
Front FrontConfig `yaml:"front"`
Host string `yaml:"host" default:"127.0.0.1"`
}
type TapConfig struct {
Worker WorkerConfig `yaml:"worker"`
Hub HubConfig `yaml:"hub"`
Front FrontConfig `yaml:"front"`
Proxy ProxyConfig `yaml:"proxy"`
DockerRegistry string `yaml:"docker-registry" default:"docker.io/kubeshark"`
DockerTag string `yaml:"docker-tag" default:"latest"`
PodRegexStr string `yaml:"regex" default:".*"`
ProxyHost string `yaml:"proxy-host" default:"127.0.0.1"`
Namespaces []string `yaml:"namespaces"`
AllNamespaces bool `yaml:"all-namespaces" default:"false"`
HumanMaxEntriesDBSize string `yaml:"max-entries-db-size" default:"200MB"`