Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 87dad2b

Browse files
Thulio Ferraz Assismook-as
andauthored
feat: deploy Minibroker for Cloud Foundry (#95)
* feat: deploy Minibroker for Cloud Foundry Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: use single script to deploy Signed-off-by: Thulio Ferraz Assis <[email protected]> * fix: conditional xtrace for deploy script Co-authored-by: Mark Yen <[email protected]> Co-authored-by: Mark Yen <[email protected]>
1 parent 5a6362c commit 87dad2b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Makefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,18 @@ deploy:
9191
OUTPUT_CHARTS_DIR="$(OUTPUT_CHARTS_DIR)" \
9292
./build/deploy.sh
9393

94+
deploy-cf:
95+
IMAGE="$(IMAGE)" \
96+
TAG="$(TAG)" \
97+
IMAGE_PULL_POLICY="$(IMAGE_PULL_POLICY)" \
98+
OUTPUT_CHARTS_DIR="$(OUTPUT_CHARTS_DIR)" \
99+
CLOUDFOUNDRY=true \
100+
./build/deploy.sh
101+
94102
deploy-dev: image-in-minikube charts deploy
95103

104+
deploy-dev-cf: image-in-minikube charts deploy-cf
105+
96106
release: clean release-images release-charts
97107

98108
release-images: image

build/deploy.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
set -o errexit -o nounset -o pipefail
17+
set -o errexit -o nounset -o pipefail ${XTRACE:+-o xtrace}
1818

1919
until svcat version | grep -m 1 'Server Version: v' ; do
2020
sleep 1;
@@ -26,11 +26,12 @@ fi
2626

2727
helm upgrade minibroker \
2828
--install \
29-
--recreate-pods \
3029
--namespace minibroker \
3130
--wait \
3231
--set "image=${IMAGE}:${TAG}" \
3332
--set "imagePullPolicy=${IMAGE_PULL_POLICY}" \
3433
--set "deploymentStrategy=Recreate" \
3534
--set "logLevel=${LOG_LEVEL:-4}" \
35+
${CLOUDFOUNDRY:+--set "deployServiceCatalog=false"} \
36+
${CLOUDFOUNDRY:+--set "defaultNamespace=minibroker"} \
3637
"${OUTPUT_CHARTS_DIR}/minibroker-${TAG}.tgz"

0 commit comments

Comments
 (0)