Skip to content

Commit

Permalink
Fix bash condition in endtoend script (flyteorg#44)
Browse files Browse the repository at this point in the history
* Fix bash condition in endtoend script

Signed-off-by: Haytham Abuelfutuh <[email protected]>

* PR Comment

Signed-off-by: Haytham Abuelfutuh <[email protected]>
  • Loading branch information
EngHabu authored Nov 12, 2021
1 parent a5cf1e1 commit 8c18c87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions boilerplate-repo/boilerplate/flyte/end2end/end2end.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ pushd ${OUT}
if [ ! -z "$IMAGE" ];
then
kind load docker-image ${IMAGE}
if [ ${IMAGE_NAME} -eq "flytepropeller" ]
if [ "${IMAGE_NAME}" == "flytepropeller" ]
then
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" ${OUT}/kustomize/base/propeller/deployment.yaml
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" "${OUT}"/kustomize/base/propeller/deployment.yaml
fi

if [ ${IMAGE} -eq "flyteadmin" ]
if [ "${IMAGE_NAME}" == "flyteadmin" ]
then
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" ${OUT}/kustomize/base/admindeployment/deployment.yaml
sed -i.bak -e "s_${IMAGE_NAME}:.*_${IMAGE}_g" "${OUT}"/kustomize/base/admindeployment/deployment.yaml
fi
fi

Expand Down

0 comments on commit 8c18c87

Please sign in to comment.