diff --git a/README.md b/README.md index 7f7247b..5840dee 100644 --- a/README.md +++ b/README.md @@ -95,3 +95,21 @@ The deploy script under the deploy folder, will deploy all the needed components You should be able to use the public route (relations-*) created by the clowder in your namespace, to use the service. +#### Deploying the components with rbac + +This is demonstrating calling relationship api from rbac service in ephemeral environment. + +``` +./deploy.sh rbac +``` + +`path_to_local_copy_of_insights_rbac` is this [repository](https://github.com/RedHatInsights/insights-rbac) + +Example: +``` +./deploy.sh rbac /Users/liborpichler/Projects/insights-rbac +``` + +- Updates config bonfire file and add rbac component +- Deploys rbac together with relationships application + - Hardcoded image is used with grpc client for calling relationships \ No newline at end of file diff --git a/deploy/deploy.sh b/deploy/deploy.sh index e06ef07..f807862 100755 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -1,4 +1,16 @@ #!/bin/bash + +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." + exit + fi +fi + source ../.secrets/postgres.env # Export tags @@ -43,7 +55,7 @@ cat > $file_location <> $file_location <