Skip to content

K8SPS-372: fix bootstrap for cluster with 2 mysql pods #2240

K8SPS-372: fix bootstrap for cluster with 2 mysql pods

K8SPS-372: fix bootstrap for cluster with 2 mysql pods #2240

GitHub Actions / shellcheck succeeded Aug 12, 2024 in 0s

reviewdog [shellcheck] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (28)

e2e-tests/vars.sh|8 col 32| test_name is referenced but not assigned.
e2e-tests/vars.sh|25 col 1| date appears unused. Verify use (or export if used externally).
build/ps-entrypoint.sh|61 col 6| ShellCheck can't follow non-constant source. Use a directive to specify location.
build/ps-entrypoint.sh|200 col 22| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/ps-entrypoint.sh|216 col 34| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/ps-entrypoint.sh|216 col 70| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/ps-entrypoint.sh|274 col 30| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/ps-entrypoint.sh|362 col 22| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/ps-entrypoint.sh|410 col 2| cluster_name appears unused. Verify use (or export if used externally).
build/haproxy_check_replicas.sh|27 col 28| Prefer mapfile or read -a to split command output (or quote to avoid splitting).
build/haproxy_check_replicas.sh|27 col 35| Double quote to prevent globbing and word splitting.
build/haproxy_check_replicas.sh|47 col 28| Prefer mapfile or read -a to split command output (or quote to avoid splitting).
build/haproxy_check_replicas.sh|47 col 35| Double quote to prevent globbing and word splitting.
build/run-backup.sh|63 col 26| Want to escape a single quote? echo 'This is how it'''s done'.
build/run-backup.sh|63 col 31| Want to escape a single quote? echo 'This is how it'''s done'.
build/router_startup_check.sh|5 col 68| This { is literal. Check expression (missing ;/\n?) or quote it.
build/router_startup_check.sh|5 col 78| This } is literal. Check expression (missing ;/\n?) or quote it.
build/heartbeat-entrypoint.sh|24 col 40| Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.
build/haproxy-entrypoint.sh|30 col 26| Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.
build/haproxy-entrypoint.sh|43 col 11| Double quote to prevent globbing and word splitting.
build/router-entrypoint.sh|20 col 6| Double quote to prevent globbing and word splitting.
build/router-entrypoint.sh|20 col 74| Double quote to prevent globbing and word splitting.
build/haproxy_check_primary.sh|27 col 28| Prefer mapfile or read -a to split command output (or quote to avoid splitting).
build/haproxy_check_primary.sh|27 col 35| Double quote to prevent globbing and word splitting.
build/haproxy_check_primary.sh|47 col 28| Prefer mapfile or read -a to split command output (or quote to avoid splitting).
build/haproxy_check_primary.sh|47 col 35| Double quote to prevent globbing and word splitting.
build/haproxy_add_mysql_nodes.sh|25 col 8| read without -r will mangle backslashes.
build/haproxy_add_mysql_nodes.sh|54 col 2| Consider using { cmd1; cmd2; } >> file instead of individual redirects.