mirror of https://github.com/rancher/ui.git
Send cluster resourceLocation (rancher/rancher#33540)
This commit is contained in:
parent
e995edd112
commit
d924a9d286
|
|
@ -71,7 +71,10 @@ export default Component.extend(ClusterDriver, {
|
|||
if (!isEmpty(cluster?.rbacEnabled)) {
|
||||
set(this, 'rbacEnabled', cluster.rbacEnabled);
|
||||
}
|
||||
|
||||
set(this, 'config.resourceLocation', cluster.resourceLocation);
|
||||
},
|
||||
|
||||
finishAndSelectCloudCredential(cred) {
|
||||
if (isEmpty(cred)) {
|
||||
set(this, 'config.azureCredentialSecret', null);
|
||||
|
|
@ -89,17 +92,9 @@ export default Component.extend(ClusterDriver, {
|
|||
},
|
||||
|
||||
async fetchAksResources(cb) {
|
||||
const {
|
||||
azureCredentialSecret, tenantId, resourceLocation
|
||||
} = this.config;
|
||||
const data = {
|
||||
cloudCredentialId: azureCredentialSecret,
|
||||
tenantId,
|
||||
region: resourceLocation,
|
||||
};
|
||||
const url = addQueryParams('/meta/aksClusters', data);
|
||||
const errors = [];
|
||||
let step = 2;
|
||||
const url = addQueryParams('/meta/aksClusters', { cloudCredentialId: this.config.azureCredentialSecret });
|
||||
const errors = [];
|
||||
let step = 2;
|
||||
let allClusters;
|
||||
|
||||
set(this, 'loadingClusters', true);
|
||||
|
|
@ -112,10 +107,11 @@ export default Component.extend(ClusterDriver, {
|
|||
|
||||
allClusters = (allClusters?.body || []).map((c) => {
|
||||
return {
|
||||
label: c?.clusterName,
|
||||
value: c?.clusterName,
|
||||
resourceGroup: c?.resourceGroup,
|
||||
rbacEnabled: c?.rbacEnabled
|
||||
label: c?.clusterName,
|
||||
value: c?.clusterName,
|
||||
resourceGroup: c?.resourceGroup,
|
||||
rbacEnabled: c?.rbacEnabled,
|
||||
resourceLocation: c?.location
|
||||
};
|
||||
}),
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue