Skip to content

Commit

Permalink
Set LeaderElectionNamespace to PodNamespace (#5405)
Browse files Browse the repository at this point in the history
* Set LeaderElectionNamespace to PodNamespace

Signed-off-by: Ali Aqel <[email protected]>

* update changelog

Signed-off-by: Ali Aqel <[email protected]>

* move changelog to unreleased

Signed-off-by: Ali Aqel <[email protected]>

* fix changelog

Signed-off-by: Ali Aqel <[email protected]>

* fix changelog ordering

Signed-off-by: Ali Aqel <[email protected]>

* fix changelog per comments

Signed-off-by: Ali Aqel <[email protected]>

---------

Signed-off-by: Ali Aqel <[email protected]>
  • Loading branch information
aliaqel-stripe authored Jan 18, 2024
1 parent b52529b commit 367fcd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ Here is an overview of all new **experimental** features:
- **General**: Prevented memory leak generated by not correctly cleaning http connections ([#5248](https://github.com/kedacore/keda/issues/5248))
- **General**: Prevented stuck status due to timeouts during scalers generation ([#5083](https://github.com/kedacore/keda/issues/5083))
- **General**: ScaledObject Validating Webhook should support `dry-run=server` requests ([#5306](https://github.com/kedacore/keda/issues/5306))
- **General**: Set `LeaderElectionNamespace` to PodNamespace so leader election works in OutOfCluster mode ([#5404](https://github.com/kedacore/keda/issues/5404))
- **AWS Scalers**: Ensure session tokens are included when instantiating AWS credentials ([#5156](https://github.com/kedacore/keda/issues/5156))
- **Azure Event Hub Scaler**: Improve unprocessedEventThreshold calculation ([#4250](https://github.com/kedacore/keda/issues/4250))
- **Azure Pipelines**: Prevent HTTP 400 errors due to `poolName` with spaces ([#5107](https://github.com/kedacore/keda/issues/5107))
Expand Down
15 changes: 8 additions & 7 deletions cmd/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,14 @@ func main() {
Cache: ctrlcache.Options{
DefaultNamespaces: namespaces,
},
HealthProbeBindAddress: probeAddr,
PprofBindAddress: profilingAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "operator.keda.sh",
LeaseDuration: leaseDuration,
RenewDeadline: renewDeadline,
RetryPeriod: retryPeriod,
HealthProbeBindAddress: probeAddr,
PprofBindAddress: profilingAddr,
LeaderElection: enableLeaderElection,
LeaderElectionID: "operator.keda.sh",
LeaderElectionNamespace: kedautil.GetPodNamespace(),
LeaseDuration: leaseDuration,
RenewDeadline: renewDeadline,
RetryPeriod: retryPeriod,
})
if err != nil {
setupLog.Error(err, "unable to start manager")
Expand Down

0 comments on commit 367fcd3

Please sign in to comment.