You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/10/31 06:36:45 UTC

[GitHub] [dolphinscheduler] rickchengx commented on a diff in pull request #12538: [Improvement-12536][k8s] Support the command for the container in k8s task plugin

rickchengx commented on code in PR #12538:
URL: https://github.com/apache/dolphinscheduler/pull/12538#discussion_r1009070611


##########
dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts:
##########
@@ -59,6 +59,18 @@ export function useK8s(model: { [field: string]: any }): IJsonItem[] {
         message: t('project.node.min_memory_tips')
       }
     },
+    {
+      type: 'input',
+      field: 'command',
+      name: t('project.node.command'),
+      props: {
+        placeholder: t('project.node.command_tips')
+      },
+      validate: {
+        trigger: ['input', 'blur'],
+        message: t('project.node.command_tips')
+      }

Review Comment:
   Hi, @Amy0104 Thanks for the comment.
   
   Actually, this validate is copied from the above code. (I am not familiar with front-end code)
   
   <img width="661" alt="截屏2022-10-31 14 29 12" src="https://user-images.githubusercontent.com/38122586/198945629-ba34aee8-dbf7-4b93-bb7d-03bdf787ff3f.png">
   
   
   Because this field `command` is not necessary, user can leave it blank.
   
   So we just remove this validate code as below, right?
   
   
   <img width="477" alt="image" src="https://user-images.githubusercontent.com/38122586/198946282-6bba2aa6-d9bb-4770-994f-cf5b04f504dc.png">
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org