We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00c0a68 commit f06ffc1Copy full SHA for f06ffc1
scaletest/templates/scaletest-runner/scripts/lib.sh
@@ -295,3 +295,14 @@ fetch_coder_full() {
295
maybedryrun "${DRY_RUN}" chmod +x "${SCALETEST_CODER_BINARY}"
296
log "Full Coder binary downloaded to ${SCALETEST_CODER_BINARY}"
297
}
298
+
299
+# set_status_annotation annotates the currently running pod with the key
300
+# com.coder.scaletest.status. It will overwrite the previous status.
301
+set_status_annotation() {
302
+ if [[ $# -ne 1 ]]; then
303
+ log "must specify an annotation value"
304
+ exit 1
305
+ else
306
+ maybedryrun "${DRY_RUN}" kubectl --namespace "$(namespace)" annotate pod "$(hostname)" "com.coder.scaletest.status=$2" --overwrite
307
+ fi
308
+}
0 commit comments