Replace use of endpoint as locks with configmap
This commit is contained in:
parent
f2abb7894f
commit
e347413649
3 changed files with 111 additions and 105 deletions
|
|
@ -101,8 +101,8 @@ func NewElection(electionID,
|
|||
Host: hostname,
|
||||
})
|
||||
|
||||
lock := resourcelock.EndpointsLock{
|
||||
EndpointsMeta: meta_v1.ObjectMeta{Namespace: namespace, Name: electionID},
|
||||
lock := resourcelock.ConfigMapLock{
|
||||
ConfigMapMeta: meta_v1.ObjectMeta{Namespace: namespace, Name: electionID},
|
||||
Client: c,
|
||||
LockConfig: resourcelock.ResourceLockConfig{
|
||||
Identity: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue