splunk / splunk-operator

Splunk Operator for Kubernetes
Other
210 stars 115 forks source link

cspl-2532: fix for leader election lost issue #1281

Closed vivekr-splunk closed 9 months ago

vivekr-splunk commented 9 months ago

What did you do? I use Leader-with-lease in my operator code.

What did you expect to see? A clear and concise description of what you expected to happen (or insert a code snippet).

What did you see instead? Under which circumstances? A clear and concise description of what you expected to happen (or insert a code snippet). leader election lost” will appear every other time.

ERROR cmd Manager exited non-zero {"error": "leader election lost"} github.com/go-logr/zapr.(*zapLogger).Error splunk-operator/vendor/github.com/go-logr/zapr/zapr.go:128 main.main splunk-operator/cmd/manager/main.go:174 runtime.main Environment

operator-sdk version: 1.31

insert release or Git SHA here: master

Kubernetes version information: v.1.26

Additional context Add any other context about the question here.