Open
Description
Hi
Just a query with regards to the current webhook, is it possible to run predefined js scripts as part of the webhook or is tis limited to running embedded script in the canary yaml?
Current k6 setup:
Main file below to import methods from other files (current example has 1 other file but can be expanded to include more)
//imports
import { test1 } from "./test1.js";
//setup
export const options = {
vus: 1,
duration: '30s',
iterations: 1,
thresholds: {
requests: ['count < 100'],
},
};
export default function() {
test1();
}
second file test1.js
import http from 'k6/http';
import { sleep, check } from 'k6';
import { Counter } from 'k6/metrics';
export const requests = new Counter('http_reqs');
export default function test1() {
const res = http.get('http://{{ include "test.fullname" . }}-canary.{{- .Release.Namespace }}:{{ .Values.service.port }}');
sleep(1);
const checkRes = check(res, {
status is 200': (r) => r.status === 200
});
}
Not sure if this is a limitation on flagger, helm or is possible to be catered for in the webhook?
Metadata
Assignees
Labels
No labels