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

keep EnvFrom from pod template #5423

Merged
merged 4 commits into from
Jun 21, 2024

Conversation

flixr
Copy link
Contributor

@flixr flixr commented May 28, 2024

not complete nor tested, just as hint for potential fix for regression in #4969

Tracking issue

#5422

Why are the changes needed?

fix regression

What changes were proposed in this pull request?

Try to keep the envFrom provided e.g. via pod template and just add the default-env-from-secrets instead of overwriting them.

How was this patch tested?

incomplete not tested yet

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

not complete nor tested, just as hint for potential fix for regression
in flyteorg#4969
@flixr
Copy link
Contributor Author

flixr commented May 28, 2024

FYI @eapolinario @neilisaur

Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.16%. Comparing base (f87a049) to head (489ed0d).

Current head 489ed0d differs from pull request most recent head cbc1b06

Please upload reports for the commit cbc1b06 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5423      +/-   ##
==========================================
+ Coverage   61.00%   62.16%   +1.16%     
==========================================
  Files         794      381     -413     
  Lines       51442    23362   -28080     
==========================================
- Hits        31380    14524   -16856     
+ Misses      17168     7492    -9676     
+ Partials     2894     1346    -1548     
Flag Coverage Δ
unittests-datacatalog 69.31% <ø> (ø)
unittests-flyteadmin 58.90% <ø> (+0.19%) ⬆️
unittests-flytecopilot 17.79% <ø> (ø)
unittests-flytectl 68.31% <ø> (+0.27%) ⬆️
unittests-flyteidl 79.30% <ø> (+0.25%) ⬆️
unittests-flyteplugins ?
unittests-flytepropeller ?
unittests-flytestdlib ?

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.

@eapolinario
Copy link
Contributor

working on this now. Will update the PR with tests.

Signed-off-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
@eapolinario
Copy link
Contributor

I validated that this works in a real Flyte deployment (both configmap and secrets are injected as env vars into the task pods).

@eapolinario eapolinario merged commit c10346d into flyteorg:master Jun 21, 2024
48 checks passed
@flixr flixr deleted the keep_envfrom_from_pod_template branch June 21, 2024 07:47
@flixr
Copy link
Contributor Author

flixr commented Jun 21, 2024

Thanks @eapolinario !

robert-ulbrich-mercedes-benz pushed a commit to robert-ulbrich-mercedes-benz/flyte that referenced this pull request Jul 2, 2024
* keep EnvFrom from pod template

not complete nor tested, just as hint for potential fix for regression
in flyteorg#4969

* Add test and fix build error

Signed-off-by: Eduardo Apolinario <[email protected]>

* Fix test

Signed-off-by: Eduardo Apolinario <[email protected]>

---------

Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
vlibov pushed a commit to vlibov/flyte that referenced this pull request Aug 16, 2024
* keep EnvFrom from pod template

not complete nor tested, just as hint for potential fix for regression
in flyteorg#4969

* Add test and fix build error

Signed-off-by: Eduardo Apolinario <[email protected]>

* Fix test

Signed-off-by: Eduardo Apolinario <[email protected]>

---------

Signed-off-by: Eduardo Apolinario <[email protected]>
Co-authored-by: Eduardo Apolinario <[email protected]>
Signed-off-by: Vladyslav Libov <[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