mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-05-06 00:36:44 +00:00
added gif
This commit is contained in:
@@ -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
BIN
kubeinvaders.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 193 KiB |
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user