-
Notifications
You must be signed in to change notification settings - Fork 16.7k
[stable/gocd] add host in template ingress.yaml instead of using default backend #10983
Conversation
Signed-off-by: cola <[email protected]>
Signed-off-by: cola <[email protected]>
@arvindsv @varshavaradarajan |
@colachg Sure, I'll test it today. |
@colachg Just for the record, this is different from my recommendation mentioned here. The difference being that it's not backwards compatible with what exists today. In case you have an ingress host name defined, you can't reach the server through the ingress IP any more. The Default Backend mentioned in the k8s docs will not be used (since one won't be defined, after this change). I'm not saying that's necessarily wrong. Maybe that is how it is used and you should be expected to only use ingress hosts. I just don't know what it is that people use. What I like, though, is that with no change made to values.yaml (assuming you had no hosts defined), then the behavior is unchanged and the default backend is still defined and usable. |
@arvindsv Thanks for your time :)
Yes, the hosts in values are commented out, So the default backend works. |
Sorry @arvindsv, we have only spun up mainly agents with this chart so far. Soon looking to migrate our server into Kube too, but I'm not sure I have much input here yet. Also, I only see the exact change described in this PR, and not much context on why this is needed. |
To me, the change makes sense in a general sense (supporting Traefik). I can't speak to the regard how others use the ingress (by IP/hostname) though, sorry. |
@MPV No worries. Thanks for taking a look and thinking about it. |
/ok-to-test |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arvindsv, colachg 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 |
…ult backend (helm#10983) * if there is no host in template ingress.yaml, use default backend Signed-off-by: cola <[email protected]> * Update CHANGELOG Signed-off-by: cola <[email protected]>
What this PR does / why we need it:
if there is no host in template ingress.yaml, use default backend.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]