DC Create - if direct mode, do not prompt for cluster context (#19956)

* Made kube config and context dependent on direct mode

* Make config profile a dropdown

* Re enabled config profile

Co-authored-by: Candice Ye <canye@microsoft.com>
This commit is contained in:
Candice Ye
2022-07-08 13:04:20 -07:00
committed by GitHub
parent 6b535b7945
commit 7b5a4e00e5

View File

@@ -170,14 +170,6 @@
"sections": [
{
"fields": [
{
"type": "kube_cluster_context_picker",
"label": "%arc.data.controller.kube.cluster.context%",
"required": true,
"inputWidth": "350px",
"variableName": "AZDATA_NB_VAR_ARC_CLUSTER_CONTEXT",
"configFileVariableName": "AZDATA_NB_VAR_ARC_CONFIG_FILE"
},
{
"type": "options",
"label": "%arc.data.controller.connectivity.mode%",
@@ -191,16 +183,19 @@
"defaultValue": "Indirect",
"optionsType": "radio"
}
}
]
}
]
},
{
"title": "%arc.data.controller.cluster.config.profile.title%",
"sections": [
{
"fields": [
},
{
"type": "kube_cluster_context_picker",
"label": "%arc.data.controller.kube.cluster.context%",
"required": true,
"inputWidth": "350px",
"variableName": "AZDATA_NB_VAR_ARC_CLUSTER_CONTEXT",
"configFileVariableName": "AZDATA_NB_VAR_ARC_CONFIG_FILE",
"enabled": {
"target": "AZDATA_NB_VAR_ARC_DATA_CONTROLLER_CONNECTIVITY_MODE",
"value": "Indirect"
}
},
{
"type": "options",
"label": "%arc.data.controller.cluster.config.profile%",
@@ -214,7 +209,7 @@
"loadingCompletedText": "%arc.data.controller.cluster.config.profile.loadingcompleted%"
},
"defaultValue": "azure-arc-aks-default-storage",
"optionsType": "radio"
"optionsType": "dropdown"
}
}
]