Skip to content

Commit 90e1e03

Browse files
Merge pull request #239 from jajwang/master
Update etcd service to use localhost instead of serve
2 parents 6dfaf85 + d1a718d commit 90e1e03

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

discovery-data/latest/lib/function.bash

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,11 +1036,7 @@ check_etcd_available(){
10361036
}
10371037

10381038
setup_etcd_env(){
1039-
ETCD_SERVICE=$(oc get svc ${OC_ARGS} -o jsonpath="{.items[*].metadata.name}" -l "app=etcd,tenant=${TENANT_NAME}" | tr '[[:space:]]' '\n' | grep etcd-client || echo "")
1040-
if [ -z "${ETCD_SERVICE}" ] ; then
1041-
# Etcd label changed on 4.0.4
1042-
ETCD_SERVICE=$(oc get svc ${OC_ARGS} -o jsonpath="{.items[*].metadata.name}" -l "app=etcd,etcd_cluster=${TENANT_NAME}-discovery-etcd" | tr '[[:space:]]' '\n' | grep etcd-client)
1043-
fi
1039+
ETCD_SERVICE="localhost"
10441040
ETCD_ENDPOINT="https://${ETCD_SERVICE}:2379"
10451041
ETCD_SECRET=$(oc get secret ${OC_ARGS} -o jsonpath="{.items[0].metadata.name}" -l "tenant=${TENANT_NAME},app in (etcd,etcd-root)")
10461042
ETCD_USER=$(oc get secret ${OC_ARGS} ${ETCD_SECRET} --template '{{.data.username}}' | base64 --decode)

0 commit comments

Comments
 (0)