forked from opendatahub-io/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch elyra kfp template to fix kfp-kubernetes issue
Signed-off-by: Harshad Reddy Nalla <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
jupyter/tensorflow/ubi9-python-3.9/utils/python_dsl_template.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- a/python_dsl_template.jinja2 2024-04-18 17:54:08.373533064 -0400 | ||
+++ b/python_dsl_template.jinja2 2024-04-18 18:01:30.152253439 -0400 | ||
@@ -97,9 +97,6 @@ | ||
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" }) | ||
{% endif %} | ||
{{ task_name }}.set_display_name("{{ workflow_task.name | string_delimiter_safe }}") | ||
-{% if workflow_task.doc %} | ||
- add_pod_annotation({{ task_name }}, "elyra/node-user-doc","""{{ workflow_task.doc| string_delimiter_safe }}""") | ||
-{% endif %} | ||
{% if workflow_task.task_modifiers.cpu_request %} | ||
{{ task_name }}.set_cpu_request(cpu="{{ workflow_task.task_modifiers.cpu_request }}") | ||
{% endif %} | ||
@@ -126,16 +123,6 @@ | ||
{% if workflow_task.task_modifiers.disable_node_caching %} | ||
{{ task_name }}.execution_options.caching_strategy.max_cache_staleness = "P0D" | ||
{% endif %} | ||
-{% if workflow_task.task_modifiers.pod_labels %} | ||
-{% for pod_label_key, pod_label_value in workflow_task.task_modifiers.pod_labels.items() %} | ||
- add_pod_label({{ task_name }}, "{{ pod_label_key }}", "{{ pod_label_value }}") | ||
-{% endfor %} | ||
-{% endif %} | ||
-{% if workflow_task.task_modifiers.pod_annotations %} | ||
-{% for pod_annotation_key, pod_annotation_value in workflow_task.task_modifiers.pod_annotations.items() %} | ||
- add_pod_annotation({{ task_name }}, "{{ pod_annotation_key }}" , """{{ pod_annotation_value | string_delimiter_safe }}""") | ||
-{% endfor %} | ||
-{% endif %} | ||
{% if workflow_task.task_modifiers.kubernetes_secrets %} | ||
{% for env_var, secret_dict in workflow_task.task_modifiers.kubernetes_secrets.items() %} | ||
secret.use_secret_as_env({{ task_name }}, "{{ secret_dict.name }}", { "{{ secret_dict.key }}" : "{{ env_var }}" }) |