Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #97 from kaczyns/disableKappnavPrompt
Browse files Browse the repository at this point in the history
Remove the kappnav prompt from the install script
  • Loading branch information
alohr51 authored Oct 4, 2019
2 parents 7309097 + ee4c5ce commit 9717c60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Retrieve the [installation scripts from our documentation repository](https://gi

## Installation

Review the installation script for any optional components that you wish to enable. Components can be enabled by passing the appropriate environment variable to the script, or by editing the script.

As a `cluster-admin`, execute the installation script, replacing `my.openshift.master.default.subdomain` with your subdomain:
```
openshift_master_default_subdomain=<my.openshift.master.default.subdomain> ./install-kabanero-foundation.sh
Expand Down
11 changes: 4 additions & 7 deletions scripts/install-kabanero-foundation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ set -Eeox pipefail
# Branch/Release of Kabanero #
KABANERO_BRANCH="${KABANERO_BRANCH:-0.2.0-rc.1}"

# Optional components (yes/no)
ENABLE_KAPPNAV="${ENABLE_KAPPNAV:-no}"

# Kserving domain matches openshift_master_default_subdomain #
# openshift_master_default_subdomain="${openshift_master_default_subdomain:-my.openshift.master.default.subdomain}"
if [ -z "$openshift_master_default_subdomain" ]
Expand All @@ -17,12 +20,6 @@ then
read openshift_master_default_subdomain
fi

# Query for optional components
if [ -z "$enable_kappnav" ]
then
echo "Would you like to configure KAppNav (yes/no)?"
read enable_kappnav
fi

### Istio ###

Expand Down Expand Up @@ -133,7 +130,7 @@ do
done

# Install KAppNav if selected
if [ "$enable_kappnav" == "yes" ]
if [ "$ENABLE_KAPPNAV" == "yes" ]
then
oc apply -f https://raw.githubusercontent.com/kabanero-io/kabanero-operator/${KABANERO_BRANCH}/deploy/optional.yaml --selector=kabanero.io/component=kappnav
fi

0 comments on commit 9717c60

Please sign in to comment.