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

fix: mount flyte-secret-auth secret conditionally #4914

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

lowc1012
Copy link
Contributor

@lowc1012 lowc1012 commented Feb 17, 2024

Tracking issue

Closes #4908

Why are the changes needed?

If .Values.secrets.adminOauthClientCredentials.enabled is false in flyte-core chart, some deployments will mount flyte-secret-auth secret even though the secret isn't created.

What changes were proposed in this pull request?

Add conditional brach volume and volumeMount to make creation of secret and volume mount are consistent

How was this patch tested?

Can test it locally via helm template charts/flyte-core

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

Copy link

welcome bot commented Feb 17, 2024

Thank you for opening this pull request! 🙌

These tips will help get your PR across the finish line:

  • Most of the repos have a PR template; if not, fill it out to the best of your knowledge.
  • Sign off your commits (Reference: DCO Guide).

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Feb 17, 2024
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Feb 17, 2024
Copy link
Member

@pingsutw pingsutw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 19, 2024
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (962d458) 58.92% compared to head (c414df3) 58.91%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4914      +/-   ##
==========================================
- Coverage   58.92%   58.91%   -0.02%     
==========================================
  Files         645      645              
  Lines       55380    55380              
==========================================
- Hits        32635    32629       -6     
- Misses      20163    20167       +4     
- Partials     2582     2584       +2     
Flag Coverage Δ
unittests 58.91% <ø> (-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.

@pingsutw pingsutw merged commit 0ec0c25 into flyteorg:master Feb 20, 2024
49 of 50 checks passed
Copy link

welcome bot commented Feb 20, 2024

Congrats on merging your first pull request! 🎉

yubofredwang pushed a commit to yubofredwang/flyte that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Do not mount flyte-secret-auth secret if .Values.secrets.adminOauthClientCredentials.enabled is false.
2 participants