mirror of
https://github.com/clearlinux/cloud-native-setup.git
synced 2026-10-04 07:58:38 +00:00
clean up
This commit is contained in:
committed by
Graham Whaley
parent
d72621ae2e
commit
c88d9a61c3
@@ -151,7 +151,6 @@ for (currentdir in resultdirs) {
|
||||
cdata=cbind(cdata, count=seq_len(length(cdata[, "boot_time"])))
|
||||
cdata=cbind(cdata, testname=rep(testname, length(cdata[, "boot_time"]) ))
|
||||
cdata=cbind(cdata, dataset=rep(datasetname, length(cdata[, "boot_time"]) ))
|
||||
#cdata=cbind(cdata, pndata)
|
||||
|
||||
# Gather our statistics
|
||||
# '-1' containers, as the first entry should be a data capture of before
|
||||
|
||||
@@ -119,7 +119,7 @@ EOF
|
||||
|
||||
# for the first call to grab stats, there are no new pods
|
||||
# so we need to fill in with NA (R specific value) in matching
|
||||
# diminsion to the rest of the calls to grab_stats, so $STEP items
|
||||
# dimension to the rest of the calls to grab_stats, so $STEP items
|
||||
if [[ ${#new_pods[@]} == 0 ]]; then
|
||||
for i in $STEP; do
|
||||
local new_pod_json="$(cat << EOF
|
||||
@@ -132,7 +132,7 @@ EOF
|
||||
metrics_json_add_nested_array_element "$new_pod_json"
|
||||
done
|
||||
else
|
||||
local maxelem=$(( ${#new_pods[@]} - 1 ))
|
||||
local maxelem=$(( ${#new_pods[@]} - 1 ))
|
||||
for index in $(seq 0 $maxelem); do
|
||||
local node=$(kubectl get pod ${new_pods[$index]} -o json | jq -r '"\(.spec.nodeName)"')
|
||||
local new_pod_json="$(cat << EOF
|
||||
|
||||
Reference in New Issue
Block a user