Skip to content

Commit

Permalink
Merge pull request #961 from spencerhance/fix-svcport-ilb
Browse files Browse the repository at this point in the history
Fix default backend port bug for ilb neg
  • Loading branch information
k8s-ci-robot authored Dec 3, 2019
2 parents f988163 + e52cd14 commit 3d4435f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/glbc/app/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ func servicePortForDefaultService(svc *v1.Service, svcPort intstr.IntOrString, n
Port: svcPort,
},
TargetPort: port.TargetPort.StrVal,
Port: port.Port,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func NewControllerContext(

// Init inits the Context, so that we can defers some config until the main thread enter actually get the leader lock.
func (ctx *ControllerContext) Init() {
klog.V(2).Infof("Controller Context initializing with %v", ctx.ControllerContextConfig)
klog.V(2).Infof("Controller Context initializing with %+v", ctx.ControllerContextConfig)
// Initialize controller context internals based on ASMConfigMap
if ctx.EnableASMConfigMap {
configMapInformer := informerv1.NewConfigMapInformer(ctx.KubeClient, ctx.Namespace, ctx.ResyncPeriod, utils.NewNamespaceIndexer())
Expand Down

0 comments on commit 3d4435f

Please sign in to comment.