mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-08-26 10:28:25 +00:00
metrics: scaling: check we have bc installed
We now use `bc` for some of the stats calculations. Ensure it is installed, or we silently generate bad field data. Signed-off-by: Graham Whaley <graham.whaley@intel.com>
This commit is contained in:
committed by
David Lyle
parent
6a7eb8bbc9
commit
6d5c782fce
@@ -199,6 +199,10 @@ EOF
|
||||
|
||||
init() {
|
||||
info "Initialising"
|
||||
|
||||
local cmds=("bc")
|
||||
check_cmds "${cmds[@]}"
|
||||
|
||||
info "Checking k8s accessible"
|
||||
local worked=$( kubectl get nodes > /dev/null 2>&1 && echo $? || echo $? )
|
||||
if [ "$worked" != 0 ]; then
|
||||
|
||||
Reference in New Issue
Block a user