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

Upstream Using InMemory token cache for admin clientset in propeller #5621

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

pvditt
Copy link
Contributor

@pvditt pvditt commented Aug 2, 2024

Why are the changes needed?

This is an upstream of a fix that caused a panic in our fork. The source of the panic is the nil value set for tokenCache when propeller is making the auth interceptor.

Something misleading is happening here though... this panic'ing auth interceptor is not actually being used. These dial options are being returned up to the authOpts variable here. These authOpts are then only used when talking to data catalog. Data catalog is typically not authenticated, so this panic doesn't happen.

The actual auth interceptor that is being used by propeller is here, in the main client builder code. This one is proactively set to a TokenCacheInMemory if nil which is why we don't see any panics.

This is still good to have however. So let's get this in.

What changes were proposed in this pull request?

How was this patch tested?

Setup process

Screenshots

Check all the applicable boxes

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

Related PRs

Docs link

…#299)

* Using InMmeory token cache for admin clientset in propeller

* pass cache to auth interceptor

Signed-off-by: Paul Dittamo <[email protected]>
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 36.29%. Comparing base (45e287a) to head (4abfbc7).
Report is 175 commits behind head on master.

Files with missing lines Patch % Lines
flytepropeller/pkg/controller/controller.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5621      +/-   ##
==========================================
+ Coverage   36.17%   36.29%   +0.12%     
==========================================
  Files        1302     1302              
  Lines      109405   109666     +261     
==========================================
+ Hits        39575    39808     +233     
- Misses      65694    65705      +11     
- Partials     4136     4153      +17     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.53% <ø> (+0.21%) ⬆️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.28% <ø> (ø)
unittests-flyteidl 7.09% <ø> (ø)
unittests-flyteplugins 53.31% <ø> (ø)
unittests-flytepropeller 41.89% <0.00%> (+0.16%) ⬆️
unittests-flytestdlib 55.75% <ø> (+0.48%) ⬆️

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.


🚨 Try these New Features:

@wild-endeavor wild-endeavor enabled auto-merge (squash) August 20, 2024 22:58
@wild-endeavor wild-endeavor merged commit 705bc04 into master Aug 20, 2024
94 of 96 checks passed
@wild-endeavor wild-endeavor deleted the upstream-fix-propeller-nil-cache branch August 20, 2024 23:19
pmahindrakar-oss added a commit that referenced this pull request Sep 9, 2024
…#299) (#5621)

Signed-off-by: Paul Dittamo <[email protected]>
Co-authored-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: pmahindrakar-oss <[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.

3 participants