Skip to content

Commit

Permalink
Refine conditionals in install script (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada authored Aug 15, 2023
1 parent 6e28e74 commit d5de5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ pushd ~/kfdef
sed -i "s#value: serviceTagPlaceholder#value: latest#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
sed -i "s#value: serviceImagePlaceholder#value: quay.io/trustyai/trustyai-service#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml

if [ -z "$PULL_NUMBER" ]; then
echo "No pull number, not modifying ${KFDEF_FILENAME}"
if [ -z "$PULL_NUMBER" ] || [ $REPO_NAME -ne "trustyai-service-operator" ];; then
echo "No pull number/not correct repo, using default values for ${KFDEF_FILENAME}"
sed -i "s#value: operatorTagPlaceholder#value: latest#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
sed -i "s#value: operatorImagePlaceholder#value: quay.io/trustyai/trustyai-service-operator#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
else
Expand Down

0 comments on commit d5de5d6

Please sign in to comment.