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:
Simone Gotti 2018-03-09 15:46:06 +01:00
commit a7aecb554c

View File

@ -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)