-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Conversation
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. |
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 Once the patch is verified, the new status will be reflected by the 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. |
cf362ca
to
1aa7791
Compare
rebase and update go.mod after #10416 |
/ok-to-test |
There was a problem hiding this 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)
/assign @chensun |
backend/src/v2/driver/driver.go
Outdated
@@ -475,6 +475,12 @@ func extendPodSpecPatch( | |||
podSpec.Containers[0].VolumeMounts = append(podSpec.Containers[0].VolumeMounts, volumeMounts...) | |||
} | |||
|
|||
// Get image pull policy | |||
if kubernetesExecutorConfig.GetImagePullPolicy() != "" { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tomcli Done. Thanks
… ImagePullPolicy. Signed-off-by: Revital Sur <[email protected]>
Signed-off-by: Revital Sur <[email protected]>
Signed-off-by: Revital Sur <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/assign @chensun |
@revit13 Can you please rebase and resolve the conflicts? |
Signed-off-by: Revital Sur <[email protected]>
There was a problem hiding this 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`. |
There was a problem hiding this comment.
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.
[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 |
@revit13: The following tests failed, say
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. |
… 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]>
… 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]>
… 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]>
… 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]>
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.