Skip to content

Commit

Permalink
PR comment #1-if block indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
janakiramanmesh7 committed Nov 3, 2022
1 parent 8f14a28 commit 6d4a4e2
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions core/templates/datamodel_installer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,24 @@ data:
SKIP_CRD_INSTALLATION=${SKIP_CRD_INSTALLATION:-false}
GRAPHQL_ENABLED=${GRAPHQL_ENABLED:-false}
GRAPHQL_PATH=${GRAPHQL_PATH:-NA}
### This is to support older way of installing datamodel from local folder
if [[ $SKIP_CRD_INSTALLATION == "false" ]]; then
kubectl apply -f /crds --recursive
NAME=$(cat /NAME)
IMAGE=$(cat /IMAGE)
[[ $GRAPHQL_PATH != NA ]] && GRAPHQL_ENABLED=true
if test -f /build/graphql.so; then
GRAPHQL_ENABLED=true
if [[ $GRAPHQL_PATH == NA ]]; then
if curl --retry 10 --max-time 10 -T /build/graphql.so http://nexus-nginx/datamodel/plugin ; then
GRAPHQL_PATH="http://nexus-nginx/datamodel/plugin"
else
exit 1
[[ $GRAPHQL_PATH != NA ]] && GRAPHQL_ENABLED=true
if test -f /build/graphql.so; then
GRAPHQL_ENABLED=true
if [[ $GRAPHQL_PATH == NA ]]; then
if curl --retry 10 --max-time 10 -T /build/graphql.so http://nexus-nginx/datamodel/plugin ; then
GRAPHQL_PATH="http://nexus-nginx/datamodel/plugin"
else
exit 1
fi
fi
fi
fi
fi
### We will create datamodel object
if [[ -n $NAME ]] && [[ -n $IMAGE ]]; then
if [[ -n $TITLE ]]; then
echo '
Expand Down

0 comments on commit 6d4a4e2

Please sign in to comment.