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

Helm template produces duplicated values if using env and config #242

Open
lobis opened this issue Feb 26, 2025 · 0 comments · May be fixed by #243
Open

Helm template produces duplicated values if using env and config #242

lobis opened this issue Feb 26, 2025 · 0 comments · May be fixed by #243
Assignees
Labels
bug Something isn't working

Comments

@lobis
Copy link
Contributor

lobis commented Feb 26, 2025

Found this issue in the webui chart, but likely is present elsewhere.

When you explicitly add an environment varaible via the additionalEnv:

  - name: RUCIO_WEBUI_RUCIO_HOST
    valueFrom:
      configMapKeyRef:
        name: rucio-hostnames
        key: rucio_server_https

and then define it via the config:

  config:
    webui:
      rucio_host: "rucio-server"

then helm template produces duplicates which results in error (only sometimes? Not sure why it works sometimes when doing a hard sync in argo...).

Even if you don't explicitly set the value in the config, it's using the default value in the chart.

A quick solution would be to remove the value from the chart (maybe setting it as null also works). Just leave it as a comment for documentation purposes.

A more complete solution would be to check for uniqueness in the template code or have a way to remove duplicates (in this case explicit envs should have preference).

@lobis lobis added the bug Something isn't working label Feb 26, 2025
@lobis lobis self-assigned this Feb 26, 2025
@lobis lobis changed the title Helm template produces diplicated values if using env and config Helm template produces duplicated values if using env and config Feb 26, 2025
@lobis lobis moved this from In Progress to In Review in Rucio 37 “Dungeons & Donkeys” release roadmap Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

1 participant