-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Passing arguments to workflow inside a cronworkflow #3154
Comments
My usual approach is to have the workflow load the input parameters from a file in my artifact repository, which I update when necessary. |
@simster7 FYI |
Nah, it's really just the same as the standard input artifact importing examples, like this one. You have to write a processing step to unpack those variables, and decide what process you want to write to that file (another CronWorkflow, manually-submitted Workflows, uploading directly, etc). |
@samath117 |
I'm not aware of any if S3 artifacts don't work for you. Others probably are better suited to answer that question, though. |
FYI: Opened #3173 to add Azure Blob Storage |
@simster7 @samath117 I created a secret from env file and referred this newly created secret from cronworkflow. It will be helpful if this can be added in the argo documentation |
@alexec is there a design reason behind this not being supported in the CronWorkflow spec? Being able to pass parameters to a WorkflowTemplateRef sounds like a very reasonable way to use a template Example usecases include things like being able to deploy similar CronWorkflows to different environments with different schedules, but then also be able to pass some environment information to the underlying workflow via its parameters |
@omarzouk It is possible to pass in parameters to a |
Yes, but you can't set those parameters from the CLI in |
Ah I see. Yes, that is a reasonable request. Is this what you meant @omarzouk? |
@simster7 I was actually referring to something like this: #2556 (comment)
but I guess this is coming out in 2.9 right? (btw, is there a release date expected for 2.9? I see the milestone has 3 close-able tickets remaining) however being able to pass them in the command line would be a good thing too! Thanks for your quick response! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Summary
How can I pass arguments/parameters to a workflow running in a cronworkflow?
Motivation
I'm working on a scenario where, a workflow which requires input parameters from env file, needs to be scheduled also.
The text was updated successfully, but these errors were encountered: