-
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
dsl PipelineParam does not work under Image or Command #521
Comments
We didn't expose the pipelineparam for command or image due to version and sharing reasons. If the command and image are exposed to be configurable during the run time, the behavior of the pipeline would be totally different even if the dsl/yaml is not changed. For example, users of a pipeline could pass in an image that has the same entrypoint but totally different logic. Then this dsl/yaml pipeline definition(description) does not do its job. @qimingj, @Ark-kun, @hongye-sun WDYT? |
We definitely need templateable command. @nikhilsharma93 What use cases do you have for changeable container images? My component vision is that component corresponds to a container entry point. Replacing the image => replacing component. |
+1 on supporting params in command. I can also see params in container image path useful, such as taking a different tag ("dev", "prod"). Since Argo supports it I think we should too. |
@Ark-kun at our company we have an internal software package that we use to fetch images and models, which gets updated frequently enough that it would need an updated docker image to run on. As an example, the way I run a model deployment pipeline is to have a |
+1, I used the V1VolumeMount to add local volume, I want to read parameter what user input from UI. But seems the k8s workflow cannot resolve pipelineparam. Thanks. |
replace the placeholder in the command: #637 |
* Create a onetime script to setup a folder to own the Kubeflow codelab projects * Create a script to be used to bulk move the projects into the folder.
* fix long resource name; * fix python 3.6 test
If I try to pass a
dsl.PipelineParam
to either the image or the command part of a container op, it does not parse it correctly. For instance, if I pass a param calleddeployimage
, it ends up showing as'{{pipelineparam:op=;name=deployimage;value=}}'
in the.yaml
file, whereas it should show up as something like{{inputs.parameters.deployimage}}
, just like it would if it were passed to arguments section of the container op.If uploaded like this to the pipelines UI, I get a json decode error. However, if I manually edit the
.yaml
and change the it to the expected syntax and add ainput
section undercontainer
, it works.Example code to reproduce:
The text was updated successfully, but these errors were encountered: