start support for kubevirt

This commit is contained in:
luckysideburn
2024-12-22 11:40:16 +00:00
parent 8b4ba25be9
commit 66704ad297
9 changed files with 119 additions and 24 deletions
-9
View File
@@ -75,10 +75,6 @@ else
ngx.exit(ngx.OK)
end
--ngx.log(ngx.INFO, "token: " .. token)
-- ngx.log(ngx.INFO, "url: " .. url)
-- ngx.log(ngx.INFO, "namespace: " .. namespace)
local headers = {
["Accept"] = "application/json",
["Content-Type"] = "application/json",
@@ -94,11 +90,6 @@ local ok, statusCode, headers, statusText = https.request{
sink = ltn12.sink.table(resp)
}
-- ngx.log(ngx.INFO, "REQUEST LOGS...")
-- ngx.log(ngx.INFO, ok)
-- ngx.log(ngx.INFO, statusCode)
-- ngx.log(ngx.INFO, statusText)
if action == "list" then
local i = 1
local j = 0