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

Add pod template support for init containers #5750

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

Sovietaced
Copy link
Contributor

@Sovietaced Sovietaced commented Sep 15, 2024

Tracking issue

Closes #5734

Why are the changes needed?

In some cases it can be advantageous to apply pod templates to init containers like the copilot init container that downloads metadata.

What changes were proposed in this pull request?

Updates copilot.go to return the name of the generated init container for plumbing and then also updates pod_helper.go to merge pod templates fields into init containers.

How was this patch tested?

See unit tests.

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

Copy link

codecov bot commented Sep 15, 2024

Codecov Report

Attention: Patch coverage is 74.41860% with 11 lines in your changes missing coverage. Please review.

Project coverage is 36.23%. Comparing base (59bf191) to head (477af19).
Report is 61 commits behind head on master.

Files with missing lines Patch % Lines
...ns/go/tasks/pluginmachinery/flytek8s/pod_helper.go 79.41% 5 Missing and 2 partials ⚠️
...ugins/go/tasks/pluginmachinery/flytek8s/copilot.go 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5750      +/-   ##
==========================================
+ Coverage   36.21%   36.23%   +0.02%     
==========================================
  Files        1303     1303              
  Lines      109644   109674      +30     
==========================================
+ Hits        39710    39744      +34     
+ Misses      65810    65804       -6     
- Partials     4124     4126       +2     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.63% <ø> (+0.03%) ⬆️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.26% <ø> (+0.04%) ⬆️
unittests-flyteidl 7.12% <ø> (ø)
unittests-flyteplugins 53.41% <74.41%> (+0.06%) ⬆️
unittests-flytepropeller 41.75% <ø> (ø)
unittests-flytestdlib 55.21% <ø> (ø)

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.

Signed-off-by: Jason Parraga <[email protected]>
Signed-off-by: Jason Parraga <[email protected]>
@Sovietaced Sovietaced marked this pull request as ready for review September 15, 2024 23:18
@neverett
Copy link
Contributor

@eapolinario not sure why only Peeter and I were the only ones pinged for review on this, but it seems like someone from Devex should probably review the code changes, so I added you -- feel free to tag someone else in!

@Sovietaced
Copy link
Contributor Author

@eapolinario this should be good for review

@eapolinario eapolinario merged commit ffd72a0 into flyteorg:master Oct 24, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Core feature] Pod Template support for init containers (ie. copilot)
3 participants