K6 flagger webhook "kubernetes client not configured"

Hello :wave:
I’ve run K6 Flagger webhook tests successfully a few times but then started getting the error, advancement pre-rollout check k6PrerolloutTest failed kubernetes client is not configured. I restarted k6-loadtester the logs now show, time="2023-10-02T18:04:23Z" level=info msg="not creating a kubernetes client" and I cannot get past the client is not configured error. I assume the logs showing not creating a kubernetes client is an issue that needs to be resolved before any flagger webhook tests will work but I’m not sure how to troubleshoot that. Any ideas?

Resolved. Found that the environment variable KUBERNETES_CLIENT: in-cluster needs to be added to the k6-loadtester helmchart to get this to work.