mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-24 15:24:17 +00:00
⏪ Bring back the functionality of nodeselectorterms
field into the Helm chart
This commit is contained in:
parent
c07f1851b3
commit
a8df589076
@ -109,7 +109,7 @@ type TapConfig struct {
|
||||
PacketCapture string `yaml:"packetcapture" json:"packetcapture" default:"libpcap"`
|
||||
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:"[]"`
|
||||
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
|
||||
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
|
||||
Debug bool `yaml:"debug" json:"debug" default:"false"`
|
||||
}
|
||||
|
@ -52,4 +52,11 @@ spec:
|
||||
- effect: NoSchedule
|
||||
operator: Exists
|
||||
{{- end }}
|
||||
{{- if gt (len .Values.tap.nodeselectorterms) 0}}
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
{{ .Values.tap.nodeselectorterms | toJson }}
|
||||
{{- end }}
|
||||
status: {}
|
||||
|
@ -51,4 +51,11 @@ spec:
|
||||
- effect: NoSchedule
|
||||
operator: Exists
|
||||
{{- end }}
|
||||
{{- if gt (len .Values.tap.nodeselectorterms) 0}}
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
{{ .Values.tap.nodeselectorterms | toJson }}
|
||||
{{- end }}
|
||||
status: {}
|
||||
|
@ -93,6 +93,13 @@ spec:
|
||||
{{- if not .Values.tap.ignoretainted }}
|
||||
- effect: NoSchedule
|
||||
operator: Exists
|
||||
{{- end }}
|
||||
{{- if gt (len .Values.tap.nodeselectorterms) 0}}
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
{{ .Values.tap.nodeselectorterms | toJson }}
|
||||
{{- end }}
|
||||
volumes:
|
||||
- hostPath:
|
||||
|
@ -42,7 +42,7 @@ tap:
|
||||
packetcapture: libpcap
|
||||
ignoretainted: false
|
||||
resourcelabels: {}
|
||||
nodeSelectorTerms: []
|
||||
nodeselectorterms: []
|
||||
ingress:
|
||||
enabled: false
|
||||
host: ks.svc.cluster.local
|
||||
|
Loading…
Reference in New Issue
Block a user