Bring back the functionality of ignoretainted field into the Helm chart

This commit is contained in:
M. Mert Yildiran 2023-06-27 00:15:04 +03:00
parent cc980dbaf8
commit 5efb48f0c5
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
5 changed files with 9 additions and 3 deletions

View File

@ -25,7 +25,7 @@ const (
PcapLabel = "pcap"
ServiceMeshLabel = "servicemesh"
TlsLabel = "tls"
IgnoreTaintedLabel = "ignoreTainted"
IgnoreTaintedLabel = "ignoretainted"
IngressEnabledLabel = "ingress-enabled"
DebugLabel = "debug"
ContainerPort = 80
@ -107,7 +107,7 @@ type TapConfig struct {
ServiceMesh bool `yaml:"servicemesh" json:"servicemesh" default:"true"`
Tls bool `yaml:"tls" json:"tls" default:"true"`
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:"{}"`
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeSelectorTerms" json:"nodeSelectorTerms" default:"[]"`
Ingress IngressConfig `yaml:"ingress" json:"ingress"`

View File

@ -45,6 +45,8 @@ spec:
tolerations:
- effect: NoExecute
operator: Exists
{{- if not .Values.tap.ignoretainted }}
- effect: NoSchedule
operator: Exists
{{- end }}
status: {}

View File

@ -44,6 +44,8 @@ spec:
tolerations:
- effect: NoExecute
operator: Exists
{{- if not .Values.tap.ignoretainted }}
- effect: NoSchedule
operator: Exists
{{- end }}
status: {}

View File

@ -80,8 +80,10 @@ spec:
tolerations:
- effect: NoExecute
operator: Exists
{{- if not .Values.tap.ignoretainted }}
- effect: NoSchedule
operator: Exists
{{- end }}
volumes:
- hostPath:
path: /proc

View File

@ -40,7 +40,7 @@ tap:
servicemesh: true
tls: true
packetcapture: libpcap
ignoreTainted: false
ignoretainted: false
resourceLabels: {}
nodeSelectorTerms: []
ingress: