Broken DOMAIN templating for new recipes #355
Labels
No Label
abra
abra-gandi
awaiting-feedback
backups
bug
build
ci/cd
community organising
contributing
coopcloud.tech
democracy
design
documentation
duplicate
enhancement
finance
funding
good first issue
help wanted
installer
kadabra
performance
proposal
question
recipes.coopcloud.tech
security
test
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: coop-cloud/organising#355
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
abra recipe new foobar
abra app new foobar
abra app deploy foobar.mycoolsite
Expected result: works
Actual result:
FATA[0022] lookup foobar.example.com: no such host
My preferred solution is to return to just replacing
<recipe>.example.com
with DOMAIN, to avoid needing recipe maintainers needing to learn$yet_another_templating
system (the "corrrect"{{ .Domain }}
is different to the syntax needed in configs).But changing
coop-cloud/example#.env.sample
to use the{{
syntax could be fine tooThink we had it some time before but then the code was replacing
<recipe>
in unwanted places e.g. comments in the.env.sample
which was a bit messy... the templating being easier to replace specific things, i.e. warding off bug reports from the other side, replacing too much 😅Sorry, not sure what you mean? Do you mean:
Probably need to document this so people don't have to learn new stuff.
Yes, basically, assuming that
{{ .Domain }}
will be ignored by Gitea during the templating process, otherwise with whatever escaping. The goal would be that after step #2 above, e.g.coop-cloud/dashy#.env.sample
looks like this:DOMAIN={{ .Domain }}
instead of like this:
DOMAIN=dashy.example.com
But, I still prefer my first suggestion, which, to also clarify:
Replacing
<recipe>
, sure, but what about<recipe>.example.com
in its entirety? The existingcoop-cloud/dashy#.env.sample
would work fine, I don't think there are any instances of<recipe>.example.com
except ones we want to replace, it seems<recipe>.example.com
would be clearer to me thanDOMAIN={{ .Domain }}
for non-abra use, and also has the advantage of needing to change fewer recipes¹.¹estimated using:
Ah yeh, that makes a lot of sense @3wordchant! Let's go for
<recipe>.example.com
replacing then!