Skip to content

Commit

Permalink
fix aks region being overwritten when editing unprovisioned aks clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis-toboggan-md committed Jan 9, 2025
1 parent b4f3939 commit 467d1bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/aks/components/CruAks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,6 @@ export default defineComponent({
return;
}
this.loadingLocations = true;
// this will force the resourceLocation watcher to re-run every time new locations are fetched even if the default one selected hasn't changed
this.config['resourceLocation'] = '';
const { azureCredentialSecret } = this.config;
Expand Down Expand Up @@ -839,6 +837,11 @@ export default defineComponent({
errors.push(this.t('aks.errors.regions', { e: parsedError || err }));
}
// once regions are loaded and a default selected, fetch resources that are region-scoped
this.getAksVersions();
this.getVmSizes();
this.getVirtualNetworks();
},
async getAksVersions(): Promise<void> {
Expand Down

0 comments on commit 467d1bf

Please sign in to comment.