-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/drone] fixing server.protocol
and NOTES.txt
#10971
Conversation
Signed-off-by: Max Williams <max.williams@deliveryhero.com>
/assign @christian-roggia |
@@ -6,7 +6,7 @@ | |||
{{- if .Values.ingress.enabled }} | |||
From outside the cluster, the server URL(s) are: | |||
{{- range .Values.ingress.hosts }} | |||
http://{{ . }} | |||
{{ $.Values.server.protocol }}://{{ . }} |
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.
Why the $
before .Values.server.protocol
?
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.
Because of the scope. Here we are in a loop so you can't access the parent scope without it. You get this error without it:
Error: render error in "drone/templates/NOTES.txt": template: drone/templates/NOTES.txt:9:8: executing "drone/templates/NOTES.txt" at <.>: can't give argument to non-function .
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christian-roggia, max-rocket-internet 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 |
Signed-off-by: Max Williams <max.williams@deliveryhero.com>
What this PR does / why we need it:
I think this value should be without
://
?Also updating
NOTES.txt
to use this value when ingress is used.Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]