Skip to content

Commit

Permalink
Pass target port on stack update (#190)
Browse files Browse the repository at this point in the history
Passes the target port parameter on stack update to ensure it doesn't
get reset to the default value in case a custom value was set by the
user.

Fix #189

Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
  • Loading branch information
mikkeloscar authored Jul 10, 2018
1 parent 230c6d9 commit 932e4db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions aws/cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ func updateStack(svc cloudformationiface.CloudFormationAPI, spec *stackSpec) (st
cfParam(parameterLoadBalancerSecurityGroupParameter, spec.securityGroupID),
cfParam(parameterLoadBalancerSubnetsParameter, strings.Join(spec.subnets, ",")),
cfParam(parameterTargetGroupVPCIDParameter, spec.vpcID),
cfParam(parameterTargetTargetPortParameter, fmt.Sprintf("%d", spec.targetPort)),
},
Tags: []*cloudformation.Tag{
cfTag(kubernetesCreatorTag, spec.controllerID),
Expand Down

0 comments on commit 932e4db

Please sign in to comment.