mirror of
https://github.com/sorintlab/stolon.git
synced 2024-10-04 11:37:19 +03:00
Merge pull request #453 from sgotti/k8s_store_fix_wrong_events_namespace
k8s store: fix wrong namespace used for election events
This commit is contained in:
commit
a7aecb554c
@ -389,7 +389,7 @@ func NewKubeElection(kubecli *kubernetes.Clientset, podName, namespace, clusterN
|
||||
kubecli.CoreV1(),
|
||||
resourcelock.ResourceLockConfig{
|
||||
Identity: candidateUID,
|
||||
EventRecorder: createRecorder(kubecli, "stolon-sentinel", "default"),
|
||||
EventRecorder: createRecorder(kubecli, "stolon-sentinel", namespace),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error creating lock: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user