This commit is contained in:
Eugenio Marzo
2022-10-23 15:27:16 +02:00
parent cc57277add
commit 2b015ad65f
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -179,7 +179,7 @@
<div id="chaos-program-screen" style="display: none;">
<div class="row" style="margin-top: 1%;">
<form>
<div id="alert_placeholder" style="margin-top: 1%; margin-botton: 1%"></div>
<div id="alert_placeholder" style="margin-top: 1%;"></div>
<div class="form-group">
<label for="chaosProgramTextArea"></label>
<textarea class="form-control" id="chaosProgramTextArea" rows="20" style="font-family: Courier, monospace;">
+4 -1
View File
@@ -84,7 +84,7 @@ var help = false;
var chaos_nodes = true;
var chaos_pods = true;
var alert_div = '<div id="alert_placeholder" style="margin-top: 2%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
var alert_div = '<div id="alert_placeholder" style="margin-top: 2%; margin-bottom: 1%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
var alert_div_webtail = '<div id="alert_placeholder3" style="margin-top: 2%; background-color:#000000; color: #0cf52b" class="alert" role="alert">';
var kubelinter = '';
@@ -247,6 +247,9 @@ function setChaosContainer() {
}
function runChaosProgram() {
$('#alert_placeholder').replaceWith(alert_div + 'Loading chaos program...</div>');
var oReq = new XMLHttpRequest();
oReq.open("POST", "https://" + clu_endpoint + "/kube/chaos/programming_mode", true);
oReq.onreadystatechange = function () {