mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 11:58:41 +00:00
⏪ Bring back the functionality of ignoretainted
field into the Helm chart
This commit is contained in:
parent
cc980dbaf8
commit
5efb48f0c5
@ -25,7 +25,7 @@ const (
|
|||||||
PcapLabel = "pcap"
|
PcapLabel = "pcap"
|
||||||
ServiceMeshLabel = "servicemesh"
|
ServiceMeshLabel = "servicemesh"
|
||||||
TlsLabel = "tls"
|
TlsLabel = "tls"
|
||||||
IgnoreTaintedLabel = "ignoreTainted"
|
IgnoreTaintedLabel = "ignoretainted"
|
||||||
IngressEnabledLabel = "ingress-enabled"
|
IngressEnabledLabel = "ingress-enabled"
|
||||||
DebugLabel = "debug"
|
DebugLabel = "debug"
|
||||||
ContainerPort = 80
|
ContainerPort = 80
|
||||||
@ -107,7 +107,7 @@ type TapConfig struct {
|
|||||||
ServiceMesh bool `yaml:"servicemesh" json:"servicemesh" default:"true"`
|
ServiceMesh bool `yaml:"servicemesh" json:"servicemesh" default:"true"`
|
||||||
Tls bool `yaml:"tls" json:"tls" default:"true"`
|
Tls bool `yaml:"tls" json:"tls" default:"true"`
|
||||||
PacketCapture string `yaml:"packetcapture" json:"packetcapture" default:"libpcap"`
|
PacketCapture string `yaml:"packetcapture" json:"packetcapture" default:"libpcap"`
|
||||||
IgnoreTainted bool `yaml:"ignoreTainted" json:"ignoreTainted" default:"false"`
|
IgnoreTainted bool `yaml:"ignoretainted" json:"ignoretainted" default:"false"`
|
||||||
ResourceLabels map[string]string `yaml:"resourceLabels" json:"resourceLabels" default:"{}"`
|
ResourceLabels map[string]string `yaml:"resourceLabels" json:"resourceLabels" default:"{}"`
|
||||||
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeSelectorTerms" json:"nodeSelectorTerms" default:"[]"`
|
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeSelectorTerms" json:"nodeSelectorTerms" default:"[]"`
|
||||||
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
||||||
|
@ -45,6 +45,8 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoExecute
|
- effect: NoExecute
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- if not .Values.tap.ignoretainted }}
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- end }}
|
||||||
status: {}
|
status: {}
|
||||||
|
@ -44,6 +44,8 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoExecute
|
- effect: NoExecute
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- if not .Values.tap.ignoretainted }}
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- end }}
|
||||||
status: {}
|
status: {}
|
||||||
|
@ -80,8 +80,10 @@ spec:
|
|||||||
tolerations:
|
tolerations:
|
||||||
- effect: NoExecute
|
- effect: NoExecute
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- if not .Values.tap.ignoretainted }}
|
||||||
- effect: NoSchedule
|
- effect: NoSchedule
|
||||||
operator: Exists
|
operator: Exists
|
||||||
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /proc
|
path: /proc
|
||||||
|
@ -40,7 +40,7 @@ tap:
|
|||||||
servicemesh: true
|
servicemesh: true
|
||||||
tls: true
|
tls: true
|
||||||
packetcapture: libpcap
|
packetcapture: libpcap
|
||||||
ignoreTainted: false
|
ignoretainted: false
|
||||||
resourceLabels: {}
|
resourceLabels: {}
|
||||||
nodeSelectorTerms: []
|
nodeSelectorTerms: []
|
||||||
ingress:
|
ingress:
|
||||||
|
Loading…
Reference in New Issue
Block a user