Add customLabels field to config.yaml

This commit is contained in:
M. Mert Yildiran
2023-03-14 23:45:41 +03:00
parent 362b17dec4
commit d9ec538aff
7 changed files with 59 additions and 77 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"regexp"
"github.com/kubeshark/kubeshark/kubernetes"
"github.com/kubeshark/kubeshark/utils"
"github.com/rs/zerolog/log"
)
@@ -27,6 +26,13 @@ const (
DebugLabel = "debug"
)
type Resources struct {
CpuLimit string `yaml:"cpu-limit" default:"750m"`
MemoryLimit string `yaml:"memory-limit" default:"1Gi"`
CpuRequests string `yaml:"cpu-requests" default:"50m"`
MemoryRequests string `yaml:"memory-requests" default:"50Mi"`
}
type WorkerConfig struct {
SrcPort uint16 `yaml:"port" default:"8897"`
DstPort uint16 `yaml:"srvport" default:"8897"`
@@ -57,8 +63,8 @@ type DockerConfig struct {
}
type ResourcesConfig struct {
Worker kubernetes.Resources `yaml:"worker"`
Hub kubernetes.Resources `yaml:"hub"`
Worker Resources `yaml:"worker"`
Hub Resources `yaml:"hub"`
}
type TapConfig struct {