Skip to content

Commit

Permalink
Merge pull request #28 from SAP-samples/updating-btpsa-script
Browse files Browse the repository at this point in the history
adding BTP Operator
  • Loading branch information
matthieupelatan authored Nov 21, 2023
2 parents d6619b0 + ab3fc69 commit 044ad05
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions code/setup/easyfranchise-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,19 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
log "================================================================================================="
echo ""


log "Step 3.1 - Enable BTP Operator"
if [ "$DRY_RUN" = false ]; then
curl -Lo kyma.tar.gz "https://github.com/kyma-project/cli/releases/download/$(curl -s https://api.github.com/repos/kyma-project/cli/releases/latest | grep tag_name | cut -d '"' -f 4)/kyma_Linux_x86_64.tar.gz" \
&& mkdir kyma-release && tar -C kyma-release -zxvf kyma.tar.gz && chmod +x kyma-release/kyma && sudo mv kyma-release/kyma /usr/local/bin \
&& rm -rf kyma-release kyma.tar.gz

kyma alpha enable module btp-operator --channel regular --kyma-name default --wait
else
log "Skipped for Dry Run"
fi

echo
log "Step 3.1 - Create Namepaces"
if [ "$DRY_RUN" = false ]; then
kubectl create namespace integration || true
Expand Down

0 comments on commit 044ad05

Please sign in to comment.