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

extend pod customization to include init containers #5685

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

samhita-alla
Copy link
Contributor

@samhita-alla samhita-alla commented Aug 22, 2024

Tracking issue

Why are the changes needed?

Extends pod configuration to include init containers, ensuring that all containers in the pod, including init containers, receive the necessary customizations.

This will be especially useful for the ollama plugin to materialize {{.input}} in the pod template's init container command.

What changes were proposed in this pull request?

Adds a dedicated loop to handle init containers, ensuring that template values are properly materialized for all containers in the pod specification.

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

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
@samhita-alla samhita-alla changed the title apply pod config to init containers extend pod customization to include init containers Aug 22, 2024
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

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

Project coverage is 36.17%. Comparing base (e9413c0) to head (49a0ecd).
Report is 170 commits behind head on master.

Files with missing lines Patch % Lines
...ns/go/tasks/pluginmachinery/flytek8s/pod_helper.go 0.00% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5685      +/-   ##
==========================================
- Coverage   36.17%   36.17%   -0.01%     
==========================================
  Files        1302     1303       +1     
  Lines      109556   109672     +116     
==========================================
+ Hits        39630    39670      +40     
- Misses      65786    65856      +70     
- Partials     4140     4146       +6     
Flag Coverage Δ
unittests-datacatalog 51.37% <ø> (ø)
unittests-flyteadmin 55.28% <ø> (+0.01%) ⬆️
unittests-flytecopilot 12.17% <ø> (ø)
unittests-flytectl 62.17% <ø> (-0.11%) ⬇️
unittests-flyteidl 7.12% <ø> (+0.04%) ⬆️
unittests-flyteplugins 53.35% <0.00%> (+<0.01%) ⬆️
unittests-flytepropeller 41.76% <ø> (+<0.01%) ⬆️
unittests-flytestdlib 55.33% <ø> (ø)

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: Samhita Alla <aallasamhita@gmail.com>
samhita-alla and others added 2 commits August 26, 2024 15:34
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
@eapolinario eapolinario enabled auto-merge (squash) September 3, 2024 20:49
@eapolinario eapolinario merged commit d4db50c into master Sep 3, 2024
48 of 50 checks passed
@eapolinario eapolinario deleted the apply-pod-config-to-init-container branch September 3, 2024 21:06
pmahindrakar-oss pushed a commit that referenced this pull request Sep 9, 2024
* apply pod config to init containers

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* remove container

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* add test

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* Add bool to check init containers

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

---------

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: pmahindrakar-oss <prafulla.mahindrakar@gmail.com>
pmahindrakar-oss pushed a commit that referenced this pull request Sep 9, 2024
* apply pod config to init containers

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* remove container

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* add test

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* Add bool to check init containers

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

---------

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: pmahindrakar-oss <prafulla.mahindrakar@gmail.com>
bgedik pushed a commit to bgedik/flyte that referenced this pull request Sep 12, 2024
* apply pod config to init containers

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* remove container

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* add test

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>

* Add bool to check init containers

Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>

---------

Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
Signed-off-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Co-authored-by: Eduardo Apolinario <eapolinario@users.noreply.github.com>
Signed-off-by: Bugra Gedik <bgedik@gmail.com>
@samhita-alla samhita-alla restored the apply-pod-config-to-init-container branch September 16, 2024 10:31
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