This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new e53ec0944e [Fix-17186] Namespace Selection Missing in k8s task (#17190)
e53ec0944e is described below

commit e53ec0944e023bc20736c31cbe6c00ef049b7fd5
Author: Joleen Knepp <[email protected]>
AuthorDate: Sat May 17 17:36:38 2025 +0800

    [Fix-17186] Namespace Selection Missing in k8s task (#17190)
---
 .../views/projects/task/components/node/fields/use-k8s.ts  | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

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 f67d1a407e..aa1d915f08 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
@@ -14,7 +14,12 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-import { useCustomParams, useCustomLabels, useNodeSelectors } from '.'
+import {
+  useCustomParams,
+  useNamespace,
+  useCustomLabels,
+  useNodeSelectors
+} from '.'
 import type { IJsonItem } from '../types'
 import { useI18n } from 'vue-i18n'
 
@@ -22,6 +27,7 @@ export function useK8s(model: { [field: string]: any }): 
IJsonItem[] {
   const { t } = useI18n()
 
   return [
+    useNamespace(),
     {
       type: 'input-number',
       field: 'minCpuCores',
@@ -107,11 +113,7 @@ export function useK8s(model: { [field: string]: any }): 
IJsonItem[] {
       field: 'nodeSelectors',
       name: 'node_selectors'
     }),
-    ...useCustomParams({
-      model,
-      field: 'localParams',
-      isSimple: model.readonly
-    })
+    ...useCustomParams({ model, field: 'localParams', isSimple: false })
   ]
 }
 

Reply via email to