mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-26 16:24:54 +00:00
🔨 Use if
for commands
This commit is contained in:
parent
9cdf1aa68b
commit
9f8ecc8e4e
@ -29,7 +29,9 @@ spec:
|
|||||||
- name: kubeshark-hub
|
- name: kubeshark-hub
|
||||||
command:
|
command:
|
||||||
- ./hub
|
- ./hub
|
||||||
{{ .Values.tap.debug | ternary "- -debug" "" }}
|
{{- if .Values.tap.debug }}
|
||||||
|
- -debug
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: POD_NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
@ -32,11 +32,17 @@ spec:
|
|||||||
- any
|
- any
|
||||||
- -port
|
- -port
|
||||||
- '{{ .Values.tap.proxy.worker.srvport }}'
|
- '{{ .Values.tap.proxy.worker.srvport }}'
|
||||||
{{ .Values.tap.servicemesh | ternary "- -servicemesh" "" }}
|
{{- if .Values.tap.servicemesh }}
|
||||||
|
- -servicemesh
|
||||||
|
{{- end }}
|
||||||
- -procfs
|
- -procfs
|
||||||
- /hostproc
|
- /hostproc
|
||||||
{{ .Values.tap.debug | ternary "- -debug" "" }}
|
{{- if .Values.tap.debug }}
|
||||||
{{ .Values.tap.nokernelmodule | ternary "- -no-kernel-module" "" }}
|
- -debug
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.tap.nokernelmodule }}
|
||||||
|
- -no-kernel-module
|
||||||
|
{{- end }}
|
||||||
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.tag }}'
|
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.tag }}'
|
||||||
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
||||||
name: sniffer
|
name: sniffer
|
||||||
@ -98,7 +104,9 @@ spec:
|
|||||||
- ./tracer
|
- ./tracer
|
||||||
- -procfs
|
- -procfs
|
||||||
- /hostproc
|
- /hostproc
|
||||||
{{ .Values.tap.debug | ternary "- -debug" "" }}
|
{{- if .Values.tap.debug }}
|
||||||
|
- -debug
|
||||||
|
{{- end }}
|
||||||
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.tag }}'
|
image: '{{ .Values.tap.docker.registry }}/worker:{{ .Values.tap.docker.tag }}'
|
||||||
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
imagePullPolicy: {{ .Values.tap.docker.imagepullpolicy }}
|
||||||
name: tracer
|
name: tracer
|
||||||
|
Loading…
Reference in New Issue
Block a user