diff --git a/dashboard/src/components/ProvisionerSettings.tsx b/dashboard/src/components/ProvisionerSettings.tsx index 07f15b0c0c..6204cc518a 100644 --- a/dashboard/src/components/ProvisionerSettings.tsx +++ b/dashboard/src/components/ProvisionerSettings.tsx @@ -91,10 +91,6 @@ const machineTypeOptions = [ { value: "g4dn.xlarge", label: "g4dn.xlarge" }, ]; -const clusterVersionOptions = [ - { value: "v1.24.0", label: "1.24.0" }, -]; - const defaultCidrVpc = "10.78.0.0/16" const defaultCidrServices = "172.20.0.0/16" @@ -140,7 +136,7 @@ const ProvisionerSettings: React.FC = (props) => { >([]); const [cidrRangeVPC, setCidrRangeVPC] = useState(defaultCidrVpc); const [cidrRangeServices, setCidrRangeServices] = useState(defaultCidrServices); - const [clusterVersion, setClusterVersion] = useState("v1.24.0"); + const [clusterVersion, setClusterVersion] = useState("v1.27.0"); const [isReadOnly, setIsReadOnly] = useState(false); const [errorMessage, setErrorMessage] = useState(undefined); const [isClicked, setIsClicked] = useState(false); @@ -299,7 +295,7 @@ const ProvisionerSettings: React.FC = (props) => { case: "eksKind", value: new EKS({ clusterName, - clusterVersion: clusterVersion || "v1.24.0", + clusterVersion: clusterVersion || "v1.27.0", cidrRange: cidrRangeVPC || defaultCidrVpc, // deprecated in favour of network.cidrRangeVPC: can be removed after december 2023 region: awsRegion, loadBalancer: loadBalancerObj, @@ -413,11 +409,12 @@ const ProvisionerSettings: React.FC = (props) => { setErrorMessage(DEFAULT_ERROR_MESSAGE); } markStepStarted("provisioning-failed", errMessage); - } finally { + + // enable edit again only in the case of an error + setIsClicked(false); setIsReadOnly(false); + } finally { setIsLoading(false); - - setIsClicked(false); } }; @@ -436,7 +433,6 @@ const ProvisionerSettings: React.FC = (props) => { useEffect(() => { const contract = props.selectedClusterVersion as any; - if (contract?.cluster) { let eksValues: EKS = contract.cluster?.eksKind as EKS; if (eksValues == null) { @@ -577,14 +573,15 @@ const ProvisionerSettings: React.FC = (props) => { isExpanded && ( <> {user?.isPorterUser && ( - setCidrRangeServices(x)} + label="Cluster version (only shown to porter.run emails)" + /> + )}