{"action":"opened","issue":{"url":"https://api.github.com/repos/argoproj/argo/issues/524","repository_url":"https://api.github.com/repos/argoproj/argo","labels_url":"https://api.github.com/repos/argoproj/argo/issues/524/labels{/name}","comments_url":"https://api.github.com/repos/argoproj/argo/issues/524/comments","events_url":"https://api.github.com/repos/argoproj/argo/issues/524/events","html_url":"https://github.com/argoproj/argo/issues/524","id":278723607,"number":524,"title":"Ability to pass artifacts from CLI","user":{"login":"jessesuen","id":12677113,"avatar_url":"https://avatars0.githubusercontent.com/u/12677113?v=4","gravatar_id":"","url":"https://api.github.com/users/jessesuen","html_url":"https://github.com/jessesuen","followers_url":"https://api.github.com/users/jessesuen/followers","following_url":"https://api.github.com/users/jessesuen/following{/other_user}","gists_url":"https://api.github.com/users/jessesuen/gists{/gist_id}","starred_url":"https://api.github.com/users/jessesuen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessesuen/subscriptions","organizations_url":"https://api.github.com/users/jessesuen/orgs","repos_url":"https://api.github.com/users/jessesuen/repos","events_url":"https://api.github.com/users/jessesuen/events{/privacy}","received_events_url":"https://api.github.com/users/jessesuen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/argoproj/argo/milestones/4","html_url":"https://github.com/argoproj/argo/milestone/4","labels_url":"https://api.github.com/repos/argoproj/argo/milestones/4/labels","id":2949603,"number":4,"title":"M13","description":null,"creator":{"login":"pratulw","id":17885959,"avatar_url":"https://avatars1.githubusercontent.com/u/17885959?v=4","gravatar_id":"","url":"https://api.github.com/users/pratulw","html_url":"https://github.com/pratulw","followers_url":"https://api.github.com/users/pratulw/followers","following_url":"https://api.github.com/users/pratulw/following{/other_user}","gists_url":"https://api.github.com/users/pratulw/gists{/gist_id}","starred_url":"https://api.github.com/users/pratulw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pratulw/subscriptions","organizations_url":"https://api.github.com/users/pratulw/orgs","repos_url":"https://api.github.com/users/pratulw/repos","events_url":"https://api.github.com/users/pratulw/events{/privacy}","received_events_url":"https://api.github.com/users/pratulw/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2017-11-30T18:25:07Z","updated_at":"2017-12-02T22:29:32Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-12-02T22:29:32Z","updated_at":"2017-12-02T22:29:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In the same manner which we can pass parameters to workflows, users should also be able to pass the location of an artifact as an argument. One use case is for submitting workflows using artifacts from a previous run (e.g. resubmit).\r\n\r\nArtifact locations are structured data, so it is not as straightforward as key=value like it is with parameters. But we may be able to handle artifacts which have shorthand URLS and infer the datastructure from the URL. For example:\r\n\r\n```\r\n$ argo submit workflow.yaml -a myart=s3://mybucket.endpoint.com/path/to/art.tgz\r\n\r\n$ argo submit workflow.yaml -a myart=https://storage.googleapis.com/kubernetes-release/release/v1.8.0/bin/linux/amd64/kubectl\r\n```\r\n\r\nIn the S3 case, the URL does not incorporate credentials, so we would have to be special logic to somehow fill in the s3 credentials, possibly from the controller configmap.\r\n\r\nAlternatively the entire artifact datstructure itself could be specified as json:\r\n\r\n```\r\n$ argo submit workflow.yaml -a myart=json='{\"s3\":{\"bucket\":\"mybucket\",\"endpoint\":\"endpoint.com\",\"key\":\"path/to/art.tgz\"}'\r\n```"}}
{"actor":{"display_login":"jessesuen"}}