Skip to content

Commit

Permalink
Fix CI Seds
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada committed Aug 2, 2023
1 parent d78233a commit deff915
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@ fi
popd
## Point manifests repo uri in the KFDEF to the manifests in the PR
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: 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}"
sed -i "s#value: \"operatorTagPlaceholder\"#value: latest#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
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
if [ $REPO_NAME == "trustyai-explainability" ]; then
echo "Setting manifests in kfctl_openshift to use pull number: $PULL_NUMBER"
Expand All @@ -58,8 +61,8 @@ else
# sed -i "s#value: \"quay.io/trustyai/trustyai-service:latest\"#value: \"quay.io/trustyai/trustyai-service-ci:${BRANCH_SHA}\"#" ../resources/trustyai/trustyai_service_kfdef.yaml

echo "Setting TrustyAI operator configmap to use PR image"
sed -i "s#value: \"quay.io/trustyai/trustyai-service-operator\"#value: \"quay.io/trustyai/trustyai-service-operator-ci\"#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
sed -i "s#value: \"operatorTagPlaceholder\"#value: \"${BRANCH_SHA}\"#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
sed -i "s#value: operatorImagePlaceholder#value: quay.io/trustyai/trustyai-service-operator-ci#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
sed -i "s#value: operatorTagPlaceholder#value: ${BRANCH_SHA}#" $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml

echo "TrustyAI Operator KFDEF"
cat $HOME/peak/operator-tests/trustyai-explainability/resources/trustyai/trustyai_operator_kfdef.yaml
Expand Down

0 comments on commit deff915

Please sign in to comment.