• Andrew Butcher's avatar
    Do not update kubernetes endpoints when endpoint address count is less than or… · 101a9927
    Andrew Butcher authored
    Do not update kubernetes endpoints when endpoint address count is less than or equal to master count.
    
    checkEndpointSubsetFormat ensures that,
    1. the current master's IP is in the list of addresses
    2. the number of IPs in the list exactly matches the master count
    
    This is problematic while masters are in the process of starting
    because it causes frequent updates to the kubernetes endpoints until
    all masters have started and added themselves to the list.
    
    checkEndpointSubsetFormat should report success if the current
    master's IP is found and the count of addresses is less than or equal
    to the expected count.
    101a9927
controller_test.go 27.5 KB