Disable the svclb controller nodeploy for svclb is passed

pull/543/head
galal-hussein 6 years ago
parent 4ea110f746
commit 94b5a22dda

@ -134,7 +134,6 @@ func masterControllers(ctx context.Context, sc *Context, config *Config) error {
sc.Batch.Batch().V1().Job(),
sc.Auth.Rbac().V1().ClusterRoleBinding(),
sc.Core.Core().V1().ServiceAccount())
if err := servicelb.Register(ctx,
sc.K8s,
sc.Apply,

@ -153,6 +153,10 @@ func (h *handler) onChangeNode(key string, node *core.Node) (*core.Node, error)
}
func (h *handler) updateService(svc *core.Service) (runtime.Object, error) {
if !h.enabled {
return svc, nil
}
pods, err := h.podCache.List(svc.Namespace, labels.SelectorFromSet(map[string]string{
svcNameLabel: svc.Name,
}))

Loading…
Cancel
Save