diff --git a/doc_images/dashboard.png b/doc_images/dashboard.png index b71c60d..e0209b2 100644 Binary files a/doc_images/dashboard.png and b/doc_images/dashboard.png differ diff --git a/doc_images/programming_mode.png b/doc_images/programming_mode.png index 0949b65..fccf8b6 100644 Binary files a/doc_images/programming_mode.png and b/doc_images/programming_mode.png differ diff --git a/html5/kubeinvaders.js b/html5/kubeinvaders.js index 2438bc4..6a8795b 100644 --- a/html5/kubeinvaders.js +++ b/html5/kubeinvaders.js @@ -93,7 +93,7 @@ function loadSavedPreset(tool, lang) { var oReq = new XMLHttpRequest(); oReq.onreadystatechange = function () { if (this.readyState === XMLHttpRequest.DONE && this.status === 200) { - if (this.responseText != "null") { + if (this.responseText != "") { $("#currentLoadTest").text(this.responseText); } } @@ -120,7 +120,7 @@ function savePreset() { jobs: ${presetName}: additional-labels: - create-by: "kubeinvaders" + create-by: kubeinvaders load-preset: ${presetName} preset-lang: ${presetLang} image: docker.io/luckysideburn/chaos-exec:latest diff --git a/nginx/KubeInvaders.conf b/nginx/KubeInvaders.conf index c14ed83..35cf806 100644 --- a/nginx/KubeInvaders.conf +++ b/nginx/KubeInvaders.conf @@ -140,7 +140,7 @@ server { local res, err = red:get(keyname) if res == ngx.null then - ngx.say("null") + ngx.say("") else ngx.say(payload) end