diff --git a/README.md b/README.md index 5840dee..ef2eba0 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ This is demonstrating calling relationship api from rbac service in ephemeral en Example: ``` -./deploy.sh rbac /Users/liborpichler/Projects/insights-rbac +./deploy.sh rbac /Projects/insights-rbac ``` - Updates config bonfire file and add rbac component diff --git a/deploy/deploy.sh b/deploy/deploy.sh index f807862..0442291 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -3,7 +3,6 @@ RBAC_ARGUMENT="$1" RBAC_DIR="$2" if [ "$RBAC_ARGUMENT" == "rbac" ]; then - if [ ! -d "$RBAC_DIR" ]; then echo "The directory $RBAC_DIR does not exist." echo "Please specify local directory(absolute path) to copy of https://github.com/RedHatInsights/insights-rbac repository." @@ -92,7 +91,7 @@ echo "postgress is ready" # Create spiceDB bootstrap schema configmap oc create configmap spicedb-schema --from-file=schema.yaml -n $NAMESPACE -#Deploy Relations service, spiceDB service +#Deploy Relations service, spiceDB service and rbac service when $RBAC_ARGUMENT is not empty bonfire deploy $RBAC_ARGUMENT relationships -n $NAMESPACE --local-config-method merge ROUTE=$(oc get routes --selector='app=relationships' -o jsonpath='{.items[*].spec.host}')