Skip to content
Snippets Groups Projects
Commit 1df3c8de authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

CockroachDB:

- Corrected deploy script
parent 1df8f6ad
No related branches found
No related tags found
1 merge request!294Release TeraFlowSDN 4.0
......@@ -153,14 +153,14 @@ function crdb_undeploy_single() {
function crdb_drop_databases_single() {
echo "Drop TFS databases, if exist"
if [[ -z "${GITLAB_CI}" ]]; then
#if [[ -z "${GITLAB_CI}" ]]; then
#kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o yaml
CRDB_HOST=$(kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o 'jsonpath={.spec.clusterIP}')
CRDB_PORT=$(kubectl --namespace ${CRDB_NAMESPACE} get service cockroachdb-public -o 'jsonpath={.spec.ports[?(@.name=="sql")].port}')
else
CRDB_HOST="127.0.0.1"
CRDB_PORT=${CRDB_EXT_PORT_SQL}
fi
#else
# CRDB_HOST="127.0.0.1"
# CRDB_PORT=${CRDB_EXT_PORT_SQL}
#fi
CRDB_CLIENT_URL="postgresql://${CRDB_USERNAME}:${CRDB_PASSWORD}@${CRDB_HOST}:${CRDB_PORT}/defaultdb?sslmode=require"
echo "CRDB_CLIENT_URL=${CRDB_CLIENT_URL}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment