diff --git a/.github/workflows/test_kube.yml b/.github/workflows/test_kube.yml index 0ac3d58d0..6698409a8 100644 --- a/.github/workflows/test_kube.yml +++ b/.github/workflows/test_kube.yml @@ -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 \ No newline at end of file diff --git a/scripts/test/kubernetes-test.sh b/scripts/test/kubernetes-test.sh new file mode 100644 index 000000000..76a354a4e --- /dev/null +++ b/scripts/test/kubernetes-test.sh @@ -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