Browse Source

[Improvement] Add Set cluster name (#12074)

3.2.0-release
jackfanwan 2 years ago committed by GitHub
parent
commit
7d80ea34ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      dolphinscheduler-ui/src/views/projects/task/components/node/fields/use-namespace.ts

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

@ -31,11 +31,11 @@ export function useNamespace(): IJsonItem {
loading.value = true
const totalList = await getAllNamespaces()
options.value = (totalList || []).map(
(item: { id: string; namespace: string; k8s: string }) => ({
label: `${item.namespace}(${item.k8s})`,
(item: { id: string; namespace: string; clusterName: string }) => ({
label: `${item.namespace}(${item.clusterName})`,
value: JSON.stringify({
name: item.namespace,
cluster: item.k8s
cluster: item.clusterName
})
})
)

Loading…
Cancel
Save