• Brad Davidson's avatar
    Fix deletion of svclb DaemonSet when Service is deleted · beb6e4c8
    Brad Davidson authored
    87e1806697cd7dfffb7cb0de73c85e889365780d removed the OwnerReferences
    field from the DaemonSet, which makes sense since the Service may now be
    in a different namespace than the DaemonSet and cross-namespace owner
    references are not supported.  Unfortunately, we were relying on
    garbage collection to delete the DameonSet, so this started leaving
    orphaned DaemonSets when Services were deleted.
    
    We don't want to add an a Service OnRemove handler, since this will add
    finalizers to all Services, not just LoadBalancers services, causing
    conformance tests to fail. Instead, manage our own finalizers, and
    restore the DaemonSet removal Event that was removed by the same commit.
    Signed-off-by: 's avatarBrad Davidson <brad.davidson@rancher.com>
    beb6e4c8
Name
Last commit
Last update
..
controller.go Loading commit data...