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

feat(Backend + SDK): Update kfp backend and kubernetes sdk to support ImagePullPolicy #10417

Merged
merged 5 commits into from
Mar 5, 2024

Conversation

revit13
Copy link
Contributor

@revit13 revit13 commented Jan 21, 2024

Description of your changes:
Part of Part of #9714 and #9980

Update kfp backend and kubernetes sdk to support image pull policy.
To be rebased and update go.mod after #10416

Checklist:

The title for your pull request (PR) should follow our title convention. Learn more about the pull request title convention used in this repository.

Copy link

google-cla bot commented Jan 21, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

Hi @revit13. Thanks for your PR.

I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@revit13 revit13 force-pushed the patch2 branch 2 times, most recently from cf362ca to 1aa7791 Compare January 22, 2024 08:28
@Tomcli
Copy link
Member

Tomcli commented Jan 22, 2024

rebase and update go.mod after #10416

@Tomcli
Copy link
Member

Tomcli commented Feb 7, 2024

/ok-to-test

Copy link
Member

@Tomcli Tomcli left a comment

Choose a reason for hiding this comment

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

@revit13 Can you update the go.mod and the related files like in this PR? Thanks.
#10427 (review)

@zijianjoy
Copy link
Collaborator

/assign @chensun
/assign @connor-mccarthy

@@ -475,6 +475,12 @@ func extendPodSpecPatch(
podSpec.Containers[0].VolumeMounts = append(podSpec.Containers[0].VolumeMounts, volumeMounts...)
}

// Get image pull policy
if kubernetesExecutorConfig.GetImagePullPolicy() != "" {
Copy link
Member

@Tomcli Tomcli Feb 12, 2024

Choose a reason for hiding this comment

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

Maybe we can also set kubernetesExecutorConfig.GetImagePullPolicy() as a variable, then check whether the value is one of ['Always', 'Never', 'IfNotPresent']?

There could be a case where someone can compose the IR without the SDK, so we also want to check the value is valid before passing into the pod spec. If the value is not valid, we should raise an error instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Tomcli Done. Thanks

Signed-off-by: Revital Sur <[email protected]>
Signed-off-by: Revital Sur <[email protected]>
Copy link
Member

@Tomcli Tomcli left a comment

Choose a reason for hiding this comment

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

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Feb 26, 2024
@Tomcli
Copy link
Member

Tomcli commented Feb 26, 2024

/assign @chensun

@chensun
Copy link
Member

chensun commented Mar 5, 2024

@revit13 Can you please rebase and resolve the conflicts?

@google-oss-prow google-oss-prow bot removed the lgtm label Mar 5, 2024
Signed-off-by: Revital Sur <[email protected]>
@revit13
Copy link
Contributor Author

revit13 commented Mar 5, 2024

@revit13 Can you please rebase and resolve the conflicts?

@chensun Done, Thanks

Copy link
Member

@chensun chensun left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve


Args:
task: Pipeline task.
policy: One of `Always`, `Never`, `IfNotPresent`.
Copy link
Member

Choose a reason for hiding this comment

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

nit: using enum could be less error-prone, and also works with IDE code auto-complete. No strong preference though.

@google-oss-prow google-oss-prow bot added the lgtm label Mar 5, 2024
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chensun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

@revit13: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
kubeflow-pipelines-samples-v2 09fbe3e link false /test kubeflow-pipelines-samples-v2
kfp-kubernetes-execution-tests 09fbe3e link false /test kfp-kubernetes-execution-tests

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@google-oss-prow google-oss-prow bot merged commit 83cabab into kubeflow:master Mar 5, 2024
12 of 14 checks passed
petethegreat pushed a commit to petethegreat/pipelines that referenced this pull request Mar 27, 2024
… ImagePullPolicy (kubeflow#10417)

* feat(Backend + SDK): Update kfp backend and kubernetes sdk to support ImagePullPolicy.

Signed-off-by: Revital Sur <[email protected]>

* Fix format.

Signed-off-by: Revital Sur <[email protected]>

* Update apiserver.csv.

Signed-off-by: Revital Sur <[email protected]>

* Update licenses.

Signed-off-by: Revital Sur <[email protected]>

---------

Signed-off-by: Revital Sur <[email protected]>
rimolive pushed a commit to rimolive/data-science-pipelines that referenced this pull request Mar 28, 2024
… ImagePullPolicy (kubeflow#10417)

* feat(Backend + SDK): Update kfp backend and kubernetes sdk to support ImagePullPolicy.

Signed-off-by: Revital Sur <[email protected]>

* Fix format.

Signed-off-by: Revital Sur <[email protected]>

* Update apiserver.csv.

Signed-off-by: Revital Sur <[email protected]>

* Update licenses.

Signed-off-by: Revital Sur <[email protected]>

---------

Signed-off-by: Revital Sur <[email protected]>
petethegreat pushed a commit to petethegreat/pipelines that referenced this pull request Mar 29, 2024
… ImagePullPolicy (kubeflow#10417)

* feat(Backend + SDK): Update kfp backend and kubernetes sdk to support ImagePullPolicy.

Signed-off-by: Revital Sur <[email protected]>

* Fix format.

Signed-off-by: Revital Sur <[email protected]>

* Update apiserver.csv.

Signed-off-by: Revital Sur <[email protected]>

* Update licenses.

Signed-off-by: Revital Sur <[email protected]>

---------

Signed-off-by: Revital Sur <[email protected]>
VaniHaripriya pushed a commit to VaniHaripriya/data-science-pipelines that referenced this pull request Sep 23, 2024
… ImagePullPolicy (kubeflow#10417)

* feat(Backend + SDK): Update kfp backend and kubernetes sdk to support ImagePullPolicy.

Signed-off-by: Revital Sur <[email protected]>

* Fix format.

Signed-off-by: Revital Sur <[email protected]>

* Update apiserver.csv.

Signed-off-by: Revital Sur <[email protected]>

* Update licenses.

Signed-off-by: Revital Sur <[email protected]>

---------

Signed-off-by: Revital Sur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants