Skip to content

Commit

Permalink
fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-sideburn committed Jan 2, 2023
1 parent 2352cc9 commit dd7f608
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helm-charts/kubeinvaders/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ deployment:
replicaCount: 1
image:
repository: luckysideburn/kubeinvaders
tag: v1.9.5
tag: v1.9.6
pullPolicy: Always
extraEnv: []
# - name: FOO
Expand Down
2 changes: 1 addition & 1 deletion html5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@
<img src="images/kubeinvaders_spaceship.png">
</div>
<div class="container text-center" style="margin-top: 1%;">
<p class="text-muted credit" style="color:#fff">kubeinvaders_version: v1.9.5</p>
<p class="text-muted credit" style="color:#fff">kubeinvaders_version: v1.9.6</p>
</div>
</div>

Expand Down
6 changes: 4 additions & 2 deletions nginx/KubeInvaders.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,16 @@ server {
node = string.gsub(res, "chaos_node_jobs_total_on_", "")
metric = "chaos_jobs_node_count{node=\"".. node .."\"}"
ngx.say(metric .. " " .. red:get(res))

elseif string.find(res, "deleted_pods_total_on") then
namespace = string.gsub(res, "deleted_pods_total_on_", "")
metric = "deleted_namespace_pods_count{namespace=\"".. namespace .."\"}"
ngx.say(metric .. " " .. red:get(res))

else
-- TO DO: Use improved regex...
elseif not string.find(res, "programming_mode") and not string.find(res, "log:") and not string.find(res, "log_") then
ngx.say(res .. " " .. red:get(res))

end
end
}
Expand Down

0 comments on commit dd7f608

Please sign in to comment.