opendatahub-io / opendatahub-operator

Open Data Hub operator to manage ODH component integrations
https://opendatahub.io
Apache License 2.0
60 stars 139 forks source link

Revert "feat: remove leader election for operator (#1000)" #1153

Closed zdtsw closed 2 months ago

zdtsw commented 2 months ago

Description

How Has This Been Tested?

local build: quay.io/wenzhou/opendatahub-operator-catalog:v2.15.91 pod log:

I0805 13:12:45.727597       1 leaderelection.go:248] attempting to acquire leader lease openshift-operators/07ed84f7.opendatahub.io...
{"level":"info","ts":"2024-08-05T13:12:45Z","logger":"controller-runtime.certwatcher","msg":"Updated current TLS certificate"}
{"level":"info","ts":"2024-08-05T13:12:45Z","logger":"controller-runtime.webhook","msg":"Serving webhook server","host":"","port":9443}
{"level":"info","ts":"2024-08-05T13:12:45Z","logger":"controller-runtime.certwatcher","msg":"Starting certificate watcher"}
I0805 13:13:03.827022       1 leaderelection.go:258] successfully acquired lease openshift-operators/07ed84f7.opendatahub.io

Screenshot or short clip

Merge criteria

openshift-ci[bot] commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lburgazzoli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/OWNERS)~~ [lburgazzoli] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment