Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support container args override #44

Merged
merged 1 commit into from
Feb 24, 2022

Conversation

michaellzc
Copy link
Member

@michaellzc michaellzc commented Feb 22, 2022

close sourcegraph/sourcegraph#29063

Test plan

Install a release from the previous commit,

git checkout HEAD~
helm install -n sourcegraph -f charts/sourcegraph/override.yaml sourcegraph charts/sourcegraph/.

Checkout back to the current branch and run helm diff, you should see no breaking change

git checkout 02-22-Support_container_args_override
helm diff -n sourcegraph -f charts/sourcegraph/override.yaml sourcegraph charts/sourcegraph/.

@michaellzc
Copy link
Member Author

michaellzc commented Feb 22, 2022

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Comment on lines +85 to 88
env:
{{- range $name, $item := .Values.redisExporter.env}}
- name: {{ $name }}
{{- $item | toYaml | nindent 10 }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was missing the env:

@michaellzc michaellzc requested review from a team, caugustus-sourcegraph, kevinwojo and mucles and removed request for a team February 22, 2022 22:12
@michaellzc michaellzc marked this pull request as ready for review February 22, 2022 22:15
Copy link
Contributor

@caugustus-sourcegraph caugustus-sourcegraph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! A few containers aren't included in this change - was this intentional? None of them seem likely to be customized and most are quite tricky because they're shared across deployments. Just wanted to confirm it was a deliberate choice.

  • cadvisor
  • jaeger agent (_tracing.tpl)
  • alpine init containers
  • redis exporter containers
  • postgres exporter containers

@michaellzc
Copy link
Member Author

michaellzc commented Feb 22, 2022

Nice! A few containers aren't included in this change - was this intentional? None of them seem likely to be customized and most are quite tricky because they're shared across deployments. Just wanted to confirm it was a deliberate choice.

  • cadvisor
  • jaeger agent (_tracing.tpl)
  • alpine init containers
  • redis exporter containers
  • postgres exporter containers

I definitely missed advisor

For redis exporter, postgres exporter and correct-data-dir-permissions (alpine init containers), we can nest them under the parent services, such as

redisCache:
  redisExporter:
    args: ["stuff"]

for jaeger, probably not worth making it customizable, or we just add a global flag tracingAgent.args

@michaellzc michaellzc force-pushed the Add_migrator_initContainers_to_frontend branch from a9c35a1 to 11fb4ba Compare February 24, 2022 21:02
@michaellzc michaellzc force-pushed the 02-22-Support_container_args_override branch from bfcdc31 to c2cea0e Compare February 24, 2022 21:02
Base automatically changed from Add_migrator_initContainers_to_frontend to main February 24, 2022 21:47
@michaellzc michaellzc force-pushed the 02-22-Support_container_args_override branch from c2cea0e to c279287 Compare February 24, 2022 21:51
@michaellzc michaellzc merged commit 796a6af into main Feb 24, 2022
@michaellzc michaellzc deleted the 02-22-Support_container_args_override branch February 24, 2022 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm chart: allow override for container args
2 participants