-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
WIP: allow kubernetes Secrets to be injected into the worker's environment #189
Conversation
Thanks for this PR! Apologies for not looking at it sooner: the real-life job, holidays, and a little case of the COVID have slowed me down a bit. I'm absolutely not opposed to merging this almost as-is (barring the trivial casing request). It may be uprooted by the dynamic configuration changes I'm working on right now, but then again it's perfectly possible that it could stick around! The future is unclear. Also, I think you got some bonus functionality out of this as well: I don't think that the in-memory DAL implementation actually needs any additional logic. This should work as-is for that as well. |
Also, once this merges, I'd be happy to cut a new version into main for you. |
Thanks, I'd appreciate a merge and new revision if being cut, if trivial. |
Can do. |
…nment (getgort#189) Allow kubernetes Secrets to be injected into the worker's environment (getgort#189)
* Update TODO * Minor: command help output formatting (#200) Fix help output formatting for various commands. * WIP: allow kubernetes Secrets to be injected into the worker's environment (#189) Allow kubernetes Secrets to be injected into the worker's environment (#189) * Rename config.IsDefined to simply config.Defined (#206) * Fix for Postgres connection leak bug (#208) * Fix for database creation bug (#183) * Upgrade Go version and dependencies * Version fix * Ignore VS Code workspaces * Oops * Bump version in Github Actions for parity with mod file * Rm accidental file Co-authored-by: Matthew Titmus <mtitmus@yext.com> Co-authored-by: Matt Miller <msm93v2@gmail.com>
* Update TODO * Minor: command help output formatting (#200) Fix help output formatting for various commands. * WIP: allow kubernetes Secrets to be injected into the worker's environment (#189) Allow kubernetes Secrets to be injected into the worker's environment (#189) * Rename config.IsDefined to simply config.Defined (#206) * Fix for Postgres connection leak bug (#208) * Fix for database creation bug (#183) * Ignore VS Code workspaces * Oops Co-authored-by: Matthew Titmus <mtitmus@yext.com> Co-authored-by: Matt Miller <msm93v2@gmail.com>
* Update TODO * Minor: command help output formatting (#200) Fix help output formatting for various commands. * WIP: allow kubernetes Secrets to be injected into the worker's environment (#189) Allow kubernetes Secrets to be injected into the worker's environment (#189) * Rename config.IsDefined to simply config.Defined (#206) * Fix for Postgres connection leak bug (#208) * Fix for database creation bug (#183) * Ignore VS Code workspaces * Oops * Minor: make slice definitions idiomatic * Restore one declaration to prevent nil returns Co-authored-by: Matthew Titmus <mtitmus@yext.com> Co-authored-by: Matt Miller <msm93v2@gmail.com>
* Update TODO * Minor: command help output formatting (#200) Fix help output formatting for various commands. * WIP: allow kubernetes Secrets to be injected into the worker's environment (#189) Allow kubernetes Secrets to be injected into the worker's environment (#189) * Rename config.IsDefined to simply config.Defined (#206) * Fix for Postgres connection leak bug (#208) * Fix for database creation bug (#183) * Ignore VS Code workspaces * Oops Co-authored-by: Matthew Titmus <mtitmus@yext.com> Co-authored-by: Matt Miller <msm93v2@gmail.com>
As stated, this should probably be considered a WIP, it's only been implemented for postgres, and ideally it would let you 1) mount multiple secrets into the environment, and 2) mount Secrets into the worker's filesystem. this currently provides the functionality I need to use this bot in a more production'y manor right now, but I may circle back to do more work on it if time allows, and if it's not the totally wrong direction for this kind of thing that folks have envisioned for the project.