-
Notifications
You must be signed in to change notification settings - Fork 23
duplicate MONGO_URL enviroment variable being generated #52
Copy link
Copy link
Open
Description
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:Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels