mirror of
https://github.com/jcwimer/startup-infrastructure
synced 2026-03-24 22:34:42 +00:00
Switched from docker swarm to Kubernetes with rke
This commit is contained in:
3
tests/lib/mysql-query.sh
Normal file
3
tests/lib/mysql-query.sh
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
kubectl run mysql-client --image=mysql:5.7 -it --rm --restart=Never \
|
||||
-- mysql -h mysql-cluster-mysql -u root -ppassword -e "show databases; show slave status;"
|
||||
@@ -9,7 +9,7 @@ function testbash() {
|
||||
local name="${1}"
|
||||
shift
|
||||
local command="${@}"
|
||||
eval $command
|
||||
eval "${command}"
|
||||
local return=$?
|
||||
if [[ ! $return -eq 0 ]]; then
|
||||
echo "${red}FAILED: ${name}${reset}"
|
||||
|
||||
Reference in New Issue
Block a user