helm chart - overriding default values for router #4934
Replies: 3 comments
-
cross listing issue #4781 |
Beta Was this translation helpful? Give feedback.
-
Hi @dan-catalano-vc Thanks for starting this discussion. aside: I wasn't a fan of making the router run in The main problem with making the changes that you propose is that they are incompatible. This would require us to make a major revision of the helm chart so that existing users (who rely on, for instance, The good news is that I think you can achieve your goals without requiring changes to the router helm chart. We use the router chart as a subchart and we have multiple To remove
In the above, we have a chart (in-house-router), which has various dev,staging,prod yaml files and the sub-chart configuration is under the first Here's an example command that we run to template out the chart and make sure we are seeing the right thing:
You can see we are just specifying our Is that helpful? |
Beta Was this translation helpful? Give feedback.
-
I'm closing this since there's been no activity for almost 3 months. |
Beta Was this translation helpful? Give feedback.
-
I am reluctant to open a ticket, as I think this might be best for a discussion. Mainly because I might be missing something that was done intentionally.
I've been working through the Deploy to Kubernetes documentation as well as the Configuring the Apollo Router documentation. I noticed the docs under Command-line options said, "Where indicated, some of these options can also be provided via an environment variable. If an option is provided both ways, the command-line value takes precedence." This makes sense and follows standard practice.
The problem being experience is that there is no way to override passing in the
--config
argument (or for that matter--hot-reload
), as one is defined in the default values.yaml file and the other in the deployment.yaml template. This is because.Values.router.configuration
is always populated as a result of the defaultvalues.yaml
file. Furthermore, it appears there is no way to completely override (set to null) the.Values.router
or.Values.router.configuration
values without causing a Helm error (or having no effect).Onto why this is an issue. We could definitely put all of our configuration inline under
.Values.router.configuration
, I believe it'd work. But the intent is to use multiple layers ofvalues.yaml
files for our different environments' configuration and as such, it'd be best if could use multiplevalues.yaml
without having to completely duplicate the router config. Lastly, if we didn't want to use--hot-reload
, it appears there is no way to remove that argument.Thank you for your time. Happy to contribute to the project to fix this issue if it appears to be a defect. Cheers.
Beta Was this translation helpful? Give feedback.
All reactions