Skip to content

Commit d0311b2

Browse files
authored
Merge pull request #113 from consideRatio/pr/update-calico
Workaround calcio not declaring DirectoryOrCreate on hostPath volumes
2 parents 2b2ba08 + 18c317a commit d0311b2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,13 @@ runs:
154154
#
155155
# ref: https://rancher.com/docs/k3s/latest/en/installation/network-options/
156156
#
157+
# With k3s 1.29 of recent versions, and calico v3.27.3, we have added
158+
# DirectoryOrCreate to the hostPath volume to avoid
159+
# https://github.com/jupyterhub/action-k3s-helm/issues/112. This is reported
160+
# to calcio in https://github.com/projectcalico/calico/issues/8773, and
161+
# could perhaps be closed if we bump to a calico version having resolve
162+
# this.
163+
#
157164
- name: Setup calico
158165
run: |
159166
echo "::group::Setup calico"
@@ -163,6 +170,12 @@ runs:
163170
"container_settings": {\
164171
"allow_ip_forwarding": true\
165172
},' \
173+
| sed '/path: \/opt\/cni\/bin/a\
174+
type: DirectoryOrCreate' \
175+
| sed '/path: \/var\/run\/calico/a\
176+
type: DirectoryOrCreate' \
177+
| sed '/path: \/var\/lib\/calico/a\
178+
type: DirectoryOrCreate' \
166179
| kubectl apply -f -
167180
echo "::endgroup::"
168181
shell: bash

0 commit comments

Comments
 (0)