https://flyte.org logo
#flyte-deployment
Title
# flyte-deployment
s

Shahwar Saleem

06/23/2022, 5:50 PM
👋 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

Yee

06/23/2022, 9:32 PM
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

Shahwar Saleem

06/23/2022, 9:33 PM
Gotcha! I was just suspecting that this could cause issues if my namespace is different.
y

Yee

06/23/2022, 9:34 PM
yeah it probably will. are you deploying to a different namespace?
s

Shahwar Saleem

06/23/2022, 9:39 PM
Yes, Just following some best practices at my company.
s

Sören Brunk

06/24/2022, 8:58 AM
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

Shahwar Saleem

06/24/2022, 2:27 PM
Yes, I was thinking of that. For that, I can just clone the repo?
s

Sören Brunk

06/24/2022, 2:32 PM
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

Shahwar Saleem

06/24/2022, 2:33 PM
Awesome, I will do that. 🙂
3 Views