Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Allow using in-cluster creds in control plane cluster in a multi-cluster deployment #5403

Merged
merged 2 commits into from
Jun 5, 2024

Conversation

fg91
Copy link
Member

@fg91 fg91 commented May 21, 2024

Why are the changes needed?

When configuring a Flyte multi-cluster deployment, one might want to use the control plane cluster also to schedule workflows.
Currently, flyteadmin is not able to use in-cluster credentials for this use case. Instead, one has to go through the much more cumbersome credentials configuration process required for data plane clusters (see here).

This PR allows flyteadmin to just use in-cluster credentials instead.


As briefly discussed in the last contributors' sync @wild-endeavor.

How was this patch tested?

  • A flyteadmin image with this change has been in use in our multi-cluster deployment.
  • Adapted unit test.

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Docs link

Copy link

codecov bot commented May 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.07%. Comparing base (16d2b14) to head (50892d1).
Report is 159 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5403   +/-   ##
=======================================
  Coverage   61.07%   61.07%           
=======================================
  Files         793      793           
  Lines       51210    51210           
=======================================
+ Hits        31274    31275    +1     
+ Misses      17060    17059    -1     
  Partials     2876     2876           
Flag Coverage Δ
unittests-datacatalog 69.31% <ø> (ø)
unittests-flyteadmin 58.90% <ø> (ø)
unittests-flytecopilot 17.79% <ø> (ø)
unittests-flytectl 67.98% <ø> (ø)
unittests-flyteidl 79.04% <ø> (ø)
unittests-flyteplugins 61.94% <ø> (ø)
unittests-flytepropeller 57.32% <ø> (ø)
unittests-flytestdlib 65.75% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fg91 fg91 requested a review from wild-endeavor May 21, 2024 19:37
@fg91 fg91 merged commit 25c3596 into master Jun 5, 2024
50 checks passed
@fg91 fg91 deleted the fg91/feat/multi-cluster-incluster-creds branch June 5, 2024 21:41
robert-ulbrich-mercedes-benz pushed a commit to robert-ulbrich-mercedes-benz/flyte that referenced this pull request Jul 2, 2024
…i-cluster deployment (flyteorg#5403)

* Allow using in-cluster creds in control plane cluster in multi-cluster deployment

Signed-off-by: Fabio Graetz <[email protected]>

* Check inCluster flag in cluster config test

Signed-off-by: Fabio Graetz <[email protected]>

---------

Signed-off-by: Fabio Graetz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants