pipeline_properties_template.jinja2 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. {
  2. "current_parameters": {
  3. "name": "",
  4. "runtime": "",
  5. "description": "",
  6. "cos_object_prefix": "",
  7. "elyra_runtime_image": null,
  8. "elyra_env_vars": [],
  9. "elyra_kubernetes_secrets": [],
  10. "elyra_mounted_volumes": []
  11. },
  12. "parameters": [
  13. {
  14. "id": "name"
  15. },
  16. {
  17. "id": "runtime"
  18. },
  19. {
  20. "id": "description"
  21. },
  22. {
  23. "id": "cos_object_prefix"
  24. },
  25. {
  26. "id": "elyra_runtime_image"
  27. },
  28. {
  29. "id": "elyra_env_vars"
  30. },
  31. {
  32. "id": "elyra_kubernetes_secrets"
  33. },
  34. {
  35. "id": "elyra_mounted_volumes"
  36. }
  37. ],
  38. "uihints": {
  39. "id": "nodeProperties",
  40. "parameter_info": [
  41. {
  42. "control": "custom",
  43. "custom_control_id": "DisplayControl",
  44. "parameter_ref": "name",
  45. "label": { "default": "Pipeline Name" }
  46. },
  47. {
  48. "control": "custom",
  49. "custom_control_id": "DisplayControl",
  50. "parameter_ref": "runtime",
  51. "label": { "default": "Pipeline Runtime" }
  52. },
  53. {
  54. "control": "custom",
  55. "custom_control_id": "StringControl",
  56. "parameter_ref": "description",
  57. "label": { "default": "Pipeline Description" },
  58. "data": {
  59. "placeholder": "Pipeline description",
  60. "format": "multiline"
  61. }
  62. },
  63. {
  64. "control": "custom",
  65. "custom_control_id": "StringControl",
  66. "parameter_ref": "cos_object_prefix",
  67. "label": { "default": "Object Storage path prefix" },
  68. "description": {
  69. "default": "For generic components, this path prefix is used when storing artifacts on Object Storage.",
  70. "placement": "on_panel"
  71. },
  72. "data": {
  73. "placeholder": "project/subproject"
  74. }
  75. },
  76. {
  77. "parameter_ref": "elyra_runtime_image",
  78. "control": "custom",
  79. "custom_control_id": "EnumControl",
  80. "label": { "default": "Runtime Image" },
  81. "description": {
  82. "default": "Container image used as execution environment.",
  83. "placement": "on_panel"
  84. },
  85. "data": {
  86. "items": [],
  87. "required": false
  88. }
  89. },
  90. {
  91. "parameter_ref": "elyra_env_vars",
  92. "control": "custom",
  93. "custom_control_id": "StringArrayControl",
  94. "label": {
  95. "default": "Environment Variables"
  96. },
  97. "description": {
  98. "default": "Environment variables to be set on the execution environment.",
  99. "placement": "on_panel"
  100. },
  101. "data": {
  102. "placeholder": "env_var=VALUE",
  103. "keyValueEntries": true
  104. }
  105. },
  106. {
  107. "parameter_ref": "elyra_kubernetes_secrets",
  108. "control": "custom",
  109. "custom_control_id": "StringArrayControl",
  110. "label": {
  111. "default": "Kubernetes Secrets"
  112. },
  113. "description": {
  114. "default": "Kubernetes secrets to make available as environment variables to this node. The secret name and key given must be present in the Kubernetes namespace where the nodes are executed or the pipeline will not run.",
  115. "placement": "on_panel"
  116. },
  117. "data": {
  118. "placeholder": "env_var=secret-name:secret-key",
  119. "keyValueEntries": true
  120. }
  121. },
  122. {
  123. "parameter_ref": "elyra_mounted_volumes",
  124. "control": "custom",
  125. "custom_control_id": "StringArrayControl",
  126. "label": {
  127. "default": "Data Volumes"
  128. },
  129. "description": {
  130. "default": "Volumes to be mounted in all nodes. The specified Persistent Volume Claims must exist in the Kubernetes namespace where the nodes are executed or the pipeline will not run.",
  131. "placement": "on_panel"
  132. },
  133. "data": {
  134. "placeholder": "/mount/path=pvc-name",
  135. "keyValueEntries": true
  136. }
  137. }
  138. ],
  139. "group_info": [
  140. {
  141. "id": "nodeGroupInfo",
  142. "type": "panels",
  143. "group_info": [
  144. {
  145. "id": "name",
  146. "type": "controls",
  147. "parameter_refs": ["name"]
  148. },
  149. {
  150. "id": "runtime",
  151. "type": "controls",
  152. "parameter_refs": ["runtime"]
  153. },
  154. {
  155. "id": "description",
  156. "type": "controls",
  157. "parameter_refs": ["description"]
  158. },
  159. {
  160. "id": "cos_object_prefix",
  161. "type": "controls",
  162. "parameter_refs": ["cos_object_prefix"]
  163. },
  164. {
  165. "id": "elyra_outputCategoryHeader",
  166. "type": "textPanel",
  167. "class_name": "elyra_categoryHeader",
  168. "label": {
  169. "default": "Generic nodes defaults"
  170. },
  171. "description": {
  172. "default": "Default values are applied to all generic nodes in this pipeline and can be customized in each node.",
  173. "placement": "on_panel"
  174. }
  175. },
  176. {
  177. "id": "elyra_runtime_image",
  178. "type": "controls",
  179. "parameter_refs": ["elyra_runtime_image"]
  180. },
  181. {
  182. "id": "elyra_env_vars",
  183. "type": "controls",
  184. "parameter_refs": ["elyra_env_vars"]
  185. },
  186. {
  187. "id": "elyra_kubernetes_secrets",
  188. "type": "controls",
  189. "parameter_refs": ["elyra_kubernetes_secrets"]
  190. },
  191. {
  192. "id": "elyra_mounted_volumes",
  193. "type": "controls",
  194. "parameter_refs": ["elyra_mounted_volumes"]
  195. }
  196. ]
  197. }
  198. ]
  199. }
  200. }