question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Elasticsearch: Allow specifying extraContainers as a map

See original GitHub issue

Describe the feature: Currently, the Elasticsearch chart supports specifying extraContainers as a YAML array (or a templatable string for backward compatibility). This is fine for simple use cases, but not convenient if overriding via multiple values files is desired.

This feature request is to additionally support providing extraContainers as a map, which would facilitate overrides through multiple layers of values files.

Describe a specific use case for the feature:

Consider a simple my-values.yaml file:

extraContainers:
- name: do-something
  image: my-image
  command: ['do', 'something']

I want to make use of helm’s file merging to override the image name in subsequent deploy steps using a separate my-values.override.yaml file. Under the current implementation, this will require me to duplicate the entire spec:

extraContainers:
- name: do-something
  image: my-override-image
  command: ['do', 'something']

This repetition is not convenient and will cause a lot of maintenance issues. The proposed implementation would be to allow expressing my-values.yaml like so:

extraContainers:
  something:
    name: do-something
    image: my-image
    command: ['do', 'something']

Which could then be overridden by another my-values.override.yaml:

extraContainers:
  something:
    image: my-override-image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
musabhusainicommented, Nov 5, 2020

Hi @jmlrt,

Thanks for following up. This can be implemented while preserving current behavior. I already have an implementation for this particular use case in a fork. I can take some time to generalize it and convert it to a viable PR.

0reactions
botelastic[bot]commented, Jan 19, 2022

This issue has been automatically closed because it has not had recent activity since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

elasticsearch 7.11.1 · elastic/elastic - Artifact Hub
Official Elastic helm chart for Elasticsearch. ... keystore, Allows you map Kubernetes secrets into the keystore. See the config example and how to...
Read more >
helm-charts/README.md at main - elasticsearch - GitHub
Some cloud providers allow you to specify the loadBalancer IP. If the loadBalancerIP field is not specified, the IP is dynamically assigned. If...
Read more >
Explicit mapping | Elasticsearch Guide [8.5] | Elastic
The following example adds employee-id , a keyword field with an index mapping parameter value of false . This means values for the...
Read more >
Elasticsearch Installation 8.4 - Elastic Discuss
Hi Team, I am trying to install elasticsearch-8.4 version on a centos ... name: config-map # Disable it to use your own elastic-credential ......
Read more >
Mapping | Elasticsearch Guide [8.5] | Elastic
Explicit mapping allows you to precisely choose how to define the mapping definition, such as: Which string fields should be treated as full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found