mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-26 21:13:15 +00:00
🔨 Bring in models.Resources
dependency to kubernetes
package
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
|
||||
"github.com/kubeshark/base/pkg/models"
|
||||
"github.com/kubeshark/kubeshark/docker"
|
||||
"github.com/kubeshark/kubeshark/semver"
|
||||
"github.com/rs/zerolog/log"
|
||||
@@ -175,7 +174,7 @@ type PodOptions struct {
|
||||
PodName string
|
||||
PodImage string
|
||||
ServiceAccountName string
|
||||
Resources models.Resources
|
||||
Resources Resources
|
||||
ImagePullPolicy core.PullPolicy
|
||||
Debug bool
|
||||
}
|
||||
@@ -665,7 +664,7 @@ func (provider *Provider) ApplyWorkerDaemonSet(
|
||||
workerPodName string,
|
||||
nodeNames []string,
|
||||
serviceAccountName string,
|
||||
resources models.Resources,
|
||||
resources Resources,
|
||||
imagePullPolicy core.PullPolicy,
|
||||
serviceMesh bool,
|
||||
tls bool,
|
||||
|
8
kubernetes/structs.go
Normal file
8
kubernetes/structs.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package kubernetes
|
||||
|
||||
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"`
|
||||
}
|
@@ -39,7 +39,7 @@ type WorkerSyncerConfig struct {
|
||||
TargetNamespaces []string
|
||||
PodFilterRegex regexp.Regexp
|
||||
SelfNamespace string
|
||||
WorkerResources models.Resources
|
||||
WorkerResources Resources
|
||||
ImagePullPolicy v1.PullPolicy
|
||||
KubesharkServiceAccountExists bool
|
||||
ServiceMesh bool
|
||||
|
Reference in New Issue
Block a user