Skip to content

Commit

Permalink
multus: adjust cni-install.yaml path
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Duarte Barroso <[email protected]>
  • Loading branch information
maiqueb committed Oct 18, 2022
1 parent c3ca44b commit 1b2d420
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions automation/check-patch.e2e-multus-functests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,20 @@ function __prepare-test-environment() {

echo "Deploy cni-plugins pod"
CNI_PLUGIN_YAML="cni-install.yml"
cp "templates/${CNI_PLUGIN_YAML}.j2" ${CNI_PLUGIN_YAML}
$KUBECTL create -f ${CNI_PLUGIN_YAML}
$KUBECTL -n kube-system wait --for=condition=ready -l name=cni-plugins pod --timeout=300s

TEST_YAML="*macvlan1.yml"
mkdir -p yamls
TEST_YAML="simple-macvlan1.yml"
# matching the test nodes to the CNAO cluster nodes
sed -i 's/kind-worker$/node01/g' ${TEST_YAML}
sed -i 's/kind-worker2$/node02/g' ${TEST_YAML}
sed 's/{{ CNI_VERSION }}/0.4.0/g' "templates/${TEST_YAML}.j2" > "yamls/${TEST_YAML}"
sed -i 's/kind-worker$/node01/g' "yamls/${TEST_YAML}"
sed -i 's/kind-worker2$/node02/g' "yamls/${TEST_YAML}"

TEST_YAML="default-route1.yml"
# matching the test nodes to the CNAO cluster nodes
sed 's/{{ CNI_VERSION }}/0.4.0/g' "templates/${TEST_YAML}.j2" > "yamls/${TEST_YAML}"

echo "Deplopy kubernetes-nmstate"
$KUBECTL apply -f https://github.com/nmstate/kubernetes-nmstate/releases/download/v0.64.7/nmstate.io_nmstates.yaml
Expand Down

0 comments on commit 1b2d420

Please sign in to comment.