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

argo submit --dry-run -o yaml to support substituted yaml #1217

Closed
govindKAG opened this issue Feb 14, 2019 · 2 comments
Closed

argo submit --dry-run -o yaml to support substituted yaml #1217

govindKAG opened this issue Feb 14, 2019 · 2 comments
Labels
type/feature Feature request

Comments

@govindKAG
Copy link

I know that argo workflows can be kubectl created directly but if they use things like parameters or loops you have to go through argo cli. I was wondering if there is some way to just render these yaml files with the cli or some other tool so that I can easily kubectl create them later.

@jessesuen
Copy link
Member

No current way. Here are the flags which mutate the workflow spec before submission

      --entrypoint string       override entrypoint
      --generate-name string    override metadata.generateName
      --instanceid string       submit with a specific controller's instance id label
      --name string             override metadata.name
  -p, --parameter stringArray   pass an input parameter
      --priority int32          workflow priority
      --serviceaccount string   run all pods in the workflow using specified serviceaccount

I think what you are looking for is probably a --dry-run flag combined with -o yaml:

argo submit workflow.yaml -p foo=bar --dry-run -o yaml

I think --dry-run for this purpose is a reasonable request.

@jessesuen jessesuen changed the title Is it possible to render a workflow into a kubernetes native yaml file with the cli (or something else)? argo submit --dry-run -o yaml to support substituted yaml Apr 20, 2019
@govindKAG
Copy link
Author

@jessesuen this is exactly what I am looking for.

@tczhao tczhao closed this as completed Oct 5, 2021
icecoffee531 pushed a commit to icecoffee531/argo-workflows that referenced this issue Jan 5, 2022
* Fix: Clean up descriptions, add example and rename configration names for Kafka/SASL argoproj#1217

Signed-off-by: Christopher Buckley <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature Feature request
Projects
None yet
Development

No branches or pull requests

3 participants