Skip to content

Commit

Permalink
Merge pull request #12533 from rancher/gha-portpr-11715215957-1
Browse files Browse the repository at this point in the history
[backport v2.10.0] Use `semver.coerce()` to get valid kubernetes version
  • Loading branch information
rak-phillip authored Nov 7, 2024
2 parents 79a80fc + 70110c4 commit f9cdb12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/aks/components/CruAks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ export default defineComponent({
}
// track original version on edit to ensure we don't offer k8s downgrades
this.originalVersion = this.normanCluster?.aksConfig?.kubernetesVersion;
const kubernetesVersion = semver.coerce(this.normanCluster?.aksConfig?.kubernetesVersion);
this.originalVersion = kubernetesVersion;
} else {
this.normanCluster = await store.dispatch('rancher/create', { type: NORMAN.CLUSTER, ...defaultCluster }, { root: true });
Expand Down

0 comments on commit f9cdb12

Please sign in to comment.