• Kubernetes Submit Queue's avatar
    Merge pull request #42666 from timothysc/configmap_lock · cba96a86
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41297, 42638, 42666, 43039, 42567)
    
    Add the ability to lock on ConfigMaps to support HA for self hosted components
    
    **What this PR does / why we need it**:
    This PR add the ability to lock on ConfigMap objects.  As we self-host more and more components, ConfigMaps provides a useful resource to lock on that applies to just the component that is being added.  
    
    This allows components such as scheduler+controller manager, etc. to have a simple mechanism to allow to active-passive HA without the cost of endpoint updates.  
    
    **Related Issues** 
    xref: https://github.com/kubernetes/client-go/issues/28 
    
    **Special notes for your reviewer**:
    We may want to deprecate endpoints locking at some point. 
    
    **Release note**:
    ```
    Add the ability to lock on ConfigMaps to support HA for self hosted components
    ```
    
    /cc @kubernetes/sig-cluster-lifecycle-pr-reviews @mikedanese
    cba96a86
Name
Last commit
Last update
..
resourcelock Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
leaderelection.go Loading commit data...
leaderelection_test.go Loading commit data...