Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Jul 22, 2024
1 parent f5258e0 commit e2b3aeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test_kube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ jobs:
steps:
- name: Kubernetes KinD Cluster
uses: container-tools/kind-action@v1
- name: Run setup
run: sh ./scripts/test/kubernetes-test.sh
7 changes: 7 additions & 0 deletions scripts/test/kubernetes-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
helm install postgres bitnami/postgresql
POSTGRES_PASSWORD=$(kubectl get secret --namespace default postgres-postgresql -o jsonpath="{.data.postgres-password}" | base64 -d)
export POSTGRES_PASSWORD
kubectl port-forward --namespace default postgres-postgresql-0 5432:5432 &
kubectl create secret generic postgres-secrets --from-literal=host=postgres-postgresql.default.svc.cluster.local --from-literal=password=$POSTGRES_PASSWORD

0 comments on commit e2b3aeb

Please sign in to comment.