mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-20 23:01:43 -05:00
[PR #955] [MERGED] Add track option for Additional Env Files #6840
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/955
Author: @ChanningHe
Created: 11/3/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @mbecker20
Base:
2.0.0← Head:additional-env-files-track-option📝 Commits (1)
e44828aAdd track option for Additional Env Files📊 Changes
6 files changed (+6950 additions, -6915 deletions)
View changed files
📝
bin/periphery/src/api/compose/helpers.rs(+9 -12)📝
bin/periphery/src/api/compose/mod.rs(+1 -1)📝
client/core/rs/src/entities/stack.rs(+97 -13)📝
client/core/ts/src/types.ts(+17 -1)📝
frontend/public/client/types.d.ts(+6744 -6875)📝
frontend/src/components/resources/stack/config.tsx(+82 -13)📄 Description
Problem
When using Additional Env Files with Stack resources, Komodo always attempts to read and validate these files. This causes issues when files don't exist in the repository until deployment time (e.g., files decrypted by SOPS to
/dev/shm/during Pre Deploy).The UI would throw errors trying to read non-existent files, and potentially interfere with git operations.
Solution
Added an optional
trackfield toAdditionalEnvFileconfiguration:track: true(default): Komodo manages the filetrack: false: File is only passed to docker compose via--env-file, no UI managementNotes
I'm not very familiar with Rust, and this codebase has significant complexity. If there are any issues, potential breakages, or better approaches to solve this problem, please let me know - feedback and suggestions are very welcome!
Testing
all_file_paths()orall_file_dependencies()--env-file🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.