mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-23 02:57:16 +00:00
✨ Add KMMConfig
struct to TapConfig
This commit is contained in:
@@ -100,6 +100,10 @@ type ReleaseConfig struct {
|
||||
Namespace string `yaml:"namespace" json:"namespace" default:"default"`
|
||||
}
|
||||
|
||||
type KMMConfig struct {
|
||||
Enabled bool `yaml:"enabled" json:"enabled" default:"true"`
|
||||
}
|
||||
|
||||
type TapConfig struct {
|
||||
Docker DockerConfig `yaml:"docker" json:"docker"`
|
||||
Proxy ProxyConfig `yaml:"proxy" json:"proxy"`
|
||||
@@ -121,6 +125,7 @@ type TapConfig struct {
|
||||
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
|
||||
Auth AuthConfig `yaml:"auth" json:"auth"`
|
||||
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
||||
KMM KMMConfig `yaml:"kmm" json:"kmm"`
|
||||
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
|
||||
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ if and .Values.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
|
||||
{{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
|
||||
apiVersion: kmm.sigs.x-k8s.io/v1beta1
|
||||
kind: Module
|
||||
metadata:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ if and .Values.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
|
||||
{{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
{{ if .Values.kmm.enabled }}
|
||||
{{ if .Values.tap.kmm.enabled }}
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
@@ -3426,4 +3426,4 @@ webhooks:
|
||||
resources:
|
||||
- modules
|
||||
sideEffects: None
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@@ -57,6 +57,8 @@ tap:
|
||||
host: ks.svc.cluster.local
|
||||
tls: []
|
||||
certmanager: letsencrypt-prod
|
||||
kmm:
|
||||
enabled: true
|
||||
ipv6: true
|
||||
debug: false
|
||||
logs:
|
||||
@@ -71,5 +73,3 @@ scripting:
|
||||
env: {}
|
||||
source: ""
|
||||
watchscripts: true
|
||||
kmm:
|
||||
enabled: true
|
||||
|
Reference in New Issue
Block a user