:wave: Hello, team! As my first question in this c...
# flyte-deployment
s
đź‘‹ Hello, team! As my first question in this channel, I would like to ask what is the best way to override a value in
core.yaml
. I am particularly interested in this line: https://github.com/flyteorg/flyte/blob/ca704e24daad628535a4414e0a7cb1164621105d/charts/flyte-core/values.yaml#L599 I believe it should be
namespace: {{ namespace }}
rather than hard coded
flyte
. Please correct me if I am wrong.
y
hey yeah that won’t work if your flyte installation is not in the
flyte
namespace
i don’t think it’s
{{ namespace }}
though.
if you search that yaml file, you’ll see that used in some of the templates… but those are flyte internal templates.
i think maybe what that should be is
{{ .Release.Namespace }}
but would need to verify
it’s been a while since i’ve messed around with this
s
Gotcha! I was just suspecting that this could cause issues if my namespace is different.
y
yeah it probably will. are you deploying to a different namespace?
s
Yes, Just following some best practices at my company.
s
Ideally this should be templated yes. values.yaml can't be a templated though itself unfortunately until we use some weird tricks. This is an unfortunate limitation of helm.
Another way would be to change the actual template where that value is used.
s
Yes, I was thinking of that. For that, I can just clone the repo?
s
Yes. You can clone and install the chart from the local path. If you get the namespace templating working in your fork please send a PR 🙂
🙏 1
s
Awesome, I will do that. 🙂
162 Views