Skip to content

Commit 8ac3cdd

Browse files
Copilotjralmaraz
andcommitted
Add deploy-operator-postgres.sh script for PostgreSQL datastore deployment
Co-authored-by: jralmaraz <13877691+jralmaraz@users.noreply.github.com>
1 parent b1747f0 commit 8ac3cdd

File tree

2 files changed

+410
-0
lines changed

2 files changed

+410
-0
lines changed

scripts/minikube/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ For Kubernetes-native deployment with Minikube:
5151
# Prerequisites: Ensure operator is deployed
5252
./scripts/minikube/deploy-operator.sh
5353

54+
# Or deploy operator with PostgreSQL datastore
55+
./scripts/minikube/deploy-operator-postgres.sh
56+
5457
# Deploy all demo applications
5558
./scripts/minikube/deploy-demos.sh
5659

@@ -95,6 +98,25 @@ For Windows users with PowerShell:
9598
.\scripts\minikube\deploy-demos.ps1 -SkipSetup # Skip demo data setup
9699
```
97100

101+
### 🗄️ PostgreSQL-backed OpenFGA Deployment
102+
103+
For deploying OpenFGA with PostgreSQL datastore support:
104+
105+
```bash
106+
# Deploy operator with PostgreSQL automatically
107+
./scripts/minikube/deploy-operator-postgres.sh
108+
109+
# Deploy only PostgreSQL (if operator is already deployed)
110+
./scripts/minikube/deploy-operator-postgres.sh --skip-operator
111+
```
112+
113+
This script:
114+
- Checks prerequisites (minikube, kubectl, optional Docker/Podman)
115+
- Creates the `openfga-system` namespace if needed
116+
- Deploys PostgreSQL 14 with OpenFGA configuration
117+
- Deploys the OpenFGA operator (unless `--skip-operator`)
118+
- Provides PostgreSQL connection details and next steps
119+
98120
## Testing and Validation
99121

100122
### Automated Validation

0 commit comments

Comments
 (0)