Skip to content

Commit a7aecb5

Browse files
committed
Merge pull request sorintlab#453 from sgotti/k8s_store_fix_wrong_events_namespace
k8s store: fix wrong namespace used for election events
2 parents bb6c06a + 3f790f0 commit a7aecb5

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)