Skip to content

Commit

Permalink
Merge pull request #557 from jakobmoellerdev/OCPEDGE-821-disable-lead…
Browse files Browse the repository at this point in the history
…er-election

OCPEDGE-821: chore: disable leader election for single replica deployment
  • Loading branch information
openshift-merge-bot[bot] authored Jan 25, 2024
2 parents b3d694c + db13c96 commit 037e853
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bundle/manifests/lvms-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,8 @@ spec:
selector:
matchLabels:
app.kubernetes.io/name: lvms-operator
strategy: {}
strategy:
type: Recreate
template:
metadata:
annotations:
Expand All @@ -515,7 +516,7 @@ spec:
containers:
- args:
- --health-probe-bind-address=:8081
- --leader-elect
- --leader-elect=false
command:
- /lvms
- operator
Expand Down
2 changes: 1 addition & 1 deletion config/default/manager_metrics_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
- name: manager
args:
- "--health-probe-bind-address=:8081"
- "--leader-elect"
- "--leader-elect=false"
volumeMounts:
- mountPath: /tmp/k8s-metrics-server/serving-certs
name: metrics-cert
Expand Down
4 changes: 3 additions & 1 deletion config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ spec:
matchLabels:
app.kubernetes.io/name: lvms-operator
replicas: 1
strategy:
type: Recreate
template:
metadata:
annotations:
Expand All @@ -41,7 +43,7 @@ spec:
- /lvms
- operator
args:
- --leader-elect
- --leader-elect=false
image: controller:latest
# if name is changed here, same should be reflected in 'controller/defaults.go'
# search for 'ContainerName'
Expand Down

0 comments on commit 037e853

Please sign in to comment.