diff --git a/lib/shared/addon/components/cru-cloud-provider/component.js b/lib/shared/addon/components/cru-cloud-provider/component.js index d9070d5534..3b7374af72 100644 --- a/lib/shared/addon/components/cru-cloud-provider/component.js +++ b/lib/shared/addon/components/cru-cloud-provider/component.js @@ -104,9 +104,9 @@ export default Component.extend({ k8sVersionDidChange: observer( 'cluster.rancherKubernetesEngineConfig.kubernetesVersion', function(){ const kubernetesVersion = get(this, 'cluster.rancherKubernetesEngineConfig.kubernetesVersion') - const selectedCloudProvider = get(this, 'selectedCloudProvider') + const initialCloudProvider = get(this, 'initialCloudProvider') - if (selectedCloudProvider === 'amazonec2' && Semver.gte(Semver.coerce(kubernetesVersion), '1.27.0')){ + if (initialCloudProvider === 'amazonec2' && Semver.gte(Semver.coerce(kubernetesVersion), '1.27.0')){ set(this, 'unsupportedProviderSelected', true); set(this, 'selectedCloudProvider', 'external-aws'); set(this, 'showChangedToAmazonExternal', true);