From 150d9e04b0675e3d4bee6000a742a0e54846472e Mon Sep 17 00:00:00 2001 From: Gallardot Date: Sat, 29 Jul 2023 19:56:19 +0800 Subject: [PATCH] [Improvement][UI] Image pull policy in the K8S task provides default values (#14650) Signed-off-by: Gallardot Co-authored-by: Aaron Wang --- .../src/views/projects/task/components/node/fields/use-k8s.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts index 390ab2808c..2002dcb260 100644 --- a/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts +++ b/dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts @@ -76,7 +76,8 @@ export function useK8s(model: { [field: string]: any }): IJsonItem[] { trigger: ['input', 'blur'], required: true, message: t('project.node.image_pull_policy_tips') - } + }, + value: 'IfNotPresent' }, { type: 'input',