mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
fix
This commit is contained in:
@@ -210,7 +210,7 @@ function drawChaosProgramFlow() {
|
||||
|
||||
//console.log("Search " + search_job);
|
||||
for (let [key, value] of chaos_jobs_status) {
|
||||
if (key.search(search_job)) {
|
||||
if (key.search(search_job) != -1 ) {
|
||||
flow_html = flow_html + '<div class="row"><div class="alert alert-light" role="alert" style="border-color: #000000; border-width: 1.5px;">[' + key.split(":")[2] + '] Status: ' + value + '</div></div>';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ while True:
|
||||
logging.info(f"[logid:{logid}] Regex for annotation is {annotations_re}")
|
||||
|
||||
for pod in api_response.items:
|
||||
if re.search(f"{pod_re}", pod.metadata.name) and re.search(f"{namespace_re}", pod.metadata.namespace) and re.search(f"{labels_re}", str(pod.metadata.labels)) and re.search(f"{annotations_re}", str(pod.metadata.annotations)):
|
||||
if re.search(r"{pod_re}", pod.metadata.name) and re.search(r"{namespace_re}", pod.metadata.namespace) and re.search(r"{labels_re}", str(pod.metadata.labels)) and re.search(r"{annotations_re}", str(pod.metadata.annotations)):
|
||||
webtail_pods.append(pod)
|
||||
#logging.info(f"[logid:{logid}] Taking log of {pod.metadata.name} because it is compliant with the regex {log_pod_regex}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user