Fix dbmon warning
mariadb secret name changed to mariadb-dbadmin-password, update the ocf script accordingly. Depends-On: I777895497300cc605762db002958a778cd204e49 Change-Id: I31b29bb8ffff28cd329b383704b88cf73199bcec Closes-Bug: 1826891 Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
parent
80e84d3b0d
commit
9de51a38bc
|
@ -183,8 +183,8 @@ get_pod_and_status() {
|
|||
|
||||
# If this doesn't exist, the return code will still be zero
|
||||
# but the variable will be blank.
|
||||
DBPASSWD_ENCODED=`kubectl -n openstack get secret mariadb-db-root-password \
|
||||
-o=jsonpath='{.data.MYSQL_ROOT_PASSWORD'}`
|
||||
DBPASSWD_ENCODED=`kubectl -n openstack get secret mariadb-dbadmin-password \
|
||||
-o=jsonpath='{.data.MYSQL_DBADMIN_PASSWORD}'`
|
||||
if [ "${DBPASSWD_ENCODED}" = '' ]; then
|
||||
ocf_log info "Unable to get mariadb password. Exiting."
|
||||
return $OCF_ERR_GENERIC
|
||||
|
|
Loading…
Reference in New Issue