File tree Expand file tree Collapse file tree
discovery-data/latest/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1036,11 +1036,7 @@ check_etcd_available(){
10361036}
10371037
10381038setup_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)
You can’t perform that action at this time.
0 commit comments