Add mapping between values key and names used for multi-word resources#94
Add mapping between values key and names used for multi-word resources#94caugustus-sourcegraph wants to merge 1 commit into
Conversation
|
I ran into a similar problem in #52 (comment) deploy-sourcegraph-helm/charts/sourcegraph/templates/_helpers.tpl Lines 41 to 46 in 1a6d3ab What's your thought on introducing another breaking change? e.g., we rename the values If not, I think we should update |
|
@michaellzc Actually I realized I'm dumb for introducing a new variable - couldn't we just prepopulate |
🙃 I was dumb too. Yes! |
|
Great work everyone, we discovered this is a bad idea |
Goal: I need to be able to reference the auto-generated database secret by name. The secret name is hardcoded (which is not ideal) but even if it were generated, the same problem would occur (example: we would still need to be able to predict the
"codeintel-db"section of this line).My untested hack to use
snakecase $serviceto convertcodeIntelDBtocodeintel-dbdidn't work (it producescode-intel-db, of course).This approach is pretty much me admitting defeat: I can't think of a better way to map codeIntelDB to codeintel-db. It's a little goofy putting this mapping into the values.yaml since it's not intended to be customized, but maybe leaving it in un-documented will be sufficient?
Checklist
Test plan
A followup PR actually generates the correct secret references