Skip to content

Commit

Permalink
Adds /host folder in the rocks
Browse files Browse the repository at this point in the history
The /install-cni.sh script requires this folder. It does mkdir it,
but the bitnami helm chart creates the daemonsets with read-only
filesystem, making it impossible to create the folder.
  • Loading branch information
claudiubelu committed Jul 16, 2024
1 parent 5c584aa commit 8df7589
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions 0.5.4/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ parts:
bash -x "hack/build-go.sh"
cp bin/* "${CRAFT_PART_INSTALL}/"
cp script/install-cni.sh "${CRAFT_PART_INSTALL}/"
bitnami-compatibility:
plugin: nil
override-build: |
# install-cni.sh requires this folder to exist.
mkdir -p "${CRAFT_PART_INSTALL}/bitnami/whereabouts/host"
ln -sf /bitnami/whereabouts/host "${CRAFT_PART_INSTALL}/host"
7 changes: 7 additions & 0 deletions 0.6.1/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ parts:
bash -x "hack/build-go.sh"
cp bin/* "${CRAFT_PART_INSTALL}/"
cp script/install-cni.sh "${CRAFT_PART_INSTALL}/"
bitnami-compatibility:
plugin: nil
override-build: |
# install-cni.sh requires this folder to exist.
mkdir -p "${CRAFT_PART_INSTALL}/bitnami/whereabouts/host"
ln -sf /bitnami/whereabouts/host "${CRAFT_PART_INSTALL}/host"
7 changes: 7 additions & 0 deletions 0.6.3/rockcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@ parts:
bash -x "hack/build-go.sh"
cp bin/* "${CRAFT_PART_INSTALL}/"
cp script/install-cni.sh "${CRAFT_PART_INSTALL}/"
bitnami-compatibility:
plugin: nil
override-build: |
# install-cni.sh requires this folder to exist.
mkdir -p "${CRAFT_PART_INSTALL}/bitnami/whereabouts/host"
ln -sf /bitnami/whereabouts/host "${CRAFT_PART_INSTALL}/host"
1 change: 1 addition & 0 deletions tests/sanity/test_whereabouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import pytest

ROCK_EXPECTED_FILES = [
"/host",
"/install-cni.sh",
"/ip-control-loop",
"/whereabouts",
Expand Down

0 comments on commit 8df7589

Please sign in to comment.