Fix ConfigMap name clash if env_file name is equal#2001
Fix ConfigMap name clash if env_file name is equal#2001cdrage merged 3 commits intokubernetes:mainfrom
Conversation
|
Welcome @robertaistleitner! |
809e822 to
4ac66f1
Compare
|
There is probably one more issue I just found: ordering of the environment variables is also incorrect (in docker compose the order of env_files describe the priority of env vars to be applied, which is also the case for Kubernetes as far as I know). |
Please open an issue :) You are right, it's not 1-1 with the spec and it should order it correctly in case one of the env var's overrides another. Either way, thanks for the contribution and once the tests pass, this already LGTM to me. |
cdrage
left a comment
There was a problem hiding this comment.
Sorry for the delay! Just catching up to kompose.
This LGTM, thanks for the awesome contribution! The code is great, there are tests added, and I can confirm on my end it works well with Kubernetes.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage, robertaistleitner The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fixes naming collisions if env files have same filename in different folders.
Which issue(s) this PR fixes:
Fixes #2000
Special notes for your reviewer: