|
| 1 | +--- a/python_dsl_template.jinja2 2024-04-18 17:54:08.373533064 -0400 |
| 2 | ++++ b/python_dsl_template.jinja2 2024-04-18 18:01:30.152253439 -0400 |
| 3 | +@@ -97,9 +97,6 @@ |
| 4 | + secret.use_secret_as_env({{ task_name }}, "{{ workflow_task.task_modifiers.object_storage_secret }}", { "AWS_ACCESS_KEY_ID": "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY": "AWS_SECRET_ACCESS_KEY" }) |
| 5 | + {% endif %} |
| 6 | + {{ task_name }}.set_display_name("{{ workflow_task.name | string_delimiter_safe }}") |
| 7 | +-{% if workflow_task.doc %} |
| 8 | +- add_pod_annotation({{ task_name }}, "elyra/node-user-doc","""{{ workflow_task.doc| string_delimiter_safe }}""") |
| 9 | +-{% endif %} |
| 10 | + {% if workflow_task.task_modifiers.cpu_request %} |
| 11 | + {{ task_name }}.set_cpu_request(cpu="{{ workflow_task.task_modifiers.cpu_request }}") |
| 12 | + {% endif %} |
| 13 | +@@ -126,16 +123,6 @@ |
| 14 | + {% if workflow_task.task_modifiers.disable_node_caching %} |
| 15 | + {{ task_name }}.execution_options.caching_strategy.max_cache_staleness = "P0D" |
| 16 | + {% endif %} |
| 17 | +-{% if workflow_task.task_modifiers.pod_labels %} |
| 18 | +-{% for pod_label_key, pod_label_value in workflow_task.task_modifiers.pod_labels.items() %} |
| 19 | +- add_pod_label({{ task_name }}, "{{ pod_label_key }}", "{{ pod_label_value }}") |
| 20 | +-{% endfor %} |
| 21 | +-{% endif %} |
| 22 | +-{% if workflow_task.task_modifiers.pod_annotations %} |
| 23 | +-{% for pod_annotation_key, pod_annotation_value in workflow_task.task_modifiers.pod_annotations.items() %} |
| 24 | +- add_pod_annotation({{ task_name }}, "{{ pod_annotation_key }}" , """{{ pod_annotation_value | string_delimiter_safe }}""") |
| 25 | +-{% endfor %} |
| 26 | +-{% endif %} |
| 27 | + {% if workflow_task.task_modifiers.kubernetes_secrets %} |
| 28 | + {% for env_var, secret_dict in workflow_task.task_modifiers.kubernetes_secrets.items() %} |
| 29 | + secret.use_secret_as_env({{ task_name }}, "{{ secret_dict.name }}", { "{{ secret_dict.key }}" : "{{ env_var }}" }) |
0 commit comments