Skip to content

Commit

Permalink
flatten all image values
Browse files Browse the repository at this point in the history
  • Loading branch information
orishavit committed Aug 7, 2024
1 parent 25bad88 commit 5b2aa9d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 11 additions & 9 deletions network-mapper/templates/agent-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ if or .Values.sniffer.enable .Values.ebpf.enable }}
{{ if or .Values.sniffer.enable .Values.bpfman.enable }}
apiVersion: apps/v1
kind: DaemonSet
metadata:
Expand Down Expand Up @@ -72,9 +72,9 @@ spec:

containers:
- name: node-agent
image: "{{ .Values.agent.image.repository }}/{{ .Values.agent.image.image }}:{{ .Values.agent.image.tag }}"
{{ if .Values.agent.image.pullPolicy }}
imagePullPolicy: {{ .Values.agent.image.pullPolicy }}
image: "{{ .Values.agent.repository }}/{{ .Values.agent.image }}:{{ .Values.agent.tag }}"
{{ if .Values.agent.pullPolicy }}
imagePullPolicy: {{ .Values.agent.pullPolicy }}
{{ end }}
env:
- name: POD_NAME
Expand Down Expand Up @@ -181,12 +181,14 @@ spec:
readOnly: true
{{ end }}

{{ if .Values.ebpf.enable }}
{{ if .Values.bpfman.enable }}
- name: ebpf-agent
image: "{{ .Values.ebpf.image.repository }}/{{ .Values.ebpf.image.image }}:{{ .Values.ebpf.image.tag }}"
{{ if .Values.ebpf.image.pullPolicy }}
imagePullPolicy: {{ .Values.ebpf.image.pullPolicy }}
image: "{{ .Values.bpfman.repository }}/{{ .Values.bpfman.image }}:{{ .Values.bpfman.tag }}"

{{ if .Values.bpfman.pullPolicy }}
imagePullPolicy: {{ .Values.bpfman.pullPolicy }}
{{ end }}

securityContext:
privileged: true
volumeMounts:
Expand All @@ -197,7 +199,7 @@ spec:
name: ebpfman-socket
env:
- name: RUST_LOG
value: "{{ .Values.ebpf.logLevel }}"
value: "{{ .Values.bpfman.logLevel }}"
{{ end }}

{{ end }}
20 changes: 9 additions & 11 deletions network-mapper/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ mapper:

agent:
enable: true
image:
repository: otterize
image: node-agent
tag: latest
pullPolicy:
repository: otterize
image: node-agent
tag: latest
pullPolicy:
tolerations: []
podSecurityContext:
runAsNonRoot: false
Expand Down Expand Up @@ -144,13 +143,12 @@ visibilitydns:
pullSecrets:
resources: { } # see comment under mapper.resources

ebpf:
bpfman:
enable: true
image:
repository: otterize
image: bpfman
tag: latest
pullPolicy:
repository: otterize
image: bpfman
tag: latest
pullPolicy:
logLevel: info

aws:
Expand Down

0 comments on commit 5b2aa9d

Please sign in to comment.