Skip to content

Commit 05aa7b1

Browse files
Add "Export all workflows"
1 parent c35fb42 commit 05aa7b1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,20 @@ This recipe does the following:
439439
cortex catalog descriptor -y -t ${entity} | yq "with(.info.x-cortex-owners[]; select(.type | downcase == \"group\") | select(.provider == null) | .provider = \"${provider}\" )" | cortex catalog create -f-
440440
done
441441
442+
-----------------------------------------------------------------------------
443+
Export all workflows
444+
-----------------------------------------------------------------------------
445+
446+
This recipe creates YAML files for each Workflow. This may be helpful if you are considering enabling GitOps for Workflows and you want to export current Workflows as a starting point.
447+
448+
.. code:: bash
449+
450+
for workflow in `cortex workflows list --csv --no-headers --columns tag`
451+
do
452+
echo "workflow = $workflow"
453+
cortex workflows get --tag $workflow --yaml > $workflow.yaml
454+
done
455+
442456
-----------------------------------------------------------------------------
443457
Obfuscating a Cortex export
444458
-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)