• Kubernetes Submit Queue's avatar
    Merge pull request #44338 from shashidharatd/leader-election · 932dabda
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 40544, 44338, 45225)
    
    Use ObjectGetter Interface instead of clientset.Interface for leaderelection pkg
    
    **What this PR does / why we need it**:
    We plan to reuse leaderelection pkg to add leader election function to federation controller manager, but the current implementation uses kubernetes clientset.Interface and federation clientset does not satisfy all the interface methods. It would be better if the leaderelection package use rest.Interface which is also supported by federation clientset.
    This pr is to refactor leaderelection pkg to use rest.Interface instead of clientset.Interface
    
    **Special notes for your reviewer**:
    This is a sub-task of bigger work to add leader election to federation controller manager as documented in #44283
    
    **Release note**:
    ```
    NONE
    ```
    932dabda
Name
Last commit
Last update
..
chaosclient Loading commit data...
clientset_generated Loading commit data...
conditions Loading commit data...
informers/informers_generated Loading commit data...
leaderelection Loading commit data...
listers Loading commit data...
metrics Loading commit data...
retry Loading commit data...
testdata Loading commit data...
tests Loading commit data...
unversioned Loading commit data...
OWNERS Loading commit data...