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

SDK - Fixed the non-string items in the command-line arguments #1197

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Apr 22, 2019

Fixes #1121
When you pass non-string arguments to the ContainerOp.command, they're passed as such to the resulting Argo workflow which then cannot be loaded in back-end due to the item types.
This PR ensures the items are converted to string.

We should probably also stop supporting non-list command type.


This change is Reviewable

@gaoning777
Copy link
Contributor

/lgtm

Fixes a bug discovered by Makoto.
When you pass non-string arguments to the ContainerOp.command, they're passed as such to the resulting Argo workflow which then cannot be loaded in back-end due to the item types.
This PR ensures the items are converted to string.
It wasn't used anywhere.
@Ark-kun Ark-kun force-pushed the SDK---Fixed-the-non-string-items-if-the-command-line-arguments branch from 6df45cd to 39e3509 Compare April 25, 2019 19:46
@k8s-ci-robot k8s-ci-robot removed the lgtm label Apr 25, 2019
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Apr 25, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

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: Ark-kun

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

@gaoning777
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit b0147bd into kubeflow:master Apr 26, 2019
@Ark-kun Ark-kun deleted the SDK---Fixed-the-non-string-items-if-the-command-line-arguments branch April 26, 2019 01:19
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.

Pipeline submission fails when ContainerOp has numbers as command line arguments
4 participants