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

[Feature]: Add possibility to specify defaultMode in extraConfigmapMounts #461

Open
pavel-luhin opened this issue Mar 22, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@pavel-luhin
Copy link

pavel-luhin commented Mar 22, 2023

Requirement

As a jaeger helm chart user, I want to pass initial elasticsearch index templates script via configmap.

Problem

Jaeger helm chart does not allow me to specify defaultMode: 0744 to make my script from configMap executable.

Proposal

Add possibility to specify defaultMode in extraConfigmapMounts, to make it look like this:

    extraConfigmapMounts:
      - name: init-script
        mountPath: /opt/script.sh
        subPath: jaeger-elastic-index-templates.sh
        readOnly: true
        configMap: configmap-jaeger-elasticsearch-init-script
        defaultMode: 0744

Open questions

No response

@pavel-luhin pavel-luhin added the enhancement New feature or request label Mar 22, 2023
@pavel-luhin
Copy link
Author

As a temporary workaround it is possible to add this script directly to init container like this

  agent:
    image: jaegertracing/jaeger-agent
    initContainers:
      - name: jaeger_es_index_templates_creator
        image: curlimages/curl:7.87.0
        command: ["/bin/sh"]
        args:
          - '-c'
          - |
            echo "Do script here"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant