gotemplating in helm chart causes errors with Argo CD deployments #922
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#922
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Hoi and thanks for working on garage!
I wanted to mention that because there is gotemplating in the helm chart's
values.yaml
, it causes complaints when using it in an Argo CD ApplicationSet, because that already uses gotemplating. GitOps solutions for k8s tend to have this issue, so it's recommended that gotemplating stay within the templates directory. I can submit a PR to move the gotemplating back to a the ConfigMap template and then instead create a parameter to use an existing ConfigMap if people still would like to overwrite the configmap directly.Kind regards!
I've added #923
Helm chart updates
New helm parameter,
garage.existingConfigmap
to use an existing ConfigMap for garage.toml:Added some autogenerated docs using helm-docs. It works by processing every comment that starts with
# -- I'm a comment
as a description for the parameter it is directly above. This gives a small chart in a README that users can reference in the same directory as the chart.Changes
Replaces
garage.garage.toml
withgarage.garageTomlString
. You can still use the old feature like this:This also moves all the configuration back to the ConfigMap template file so that no GoTemplating happens in the values.yaml itself.
Nice! I'll take a look at the PR but if there is no breaking changes we should be good to go!