klog.V(5).Infof("Delete service (%s): START clusterName=%q",serviceName,clusterName)
ignoreErrors:=func(errerror)error{
ifignoreStatusNotFoundFromError(err)==nil{
klog.V(5).Infof("EnsureLoadBalancerDeleted: ignoring StatusNotFound error because the resource doesn't exist (%v)",err)
returnnil
}
ifignoreStatusForbiddenFromError(err)==nil{
klog.V(5).Infof("EnsureLoadBalancerDeleted: ignoring StatusForbidden error (%v). This may be caused by wrong configuration via service annotations",err)
@@ -369,6 +369,7 @@ var iptablesJumpChains = []iptablesJumpChain{
...
@@ -369,6 +369,7 @@ var iptablesJumpChains = []iptablesJumpChain{
{utiliptables.TableFilter,kubeExternalServicesChain,utiliptables.ChainInput,"kubernetes externally-visible service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeExternalServicesChain,utiliptables.ChainInput,"kubernetes externally-visible service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeServicesChain,utiliptables.ChainForward,"kubernetes service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeServicesChain,utiliptables.ChainForward,"kubernetes service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeServicesChain,utiliptables.ChainOutput,"kubernetes service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeServicesChain,utiliptables.ChainOutput,"kubernetes service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
{utiliptables.TableFilter,kubeServicesChain,utiliptables.ChainInput,"kubernetes service portals",[]string{"-m","conntrack","--ctstate","NEW"}},
returnfalse,false,errors.NewConflict(schema.GroupResource{Group:gvk.Group,Resource:gvk.Kind},objectMeta.GetName(),fmt.Errorf("the UID in the precondition (%s) does not match the UID in record (%s). The object might have been deleted and then recreated",*options.Preconditions.UID,objectMeta.GetUID()))
returnfalse,false,errors.NewConflict(schema.GroupResource{Group:gvk.Group,Resource:gvk.Kind},objectMeta.GetName(),fmt.Errorf("the UID in the precondition (%s) does not match the UID in record (%s). The object might have been deleted and then recreated",*options.Preconditions.UID,objectMeta.GetUID()))
returnfalse,false,errors.NewConflict(schema.GroupResource{Group:gvk.Group,Resource:gvk.Kind},objectMeta.GetName(),fmt.Errorf("the ResourceVersion in the precondition (%s) does not match the ResourceVersion in record (%s). The object might have been modified",*options.Preconditions.ResourceVersion,objectMeta.GetResourceVersion()))