{{#accordion-list showExpandAll=false as |al expandFn|}} {{!-- Only allow edits to tenancy, compartment, and region configuration for new cluster --}} {{#accordion-list-item title=(t "clusterNew.oracleoke.access.title") detail=(t "clusterNew.oracleoke.access.detail") expandAll=expandAll expand=(action expandFn) expandOnInit=true }}
{{#input-or-display editable=isNew value=config.tenancyId}} {{input type="text" name="tenancy" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.tenancyOCID.placeholder') value=config.tenancyId}} {{/input-or-display}}
{{#if (and (eq step 1) isNew)}}

{{t 'clusterNew.oracleoke.region.help'}}

{{else}}
{{config.region}}
{{/if}}
{{!-- Allow edits to user details for both new and existing cluster --}}
{{#input-or-display editable=(or isNew editing) value=config.userOcid}} {{input type="text" name="username" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.userOcid.placeholder') value=config.userOcid}} {{/input-or-display}}
{{#input-or-display editable=(or isNew editing) value=config.fingerprint}} {{input type="text" name="fingerprint" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.userFingerprint.placeholder') value=config.fingerprint}} {{/input-or-display}}
{{#input-or-display editable=(or isNew editing) value=config.privateKeyPassphrase}} {{input type="password" name="password" classNames="form-control" concealValue=true placeholder=(t 'clusterNew.oracleoke.secretKeyPassphrase.placeholder') value=config.privateKeyPassphrase}} {{/input-or-display}}
{{input-text-file classNames="box" value=config.privateKeyContents multiple=False canChangeName=false accept="text/plain,.pem,.pkey,.key" minHeight=40 placeholder="clusterNew.oracleoke.secretKey.placeholder" shouldChangeName=false concealValue=true }}
{{/accordion-list-item}} {{!-- authenticate to OCI --}} {{#if (eq step 1)}} {{save-cancel editing=false save="authenticateOCI" cancel=close saveDisabled=canAuthenticate createLabel="clusterNew.oracleoke.access.next" savingLabel="clusterNew.oracleoke.access.loading" }} {{/if}} {{#if (and (gte step 2) editing)}} {{!-- edit cluster --}} {{#accordion-list-item title=(t "clusterNew.oracleoke.cluster.title") detail=(t "clusterNew.oracleoke.cluster.detail") showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#if (eq step 2)}} {{else}}
{{config.kubernetesVersion}}
{{/if}}
{{#input-or-display editable=(or (eq mode "new") eq mode "editing") value=config.quantityPerSubnet}} {{input-integer min=0 max=maxNodeCount value=config.quantityPerSubnet classNames="form-control" placeholder=(t 'clusterNew.oracleoke.quantityPerSubnet.placeholder')}}

{{t 'clusterNew.oracleoke.quantityPerSubnet.help'}}

{{/input-or-display}}
{{/accordion-list-item}} {{!-- exit point for update/upgrade --}} {{save-cancel editing=(eq mode 'edit') save="upgradeCluster" cancel=close }} {{#if refresh}} {{/if}} {{else}} {{!-- new cluster --}} {{#if (gte step 2)}} {{#accordion-list-item title=(t "clusterNew.oracleoke.cluster.title") detail=(t "clusterNew.oracleoke.cluster.detail") showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#if (eq step 2)}} {{else}}
{{config.kubernetesVersion}}
{{/if}}
{{#input-or-display editable=(and (eq step 2) isNew) value=config.quantityPerSubnet}} {{input-integer min=0 max=maxNodeCount value=config.quantityPerSubnet classNames="form-control" placeholder=(t 'clusterNew.oracleoke.quantityPerSubnet.placeholder')}}

{{t 'clusterNew.oracleoke.quantityPerSubnet.help'}}

{{/input-or-display}}
{{#input-or-display editable=(and (eq step 2) isNew) value=config.compartmentId}} {{input type="text" name="compartment" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.compartmentOCID.placeholder') value=config.compartmentId}} {{/input-or-display}}
{{#input-or-display editable=isNew value=config.kmsKeyId}} {{input type="text" name="kmsKeyId" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.kmsKeyId.placeholder') value=config.kmsKeyId}} {{/input-or-display}}
{{/accordion-list-item}} {{#if (eq step 2)}} {{save-cancel editing=(eq mode 'edit') save="loadNodeConfig" saveDisabled=canAddK8sVersion cancel=close createLabel="clusterNew.oracleoke.cluster.next" savingLabel="clusterNew.oracleoke.cluster.loading" }} {{/if}} {{/if}} {{#if (gte step 3)}} {{#accordion-list-item title=(t "clusterNew.oracleoke.vcn.title") detail=(t "clusterNew.oracleoke.vcn.detail") showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#input-or-display editable=(not-eq mode "view") value=(if vcnCreationMode (t "generic.enabled") (t "generic.disabled")) }}
{{#if (eq vcnCreationMode "Custom")}}
{{#input-or-display editable=(and (eq step 3) isNew) value=selectedSubnetAccess}} {{searchable-select class="form-control" content=subnetAccessChoices value=config.cpSubnetAccess }} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=selectedSubnetAccess}} {{searchable-select class="form-control" content=subnetAccessChoices value=config.npSubnetAccess }} {{/input-or-display}}
{{#if (and (not-eq config.cpSubnetAccess "public") (eq step 3))}} {{banner-message icon="icon-alert" color="bg-warning mb-10" message=(t "clusterNew.oracleoke.controlPlaneSubnet.warning") }} {{/if}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.podCidr}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.podCidr.placeholder') value=config.podCidr}} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.serviceCidr}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.serviceCidr.placeholder') value=config.serviceCidr}} {{/input-or-display}}
{{/if}} {{#if (eq vcnCreationMode "Existing")}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.vcnCompartmentId}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.compartmentOCIDPlaceholder') value=config.vcnCompartmentId}}

{{t "clusterNew.oracleoke.existingVCNDetails.compartmentOCIDHelp" }}

{{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.vcnName}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.vcnNamePlaceholder') value=config.vcnName}} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.controlPlaneSubnetName}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.controlPlaneSubnetNamePlaceholder') value=config.controlPlaneSubnetName}} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.nodePoolSubnetName}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.nodePoolSubnetNamePlaceholder') value=config.nodePoolSubnetName}} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.loadBalancerSubnetName1}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.lbSubnetName1Placeholder') value=config.loadBalancerSubnetName1}} {{/input-or-display}}
{{#input-or-display editable=(and (eq step 3) isNew) value=config.loadBalancerSubnetName2}} {{input type="text" classNames="form-control" placeholder=(t 'clusterNew.oracleoke.existingVCNDetails.lbSubnetName2Placeholder') value=config.loadBalancerSubnetName2}} {{/input-or-display}}
{{/if}} {{/input-or-display}}
{{/accordion-list-item}} {{#if (eq step 3)}} {{save-cancel editing=(eq mode 'edit') save="loadInstanceConfig" cancel=close saveDisabled=canSaveVCN createLabel="clusterNew.oracleoke.node.next" savingLabel="clusterNew.oracleoke.node.loading" }} {{/if}} {{/if}} {{#if (gte step 4)}} {{#accordion-list-item title=(t "clusterNew.oracleoke.instance.title") detail=(t "clusterNew.oracleoke.instance.detail") showExpand=false expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#if (eq step 4)}} {{else}}
{{config.nodeShape}}
{{/if}}
{{#if isFlex}}
{{field-required}} {{input-number id="input-ocpu-count" min=1 max=64 value=config.flexOcpus }}
{{/if}}
{{#if (eq step 4)}} {{else}}
{{config.nodeImage}}
{{/if}}
{{input-number min=50 max=32768 value=config.customBootVolumeSize }} {{t "generic.gigabyte"}}
{{input-text-file classNames="box" value=config.nodePublicKeyContents multiple=False canChangeName=false accept="text/plain,.pem,.pub,.key" minHeight=40 placeholder="clusterNew.oracleoke.nodeSSHKey.placeholder" shouldChangeName=false concealValue=false }}
{{/accordion-list-item}} {{#if (eq step 4)}} {{save-cancel editing=(eq mode 'edit') saveDisabled=canCreateCluster save="save" cancel=close }} {{/if}} {{/if}} {{/if}} {{top-errors errors=errors}} {{top-errors errors=otherErrors}} {{top-errors errors=clusterErrors}} {{/accordion-list}}