Skip to content

Commit 3f790f0

Browse files
committed
k8s store: fix wrong namespace used for election events
The event recorder namespace was set to `default` instead of using the right one.
1 parent bb6c06a commit 3f790f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/store/k8s.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ func NewKubeElection(kubecli *kubernetes.Clientset, podName, namespace, clusterN
389389
kubecli.CoreV1(),
390390
resourcelock.ResourceLockConfig{
391391
Identity: candidateUID,
392-
EventRecorder: createRecorder(kubecli, "stolon-sentinel", "default"),
392+
EventRecorder: createRecorder(kubecli, "stolon-sentinel", namespace),
393393
})
394394
if err != nil {
395395
return nil, fmt.Errorf("error creating lock: %v", err)

0 commit comments

Comments
 (0)