Skip to content

Commit

Permalink
feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Sep 18, 2024
1 parent 6e64486 commit e82a708
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
40 changes: 30 additions & 10 deletions network-mapper/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,22 @@ spec:
volumes:
- hostPath:
path: /proc
name: proc
name: host-proc
- name: component-config
configMap:
name: {{ template "otterize.mapper.componentConfigmap" . }}
- name: containerd
- name: host-socket-k3s
hostPath:
path: "/run/k3s/containerd/containerd.sock"
type: Socket
- name: bpffs
- name: host-socket-containerd
hostPath:
path: "/run/containerd/containerd.sock"
- name: host-bpffs
hostPath:
path: "/sys/fs/bpf"

containers:
{{ if .Values.agent.enable }}
- name: node-agent
image: "{{ .Values.agent.repository }}/{{ .Values.agent.image }}:{{ .Values.agent.tag }}"
{{ if .Values.agent.pullPolicy }}
Expand All @@ -84,17 +87,34 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace

{{ if .Values.debug }}
- name: OTTERIZE_DEBUG
value: {{ .Values.debug | quote }}
{{ end }}

{{ if default false .Values.experimental.ebpf }}
- name: OTTERIZE_EXPERIMENTAL_EBPF
value: {{ .Values.experimental.ebpf | quote }}
{{ end }}

volumeMounts:
- mountPath: /host/proc
name: proc
- name: host-proc
mountPath: /host/proc
readOnly: true
- mountPath: /var/run/containerd/containerd.sock
name: containerd

- name: host-socket-k3s
mountPath: /run/cri/k3s.sock
- name: host-socket-containerd
mountPath: /run/cri/containerd.sock

- mountPath: /host/sys/fs/bpf
name: bpffs
name: host-bpffs
readOnly: false

securityContext:
privileged: true
{{ end }}


{{ if .Values.sniffer.enable }}
Expand Down Expand Up @@ -176,7 +196,7 @@ spec:
{{- end }}
volumeMounts:
- mountPath: /hostproc
name: proc
name: host-proc
readOnly: true
- mountPath: /etc/otterize
name: component-config
Expand Down
5 changes: 4 additions & 1 deletion network-mapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ mapper:
# memory: 128Mi

agent:
enable: true
enable: false
repository: otterize
image: node-agent
tag: latest
Expand Down Expand Up @@ -188,3 +188,6 @@ global:
stage:
endpointAddress:
networkMapperApiKey: d86195588a41fa03aa6711993bb1c765

experimental:
ebpf:

0 comments on commit e82a708

Please sign in to comment.