Skip to content

Commit

Permalink
Added docs for demo and updated docs for workflow execution config wi…
Browse files Browse the repository at this point in the history
…th more details (flyteorg#316)
  • Loading branch information
pmahindrakar-oss authored Apr 28, 2022
1 parent fc7b1dd commit fd133bb
Show file tree
Hide file tree
Showing 12 changed files with 155 additions and 11 deletions.
3 changes: 3 additions & 0 deletions cmd/delete/matchable_workflow_execution_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ For example, here's the config file wec.yaml:
domain: development
project: flytectldemo
max_parallelism: 5
security_context:
run_as:
k8s_service_account: demo
Max_parallelism is optional in the file as it is unread during the delete command but can be retained since the same file can be used for get, update and delete commands.
Expand Down
50 changes: 50 additions & 0 deletions cmd/get/matchable_workflow_execution_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,56 @@ Example: content of wec.yaml:
project: flytectldemo
max_parallelism: 5
Generate a sample workflow execution config file to be used for creating a new workflow execution config at project domain
::
flytectl get workflow-execution-config -p flytesnacks -d development --attrFile wec.yaml --gen
.. code-block:: yaml
annotations:
values:
cliAnnotationKey: cliAnnotationValue
domain: development
labels:
values:
cliLabelKey: cliLabelValue
max_parallelism: 10
project: flytesnacks
raw_output_data_config:
output_location_prefix: cliOutputLocationPrefix
security_context:
run_as:
k8s_service_account: default
Generate a sample workflow execution config file to be used for creating a new workflow execution config at project domain workflow level
::
flytectl get workflow-execution-config -p flytesnacks -d development --attrFile wec.yaml flytectl get workflow-execution-config --gen
.. code-block:: yaml
annotations:
values:
cliAnnotationKey: cliAnnotationValue
domain: development
labels:
values:
cliLabelKey: cliLabelValue
max_parallelism: 10
project: flytesnacks
workflow: k8s_spark.dataframe_passing.my_smart_structured_dataset
raw_output_data_config:
output_location_prefix: cliOutputLocationPrefix
security_context:
run_as:
k8s_service_account: default
Usage
`
)
Expand Down
6 changes: 6 additions & 0 deletions cmd/update/matchable_workflow_execution_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ Example: content of wec.yaml:
domain: development
project: flytectldemo
max_parallelism: 5
security_context:
run_as:
k8s_service_account: demo
::
Expand All @@ -42,6 +45,9 @@ For workflow 'core.control_flow.run_merge_sort.merge_sort' in flytectldemo proje
project: flytectldemo
workflow: core.control_flow.run_merge_sort.merge_sort
max_parallelism: 5
security_context:
run_as:
k8s_service_account: mergesortsa
::
Expand Down
12 changes: 12 additions & 0 deletions docs/source/demo.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions docs/source/gen/flytectl_delete_workflow-execution-config.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 17 additions & 5 deletions docs/source/gen/flytectl_demo_start.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions docs/source/gen/flytectl_get_workflow-execution-config.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/source/gen/flytectl_get_workflow.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions docs/source/gen/flytectl_sandbox_start.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/source/gen/flytectl_update_workflow-execution-config.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/source/nouns.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/source/verbs.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd133bb

Please sign in to comment.