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

Flyte-core add missing imagePullSecrets support #4810

Conversation

ddl-ebrown
Copy link
Contributor

@ddl-ebrown ddl-ebrown commented Feb 1, 2024

  • The console doesn't have / need a ServiceAccount, but it still needs credentials to be able to pull image from secured registries

    Add a new imagePullSecrets value for that

  • The webhook ServiceAccount didn't have the correct imagePullSecrets set, so similarly could not pull images from security registries. Use the propeller settings

Tracking issue

https://github.com/flyteorg/flyte/issues/

Why are the changes needed?

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

 - The console doesn't have / need a ServiceAccount, but it still needs
   credentials to be able to pull image from security registries

   Add a new imagePullSecrets value for that

 - The webhook ServiceAccount didn't have the correct imagePullSecrets
   set, so similarly could not pull images from security registries.
   Use the propeller settings

Signed-off-by: ddl-ebrown <[email protected]>
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request labels Feb 1, 2024
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2794894) 58.98% compared to head (f22e627) 76.69%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #4810       +/-   ##
===========================================
+ Coverage   58.98%   76.69%   +17.71%     
===========================================
  Files         644       18      -626     
  Lines       55145     1515    -53630     
===========================================
- Hits        32527     1162    -31365     
+ Misses      20046      289    -19757     
+ Partials     2572       64     -2508     
Flag Coverage Δ
unittests 76.69% <ø> (+17.71%) ⬆️

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.

@ddl-ebrown
Copy link
Contributor Author

@davidmirror-ops this one should be a pretty straightforward bugfix

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 5, 2024
@@ -18,6 +18,10 @@ spec:
{{- end }}
labels: {{ include "flyteconsole.podLabels" . | nindent 8 }}
spec:
{{- with .Values.flyteconsole.imagePullSecrets }}
imagePullSecrets:
Copy link
Contributor

Choose a reason for hiding this comment

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

While I don't see this to be the most common scenario (hosting the flyteconsole image on a secured registry) I see it could be the case for more security-aware environments.

Copy link
Contributor

@davidmirror-ops davidmirror-ops left a comment

Choose a reason for hiding this comment

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

Thank you!

@davidmirror-ops davidmirror-ops merged commit 2a120f4 into flyteorg:master Feb 5, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request 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.

3 participants