Skip to content

Commit

Permalink
Merge pull request #61 from SAP-samples/update-btpsa-script
Browse files Browse the repository at this point in the history
adding BTP Operator
  • Loading branch information
matthieupelatan committed Nov 21, 2023
2 parents cc6da66 + 49bcc8b commit 7402f09
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions code/setup/easyfranchise-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,19 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
log "================================================================================================="
echo ""

log "Step 3.1 - Create Namepaces"
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.2 - Create Namepaces"
if [ "$DRY_RUN" = false ]; then
kubectl create namespace integration || true
kubectl create namespace backend || true
Expand All @@ -335,7 +347,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
fi

echo
log "Step 3.2 - Create Secrets, Configmap and depended Services"
log "Step 3.3 - Create Secrets, Configmap and depended Services"
echo
log "DB Secret: "
if [ "$DRY_RUN" = true ]; then
Expand Down

0 comments on commit 7402f09

Please sign in to comment.