mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-05-16 21:57:02 +00:00
fix indentation
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
local M = {}
|
||||
|
||||
function M.get_help()
|
||||
msg.post("ui#gui","help",{ position = vmath.vector3(5, 300, 0) })
|
||||
msg.post("ui#gui","help",{ position = vmath.vector3(5, 300, 0) })
|
||||
end
|
||||
|
||||
function M.quit_help()
|
||||
msg.post("ui#gui","quit_help",{ position = vmath.vector3(-1000, -1000, 0) })
|
||||
msg.post("ui#gui","quit_help",{ position = vmath.vector3(-1000, -1000, 0) })
|
||||
end
|
||||
|
||||
return M
|
||||
@@ -1,11 +1,11 @@
|
||||
local M = {}
|
||||
|
||||
function M.node_metrics(pod_name)
|
||||
http.request(endpoint .. "/apis/metrics.k8s.io/v1beta1/nodes", "GET", M.http_node_metrics_result, headers)
|
||||
http.request(endpoint .. "/apis/metrics.k8s.io/v1beta1/nodes", "GET", M.http_node_metrics_result, headers)
|
||||
end
|
||||
|
||||
function M.http_node_metrics_result(self, _, response)
|
||||
print(response.response)
|
||||
print(response.response)
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user