Skip to content

Commit e53ec09

Browse files
authored
[Fix-17186] Namespace Selection Missing in k8s task (#17190)
1 parent 86c066a commit e53ec09

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • dolphinscheduler-ui/src/views/projects/task/components/node/fields

dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-k8s.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
import { useCustomParams, useCustomLabels, useNodeSelectors } from '.'
17+
import {
18+
useCustomParams,
19+
useNamespace,
20+
useCustomLabels,
21+
useNodeSelectors
22+
} from '.'
1823
import type { IJsonItem } from '../types'
1924
import { useI18n } from 'vue-i18n'
2025

2126
export function useK8s(model: { [field: string]: any }): IJsonItem[] {
2227
const { t } = useI18n()
2328

2429
return [
30+
useNamespace(),
2531
{
2632
type: 'input-number',
2733
field: 'minCpuCores',
@@ -107,11 +113,7 @@ export function useK8s(model: { [field: string]: any }): IJsonItem[] {
107113
field: 'nodeSelectors',
108114
name: 'node_selectors'
109115
}),
110-
...useCustomParams({
111-
model,
112-
field: 'localParams',
113-
isSimple: model.readonly
114-
})
116+
...useCustomParams({ model, field: 'localParams', isSimple: false })
115117
]
116118
}
117119

0 commit comments

Comments
 (0)