|
| 1 | +#! /bin/bash |
| 2 | + |
| 3 | +SCOPE=${1:-""} |
| 4 | + |
| 5 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "blueprints" ]; then |
| 6 | + echo "" |
| 7 | + echo "-------------------------------------------------------------------" |
| 8 | + read -p "Press enter to deploy GatewayClassBlueprint + GatewayClass'es" |
| 9 | + kubectl apply -f blueprints/gatewayclassblueprint-aws-alb-crossplane.yaml |
| 10 | + kubectl apply -f blueprints/gatewayclass-aws-alb-crossplane.yaml |
| 11 | +fi |
| 12 | + |
| 13 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "configs" ]; then |
| 14 | + echo "" |
| 15 | + echo "-------------------------------------------------------------------" |
| 16 | + read -p "Press enter to deploy GatewayClassConfig's" |
| 17 | + kubectl apply -f hack/demo/gatewayclassconfig-public.yaml |
| 18 | + kubectl apply -f hack/demo/gatewayclassconfig-internal.yaml |
| 19 | +fi |
| 20 | + |
| 21 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "tenantconfig" ]; then |
| 22 | + echo "" |
| 23 | + echo "-------------------------------------------------------------------" |
| 24 | + read -p "Press enter to deploy namespace-default GatewayClassConfig's" |
| 25 | + kubectl apply -f hack/demo/foo-namespaces.yaml |
| 26 | + kubectl apply -f hack/demo/namespace-gatewayclassconfig.yaml |
| 27 | +fi |
| 28 | + |
| 29 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "gateway" ]; then |
| 30 | + echo "" |
| 31 | + echo "-------------------------------------------------------------------" |
| 32 | + read -p "Press enter to deploy getting-started usecase Gateway" |
| 33 | + kubectl -n foo-infra apply -f hack/demo/foo-namespaces.yaml -f hack/demo/foo-gateway.yaml |
| 34 | +fi |
| 35 | + |
| 36 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "acl" ]; then |
| 37 | + echo "" |
| 38 | + echo "-------------------------------------------------------------------" |
| 39 | + read -p "Press enter to show user GatewayConfig with ACL CIDR" |
| 40 | + hack/demo/test-add-user-acl.sh |
| 41 | +fi |
| 42 | + |
| 43 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "app" ]; then |
| 44 | + echo "" |
| 45 | + echo "-------------------------------------------------------------------" |
| 46 | + read -p "Press enter to deploy getting-started usecase application" |
| 47 | + kubectl -n foo-site apply -f test-data/getting-started/app-foo-site.yaml |
| 48 | + kubectl -n foo-site apply -f test-data/getting-started/foo-site-httproute.yaml |
| 49 | + kubectl -n foo-store apply -f test-data/getting-started/app-foo-store-v1.yaml |
| 50 | + kubectl -n foo-store apply -f test-data/getting-started/app-foo-store-v2.yaml |
| 51 | + kubectl -n foo-store apply -f test-data/getting-started/foo-store-httproute.yaml |
| 52 | +fi |
| 53 | + |
| 54 | +if [ -z "$SCOPE" ] || [ "$SCOPE" == "bifrost" ]; then |
| 55 | + echo "" |
| 56 | + echo "-------------------------------------------------------------------" |
| 57 | + read -p "Press enter to deploy bifrost-gateway-controller" |
| 58 | + helm repo add tv2-oss https://tv2-oss.github.io/bifrost-gateway-controller 2>/dev/null |
| 59 | + helm upgrade -i bifrost-gateway-controller tv2-oss/bifrost-gateway-controller --version 0.1.4 --values charts/bifrost-gateway-controller/ci/gatewayclassblueprint-crossplane-aws-alb-values.yaml -n bifrost-gateway-controller-system 2>/dev/null |
| 60 | +fi |
0 commit comments