added gif

This commit is contained in:
Eugenio Marzo
2019-03-30 16:54:14 +01:00
parent cbeb6bf35d
commit ea68532c52
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ main_collection = /main/main.collectionc
[project]
title = KubeInvaders
version = 0.1
version = 0.2
[display]
variable_dt = 1

BIN
kubeinvaders.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 KiB

View File

@@ -21,7 +21,7 @@ function swap_pod(items)
for i,value in ipairs(current_pods) do
if value["id"] ~= "reset" and value["color"] == "red" then
current_pod_not_running = current_pod_not_running + 1
--print ("[swap_pod]:" .. value["id"] .. " is not running in KubeInvaders")
--print ("[swap_pod]:" .. value["id"] .. " is not running in KubeInvaders")
end
end
for i,value in ipairs(items) do
@@ -30,9 +30,9 @@ function swap_pod(items)
--print ("[swap_pod]:" .. value['metadata']['name'] .. " is not running on Kubernetes cluster")
end
end
--print ("[swap_pod]: current pods on Kubernetes: " .. pod_items_size)
--print ("[swap_pod]: not running pods Kubernetes: " .. kube_pod_not_running)
--print ("[swap_pod]: not running pods in KubeInvaders: " .. current_pod_not_running)
print ("[swap_pod]: current pods on Kubernetes: " .. pod_items_size)
print ("[swap_pod]: not running pods Kubernetes: " .. kube_pod_not_running)
print ("[swap_pod]: not running pods in KubeInvaders: " .. current_pod_not_running)
if (current_pod_not_running > 0) and (kube_pod_not_running > current_pod_not_running )then
diff = kube_pod_not_running - current_pod_not_running
@@ -155,7 +155,7 @@ function init(self)
["Accept"] = "application/json",
["Content-Type"] = "application/json"
}
timer.repeat_seconds(1, function()
timer.repeat_seconds(0.5, function()
update_pod()
end)
set_pods()