-
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(sdk): add PipelineConfig to DSL to re-implement pipeline-level config #11112
feat(sdk): add PipelineConfig to DSL to re-implement pipeline-level config #11112
Conversation
/rerun-all |
f160004
to
c7ba3f6
Compare
@chensun bump to the top of your inbox :) thanks! |
c7ba3f6
to
064c670
Compare
@chensun bump, looking for an ack on the approach and the proto fields :) |
@chensun bumping, can you take a look? |
Sharing the document that @chensun provided in today's KFP Community meeting (agenda, recording) : [External] Notes - Discuss PipelineConfig - Google Docs |
Thanks for discussing this internally. Here are my responses.
Some examples:
I'm fine to put it wherever you all think is best. To clarify, is PlatformSpec the second document at the bottom?
And if so, about where should pipeline-level stuff go? Should it be a sibling of kubernetes? Note that this was my approach in #10942 -- quoting from that
but I (perhaps mistakenly) thought that that was rejected. |
@chensun bumping to the top of your inbox. Can you provide guidance on the spec questions in my previous comment? |
@chensun As we discussed in the last Pipelines WG meeting, we need your inputs about Greg comments. |
Apologize for the slow response.
Correct
In terms of where specifically, pipeline level config doesn't exists yet. I think we may want to add it as a sibling to the deployment_config, which is the component-level: pipelines/api/v2alpha1/pipeline_spec.proto Line 1084 in 8590ec1
This would needs some proper design. |
@chensun confirming what we talked about on the call today. Hypothetically, say we're adding a feature to do both pipeline-level and pod-level TTL configs. We agreed those are not argo-specific or tekton-specific -- they belong in "kubernetes". So they would look like this:
Look right to you? |
Yes! |
064c670
to
33b410a
Compare
33b410a
to
3e3972f
Compare
9525a11
to
88887ba
Compare
KFP v1 supported setting pipeline-level configuration via a `PipelineConf` class. This class was deprecated and no replacement was added to KFP v2. add new PipelineConfig class to support setting pipeline-level configuration in KFP v2. Co-authored-by: Ricardo M. Oliveira <rmartine@redhat.com> Signed-off-by: Greg Sheremeta <gshereme@redhat.com>
88887ba
to
226902b
Compare
/lgtm |
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.
Tested these changes locally and verified these work as expected.
/lgtm
Thanks folks. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HumairAK 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 |
@gregsheremeta I see that this change was merged but nothing was added to the Pipeline level config (sdk/python/kfp/dsl/pipeline_config.py) |
@sridhar1029 I think the ttl configuration flag will be added in this follow-up task #10899 |
Description of your changes:
KFP v1 supported setting pipeline-level configuration via a
PipelineConf
class. This class was deprecated and no replacement was added to KFP v2.Add new PipelineConfig class to support setting pipeline-level configuration in KFP v2.
Note: I discussed this approach with @chensun in the KFP Community meeting on August 14 (agenda, recording). He gave preliminary approval for this approach.
Here's an example of how it would be used.
Followup to #11333.
Checklist: