grafana / k6-operator

An operator for running distributed k6 tests.
Apache License 2.0
592 stars 166 forks source link

Helm Chart - Disable Leader Election if running Operator as a single Pod #462

Closed hartman17 closed 1 month ago

hartman17 commented 1 month ago

Feature Description

When deploying the operator using Helm there is no configurable option to disable the leader election process. This should be disabled when running the operator as a single pod, there is no need to check for leader election in this state.

Suggested Solution (optional)

There are a couple of ways to do this:

Add Helm config to disable leader election if .Values.manager.replicas == 1

or

Add a .Values.manager.leaderelection and allow users to pass in true/false to disable if it's not needed.

Already existing or connected issues / PRs (optional)

No response

yorugac commented 1 month ago

Solved in https://github.com/grafana/k6-operator/pull/463.