fix: Add namespace to templates#138
Conversation
|
@dbirks I'm not sure if I can follow. Wenn I install the chart into a namespace all resources are created in that respective namespace. |
|
I was able to produce the issue by install the helm chart using terraform helm_release resource. For more info see bug #261 |
|
A very belated response from me here, sorry about that. Seeing the other issue mentioned here about the Terraform I think it's not required by any means, but just convention, to put the namespace in all the templated resources the chart makes. We can kinda see that by looking at the subcharts that langfuse pulls in, as they all have it defined. So yes right it looks like |
|
@dbirks @devopstechpro Thank you both for the additional input and the clarification. |
Thanks for this chart! I was running it, and noticed that the namespace I was specifying with
-n foowas only taking effect in the subcharts. Adding it to the other templates here to apply everywhere.Testing
Before
The current behavior should add the namespace 39 times:
After
Then after checking out this branch, the same command should show 44:
Important
Add namespace specification to all templates in the Helm chart for consistent namespace application.
namespace: {{ $.Release.Namespace }}to metadata iningress.yaml,nextauth-secret.yaml, andpostgresql-secret.yaml.namespace: {{ $.Release.Namespace }}to metadata inserviceaccount.yaml,web/deployment.yaml, andweb/hpa.yaml.namespace: {{ $.Release.Namespace }}to metadata inweb/scaled-object.yaml,web/service.yaml, andweb/vpa.yaml.namespace: {{ $.Release.Namespace }}to metadata inworker/deployment.yaml,worker/hpa.yaml, andworker/scaled-object.yaml.namespace: {{ $.Release.Namespace }}to metadata inworker/vpa.yaml.helm template -n foo -f values.lint.yaml . | grep namespace | wc -lreturns 39.helm template -n foo -f values.lint.yaml . | grep namespace | wc -lreturns 44.This description was created by
for 577fb62. You can customize this summary. It will automatically update as commits are pushed.