Skip to content

Commit 7604d7e

Browse files
authored
Do not deploy fsdiff pod with Minikube (#28)
1 parent 91d06cd commit 7604d7e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

deploy-all.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ else
1414
fi
1515

1616
export res=$(oc get pod -n $NAMESPACE_TO_GENERATE -l test-network-function.com/generic=fs_diff_master 2>&1)
17-
if [[ ${res#No resources found} != ${res} ]]; then
17+
if [[ -n "${TNF_MINIKUBE_ONLY}" ]] && [[ ${TNF_MINIKUBE_ONLY} = "true" ]]; then
18+
echo "Running with Minikube, no FsDiff pod created"
19+
elif [[ ${res#No resources found} != ${res} ]]; then
1820
cat ./local-test-infra/fsdiff-pod.yaml | ./script/mo > ./temp/rendered-fsdiff-template.yaml
1921
oc apply -f ./temp/rendered-fsdiff-template.yaml
2022
rm ./temp/rendered-fsdiff-template.yaml
@@ -38,4 +40,4 @@ if [[ ${res#No resources found} != ${res} ]]; then
3840
rm ./temp/rendered-partner-template.yaml
3941
else
4042
echo "partner pod already exists, no reason to recreate"
41-
fi
43+
fi

0 commit comments

Comments
 (0)