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

return self for container op initialization methods to allow chaining the construction #313

Merged
merged 4 commits into from
Nov 20, 2018

Conversation

IronPan
Copy link
Member

@IronPan IronPan commented Nov 19, 2018

Please see test cases for examples how this would look like.


This change is Reviewable

@IronPan IronPan changed the base branch from master to yangpa/add November 19, 2018 21:33
@IronPan IronPan changed the base branch from yangpa/add to master November 19, 2018 23:50
@IronPan
Copy link
Member Author

IronPan commented Nov 19, 2018

/assign @Ark-kun

@IronPan
Copy link
Member Author

IronPan commented Nov 19, 2018

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

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

1 similar comment
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

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

@@ -36,11 +36,11 @@ def test_operator_to_template(self):
msg2 = dsl.PipelineParam('msg2', value='value2')
op = dsl.ContainerOp(name='echo', image='image', command=['sh', '-c'],
arguments=['echo %s %s | tee /tmp/message.txt' % (msg1, msg2)],
file_outputs={'merged': '/tmp/message.txt'})
op.add_volume_mount(k8s_client.V1VolumeMount(
file_outputs={'merged': '/tmp/message.txt'}). \
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: It might look better if you move the dot to the next line (here and everywhere).

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@Ark-kun
Copy link
Contributor

Ark-kun commented Nov 19, 2018

/lgtm

@IronPan
Copy link
Member Author

IronPan commented Nov 20, 2018

/assign @gaoning777

@gaoning777
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit f28a989 into master Nov 20, 2018
@IronPan IronPan deleted the yangpa/chaim branch December 10, 2018 22:26
Linchin pushed a commit to Linchin/pipelines that referenced this pull request Apr 11, 2023
* take snapshot with branch names

* checkout with branch

* add head cron yaml

* update args

* add deploy-cron-v0-4.yaml

* remove comment

* add comment

* rename
HumairAK pushed a commit to red-hat-data-services/data-science-pipelines that referenced this pull request Mar 11, 2024
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.

4 participants