Skip to content
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

Merged
merged 2 commits into from
Jan 4, 2022

Conversation

mmiller1
Copy link
Contributor

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.

@clockworksoul clockworksoul self-requested a review December 27, 2021 17:23
@clockworksoul
Copy link
Member

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.

@clockworksoul clockworksoul added the enhancement New feature or request label Dec 27, 2021
@clockworksoul
Copy link
Member

Also, once this merges, I'd be happy to cut a new version into main for you.

@mmiller1
Copy link
Contributor Author

mmiller1 commented Jan 4, 2022

Thanks, I'd appreciate a merge and new revision if being cut, if trivial.

@clockworksoul
Copy link
Member

Can do.

@clockworksoul clockworksoul merged commit b4c0667 into getgort:develop Jan 4, 2022
clockworksoul pushed a commit to clockworksoul/gort that referenced this pull request Jan 4, 2022
…nment (getgort#189)

Allow kubernetes Secrets to be injected into the worker's environment (getgort#189)
clockworksoul added a commit that referenced this pull request Jun 30, 2022
* 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>
clockworksoul added a commit that referenced this pull request Jul 2, 2022
* 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>
clockworksoul added a commit that referenced this pull request Jul 2, 2022
* 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>
clockworksoul added a commit that referenced this pull request Jul 2, 2022
* 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>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants