-
Notifications
You must be signed in to change notification settings - Fork 83
Added support for plugin overrides #69
Added support for plugin overrides #69
Conversation
Codecov Report
@@ Coverage Diff @@
## pmahindrakar/matchable-execution-label #69 +/- ##
==========================================================================
+ Coverage 58.64% 58.93% +0.29%
==========================================================================
Files 82 89 +7
Lines 1758 1863 +105
==========================================================================
+ Hits 1031 1098 +67
- Misses 670 707 +37
- Partials 57 58 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
aliases := [][]string{{"cluster-resource-attributes"}, {"executions"}, {"execution-cluster-labels"}, {"execution-queue-attributes"}, {"task-resource-attributes"}} | ||
shortArray := []string{clusterResourceAttributesShort, execCmdShort, executionClusterLabelShort, executionQueueAttributesShort, taskResourceAttributesShort} | ||
longArray := []string{clusterResourceAttributesLong, execCmdLong, executionClusterLabelLong, executionQueueAttributesLong, taskResourceAttributesLong} | ||
useArray := []string{"cluster-resource-attribute", "execution", "execution-cluster-label", "execution-queue-attribute", "plugin-override", "task-resource-attribute"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do these change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are required for the tests whenever new noun is added as a command. It just adding a new noun to the array which got supported in this PR.
"overrides": [{ | ||
"task_type": "python_task", | ||
"plugin_id": ["pluginoverride1", "pluginoverride2"], | ||
"missing_plugin_behavior": 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mind commenting on what the enum values represent here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have added this in yaml . since this is json o/p and comments are not supported for JSON format.
If i add comments sphinx doesn't like it . I tried both # and //
flytectl_get_plugin-override.rst:45: WARNING: Could not lex literal_block as "json". Highlighting skipped.
project: flytectldemo | ||
overrides: | ||
- task_type: python_task | ||
plugin_id: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add an explanation of how this override behavior affects plugin execution?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
707ce66
to
be3a158
Compare
0ea9d15
to
450f562
Compare
Signed-off-by: Prafulla Mahindrakar <[email protected]>
450f562
to
a3634ce
Compare
Merging in the base PR 68 |
Signed-off-by: Prafulla Mahindrakar <[email protected]>
Signed-off-by: Prafulla Mahindrakar [email protected]
TL;DR
This PR specifically addresses supporting plugin overrides through flytectl.
Retrieves plugin override for given project,domain combination or additionally with workflow name.
Here the command get plugin override for project flytectldemo and development domain.
flytectl get plugin-override -p flytectldemo -d development
eg : O/P
Writing the plugin override to a file. If there are no plugin overrides, command would return an error
Here the command gets plugin overrides and writes the config file to po.yaml
eg: content of po.yaml
flytectl get plugin-override --attrFile po.yaml
Updates plugin override for given project and domain combination or additionally with workflow name.
Updating the plugin override is only available from config file
Here the command updates takes the input for plugin override from the config file po.yaml
eg: content of po.yaml
flytectl update plugin-override -attrFile po.yaml
Deletes plugin override for given project and domain combination or additionally with workflow name.
Deletes plugin override for project and domain
Here the command delete plugin overrides for project flytectldemo and development domain.
flytectl delete plugin-override -p flytectldemo -d development
Deleting plugin override using config file
Here the command deletes plugin override from the config file po.yaml
eg: content of po.yaml which will use the project domain and workflow name for deleting the resource
flytectl delete plugin-override --attrFile po.yaml
Deleting plugin override for a workflow
Here the command deletes plugin override for a workflow
flytectl delete plugin-override -p flytectldemo -d development core.control_flow.run_merge_sort.merge_sort
Type
Are all requirements met?
Complete description
Tracking Issue
flyteorg/flyte#992
Follow-up issue
NA