Skip to content

duplicate MONGO_URL enviroment variable being generated #6289

@rigel-eva

Description

@rigel-eva

I was running into an issue where running this chart without specifying an empty env: value would cause the chart to be nonfunctional. leading to this error:

Error: INSTALLATION FAILED: failed to create resource: failed to create typed patch object (gamedev/israfel-gamedev-wekan; apps/v1, Kind=Deployment): .spec.template.spec.containers[name="wekan"].env: duplicate entries for key [name="MONGO_URL"]

I think the cause is likely tied to lines 33-34 of values.yaml which seems like it's intended to provide an example environment variable but is causing the chart to produce 2 MONGO_URL environment variables for the underlying container.

There might also be an issue with the logic in templates/deployment.yaml where it's not properly detecting that a new MONGO_URL environment variable is set. Unfortunately I'm still a bit of a beginner at helm charting so I am unsure if this is the root cause.

As a workaround I have set up my values like so:

wekan:
  env:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions