Skip to content

Commit

Permalink
Add cni path config in whereabouts to make it work in k3s
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <mbuil@suse.com>
  • Loading branch information
manuelbuil committed Mar 27, 2024
1 parent 1e95b74 commit 893bce4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rke2-multus/package.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
url: local
workingDir: charts
packageVersion: 02
packageVersion: 03
4 changes: 2 additions & 2 deletions packages/rke2-whereabouts/charts/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ spec:
volumes:
- name: cnibin
hostPath:
path: /opt/cni/bin
path: {{ .Values.cniConf.binDir }}
- name: cni-net-dir
hostPath:
path: /etc/cni/net.d
path: {{ .Values.cniConf.confDir }}
- name: cron-scheduler-configmap
configMap:
name: {{ include "whereabouts.fullname" . }}-config
Expand Down
4 changes: 4 additions & 0 deletions packages/rke2-whereabouts/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,9 @@ tolerations:

affinity: {}

cniConf:
confDir: /etc/cni/net.d
binDir: /opt/cni/bin

global:
systemDefaultRegistry: ""
2 changes: 1 addition & 1 deletion packages/rke2-whereabouts/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
url: local
workingDir: charts
packageVersion: 02
packageVersion: 03
# whereabouts is only used as a dependency of multus
doNotRelease: true

0 comments on commit 893bce4

Please sign in to comment.