Support migrator.databaseAuthOverrideEnvVars in sourcegraph-migrator chart job#580
Support migrator.databaseAuthOverrideEnvVars in sourcegraph-migrator chart job#580loujar wants to merge 4 commits into
Conversation
|
@DaedalusG I could use your opinion on this. The user requesting this change also asked if we could include a similar conditional for the
What's the least worst option in your opinion? Maybe we could implement #3 and keep |
|
@loujar I agree with he approach of just broadening the options to hit the migrator job and frontend. Perhaps scoped to override anything using sourcegraph.databaseAuth Its surprising to me that other customers are using this config option since it was mostly introduced for scale testing it looks like: #181 In what scenario can't the connection vars just be set in the values file? Do we expect many users outside of SG team are using this? The repo seems to imply that 2 may actually be most inline with the style conventions of the repo: sourcegraph/sourcegraph-public-snapshot#29063 (comment) |
|
I see why you're torn though, discussed with team a little and now I'm sympathetic to 1 since the frontend is already using the config defined in migrator, also yea, we should never really run migrator differently in different services (or at least I can't think of a case where we'd want that) |
Allowing override of migrator auth ENVs (
.Values.migrator.databaseAuthOverrideEnvVars) in thesourcegraph-migratorchart'ssourcegraph-migratorjob template, consistent with thesourcegraphchart'ssourcegraph-frontendDeploymentmigratorinitContainerhttps://github.com/sourcegraph/deploy-sourcegraph-helm/blob/v5.8.1579/charts/sourcegraph/templates/frontend/sourcegraph-frontend.Deployment.yaml#L57
Checklist
Test plan
CI