-
Notifications
You must be signed in to change notification settings - Fork 1.5k
clear confusion around using ClusterIP service and Instance targets #4243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@@ -181,6 +181,14 @@ func (t *defaultModelBuildTask) buildTargetGroupSpec(ctx context.Context, | |||
} | |||
tgPort := t.buildTargetGroupPort(ctx, targetType, svcPort) | |||
name := t.buildTargetGroupName(ctx, k8s.NamespacedName(ing.Ing), svc, port, tgPort, targetType, tgProtocol, tgProtocolVersion) | |||
|
|||
if tgPort == 0 { | |||
if targetType == elbv2model.TargetTypeIP { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, in which case, tgPort will be 0 with IP Targets ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
technically, not possible but just being defensive in case that changes in the future.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shraddhabang, wweiwei-li, zac-nixon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
clear confusion around using ClusterIP service and Instance targets
Issue
#4238
Description
Presently, the error returned when using the wrong service type and instance targets is very unclear. In our documentation we state that you MUST use 'Loadbalancer' or 'NodePort' typed services however the error message returned by the controller does not make it obvious.
Manual testing:
Checklist
README.md
, or thedocs
directory)BONUS POINTS checklist: complete for good vibes and maybe prizes?! 🤯