kubernetes-client/python

add support Lease-based leader election (rather than ConfigMaps)

Open

#1877 aperta il 12 ago 2022

Vedi su GitHub
 (12 commenti) (18 reazioni) (0 assegnatari)Python (3323 fork)batch import
help wantedkind/feature

Metriche repository

Star
 (6225 star)
Metriche merge PR
 (Merge medio 10g 3h) (2 PR mergiate in 30 g)

Descrizione

What is the feature and why do you need it:

Currently, the K8S Python API only supports leader election using ConfigMapLock.

The K8S Go API supports using the proper Lease resource type with its LeaseLock, and actually recently removed support for the legacy ConfigMap approach.

We should update the Kubernetes Python API to provide a Lease-based leader election.


/cc @Invictus17 @tdihp

Guida contributor