File tree Expand file tree Collapse file tree
dolphinscheduler-ui/src/views/projects/task/components/node/fields Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 '.'
1823import type { IJsonItem } from '../types'
1924import { useI18n } from 'vue-i18n'
2025
2126export 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
You can’t perform that action at this time.
0 commit comments