From b4ad28bd388bd735e42b9fc7d7254a8aa943632b Mon Sep 17 00:00:00 2001 From: jason yang Date: Thu, 29 Feb 2024 01:35:52 -0700 Subject: [PATCH] small changes for setup scripts Signed-off-by: jason yang --- hack/setup_dev_temporal | 4 ++-- hack/setup_external_dev_services | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hack/setup_dev_temporal b/hack/setup_dev_temporal index 864465e..a69a4cc 100755 --- a/hack/setup_dev_temporal +++ b/hack/setup_dev_temporal @@ -49,11 +49,11 @@ export SQL_PORT=$POSTGRES_PORT export SQL_USER=postgres export SQL_PASSWORD=postgres -./temporal-sql-tool create-database -database temporal +./temporal-sql-tool -database temporal create-database SQL_DATABASE=temporal ./temporal-sql-tool setup-schema -v 0.0 SQL_DATABASE=temporal ./temporal-sql-tool update -schema-dir schema/postgresql/v96/temporal/versioned -./temporal-sql-tool create-database -database temporal_visibility +./temporal-sql-tool -database temporal_visibility create-database SQL_DATABASE=temporal_visibility ./temporal-sql-tool setup-schema -v 0.0 SQL_DATABASE=temporal_visibility ./temporal-sql-tool update -schema-dir schema/postgresql/v96/visibility/versioned diff --git a/hack/setup_external_dev_services b/hack/setup_external_dev_services index 828bdb5..b90f55f 100755 --- a/hack/setup_external_dev_services +++ b/hack/setup_external_dev_services @@ -45,8 +45,7 @@ helm repo add bitnami https://charts.bitnami.com/bitnami # and places a PersisentVolumeClaim for this. # Ensure that the cluster provides PersistentVolumes: -if kubectl get PersistentVolume -o json - | jq -e '.items | .[].status | select(.phase == "Bound")' ; then +if kubectl get PersistentVolume -o json | jq -e '.items | .[].status | select(.phase == "Bound")' ; then echo "Ok found at least one PersistentVolume" else echo "The postgresql helm chart has a PersistentVolumeClaim (PVC)." @@ -81,4 +80,4 @@ helm upgrade --install localstack localstack-repo/localstack helm install --set auth.rootUser=AKIAIOSFODNN7EXAMPLE,auth.rootPassword=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY minio bitnami/minio # Install Temporal -helm install temporal infrastructure/dev-helm/temporal --timeout 15m -f infrastructure/dev-helm/temporal.values.yaml +helm install --dependency-update temporal infrastructure/dev-helm/temporal --timeout 15m -f infrastructure/dev-helm/temporal.values.yaml