flyte icon indicating copy to clipboard operation
flyte copied to clipboard

[Housekeeping] Refactor flyteadmin config handling

Open katrogan opened this issue 3 years ago • 4 comments

Describe the issue

The entire flyteadmin config handling, in the (note) poorly-named runtime folder is unnecessarily convoluted. Every top-level config block is accessed by a provider, which is an instance of an interface that is all injected as a singleton in the root service and makes the mockability of limited usefulness.

We should just abandon this complexity altogether. Define a config, call GetConfig in one place, and pass along config structs where necessary, instead of the providers, to preserve ease of unit testing.

What if we do not do this?

Adding new config fields continues to stay tedious, new contributors to flyteadmin will be rightfully confused and excess code/unnecessary abstractions usually slows down velocity

Related component(s)

flyteadmin

Are you sure this issue hasn't been raised already?

  • [X] Yes

Have you read the Code of Conduct?

  • [X] Yes

katrogan avatar Mar 25 '22 17:03 katrogan

Hello 👋, This issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will close the issue if we detect no activity in the next 7 days. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar Aug 29 '23 00:08 github-actions[bot]

(fighting the stalebot) we should keep this open :)

katrogan avatar Aug 29 '23 00:08 katrogan

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar May 27 '24 00:05 github-actions[bot]

back here to counteract stalebot

katrogan avatar May 28 '24 22:05 katrogan

Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar Feb 23 '25 00:02 github-actions[bot]

Hello 👋, this issue has been inactive for over 90 days and hasn't received any updates since it was marked as stale. We'll be closing this issue for now, but if you believe this issue is still relevant, please feel free to reopen it. Thank you for your contribution and understanding! 🙏

github-actions[bot] avatar May 14 '25 00:05 github-actions[bot]