{{#accordion-list showExpandAll=false as |al expandFn|}} {{#if (eq step 1)}} {{#accordion-list-item title=(t "clusterNew.huaweicce.access.title") detail=(t "clusterNew.huaweicce.access.detail") expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{searchable-select class="form-control" content=zones value=config.region allowCustom=true }}

{{t "clusterNew.huaweicce.region.helpText" htmlSafe=true}}

{{input type="text" value=config.projectId classNames="form-control" placeholder=(t "clusterNew.huaweicce.projectId.placeholder")}}

{{t "clusterNew.huaweicce.projectId.help" htmlSafe=true}}

{{#unless authConfigred}}
{{input type="text" value=config.accessKey classNames="form-control" placeholder=(t "clusterNew.huaweicce.accessKey.placeholder")}}

{{t "clusterNew.huaweicce.accessKey.help" htmlSafe=true}}

{{input type="password" value=config.secretKey classNames="form-control" placeholder=(t "clusterNew.huaweicce.secretKey.placeholder")}}
{{/unless}} {{/accordion-list-item}} {{/if}} {{#if (or (eq step 2) (eq step 3))}} {{#accordion-list-item title=(t "clusterNew.huaweicce.access.title") detail=(t "clusterNew.huaweicce.access.detail") expandOnInit=false expandAll=al.expandAll expand=(action expandFn) }}
{{config.zone}}
{{config.projectId}}
{{#unless authConfigred}}
{{config.accessKey}}
{{t "nodeDriver.amazoneks.sessionToken.provided"}}
{{/unless}} {{/accordion-list-item}} {{#accordion-list-item title=(t "clusterNew.huaweicce.clusterOption.title") detail=(t "clusterNew.huaweicce.clusterOption.detail") expandOnInit=true expandAll=al.expandAll expand=(action expandFn) }}
{{#if editing}}
{{config.clusterType}}
{{else}} {{new-select classNames="form-control" value=config.clusterType content=clusterType }} {{/if}}
{{input type="text" value=config.description classNames="form-control" placeholder=(t "clusterNew.huaweicce.description.placeholder")}}
{{#if editing}}
{{config.masterVersion}}
{{else}} {{searchable-select class="form-control" content=masterVersions value=config.masterVersion allowCustom=true }} {{/if}}
{{#if editing}}
{{managementScaleDisplay}}
{{else}} {{new-select classNames="form-control" value=managementScale content=managementScaleContent }} {{/if}}
{{#if editing}} {{#if (or (eq highAvailabilityEnabled "s2") (eq highAvailabilityEnabled "t2"))}}
{{t "generic.enabled"}}
{{else}}
{{t "generic.disabled"}}
{{/if}} {{else}}
{{/if}}
{{#if editing}}
{{config.containerNetworkMode}}
{{else}} {{new-select classNames="form-control" value=config.containerNetworkMode content=containerNetworkModeContent }} {{/if}}
{{#if editing}}
{{#if config.containerNetworkCidr}} {{config.containerNetworkCidr}} {{else}} {{t "clusterNew.huaweicce.containerNetworkCidr.none"}} {{/if}}
{{else}} {{searchable-select class="form-control" content=containerNetworkCidrContent value=config.containerNetworkCidr allowCustom=true }} {{/if}}
{{#if editing}}
{{editedVpcName}}
{{else}} {{new-select classNames="form-control" content=vpcContent value=config.vpcId }} {{/if}}
{{#if editing}}
{{editedSubnetName}}
{{else}} {{#if (gt subnetContent.length 0)}} {{new-select classNames="form-control" content=subnetContent value=config.subnetId }} {{else}}
{{t "clusterNew.huaweicce.subnetId.none"}}
{{/if}} {{/if}}
{{#if (eq config.clusterType "BareMetal")}}
{{#if (gt networkContent.length 0)}} {{#if editing}}
{{config.highwaySubnet}}
{{else}} {{new-select classNames="form-control" content=networkContent value=config.highwaySubnet }} {{/if}} {{else}}
{{t "clusterNew.huaweicce.highwaySubnet.none"}}
{{/if}}
{{/if}}
{{#if editing}} {{#if config.externalServerEnabled}}
{{t "generic.enabled"}}
{{else}}
{{t "generic.disabled"}}
{{/if}} {{else}}
{{/if}}
{{#if config.externalServerEnabled}}
{{#if editing}}
{{clusterEipName}}
{{else}} {{new-select classNames="form-control" prompt=(t "clusterNew.huaweicce.clusterEipId.prompt") value=config.clusterEipId content=eipIdContent }} {{/if}}
{{/if}}
{{#if editing}} {{#if (gt config.labels.length 0)}} {{huawei-user-labels readOnly=true initialLabels=config.labels }} {{else}}
{{t "clusterNew.huaweicce.clusterLabels.none"}}
{{/if}} {{else}} {{huawei-user-labels setLabels=(action "setLabels")}} {{/if}}
{{/accordion-list-item}} {{#if (eq step 3)}} {{#accordion-list-item title=(t "clusterNew.huaweicce.nodeOption.title") detail=(t "clusterNew.huaweicce.nodeOption.detail") expandOnInit=true showExpand=false expandAll=al.expandAll expand=(action expandFn) }}
{{#if editing}}
{{config.availableZone}}
{{else}} {{new-select classNames="form-control" content=availableZoneContent value=config.availableZone }} {{/if}}
{{#if editing}}
{{billingModeName}}
{{else}} {{searchable-select class="form-control" content=billingModeContent value=config.billingMode }} {{/if}}
{{#if (eq config.billingMode 2)}}
{{#if editing}}
{{validityPeriodName}}
{{else}} {{searchable-select classNames="form-control" content=validityPeriodContent value=validityPeriod }} {{/if}}
{{#if editing}}
{{bmsIsAutoRenewName}}
{{else}}
{{/if}}
{{/if}}
{{#if editing}}
{{config.dataVolumeType}}
{{else}} {{new-select classNames="form-control" value=config.dataVolumeType content=volumeTypeContent }} {{/if}}
{{#if editing}}
{{config.dataVolumeSize}}{{t "generic.gigabyte"}}
{{else}} {{input-number min=100 value=config.dataVolumeSize max=32768}} {{t "generic.gigabyte"}} {{/if}}
{{#if editing}}
{{config.rootVolumeType}}
{{else}} {{new-select classNames="form-control" value=config.rootVolumeType content=volumeTypeContent }} {{/if}}
{{#if editing}}
{{config.rootVolumeSize}}{{t "generic.gigabyte"}}
{{else}} {{input-number min=40 value=config.rootVolumeSize max=1024}} {{t "generic.gigabyte"}} {{/if}}
{{#if editing}}
{{config.nodeFlavor}}
{{else}} {{new-select classNames="form-control" value=config.nodeFlavor content=nodeFlavorContent }} {{/if}}
{{input-number min=0 value=config.nodeCount max=nodeCountMax}}
{{#if editing}}
{{config.nodeOperationSystem}}
{{else}} {{new-select classNames="form-control" value=config.nodeOperationSystem content=nodeOperationSystemContent }} {{/if}}
{{#if editing}}
{{editedSshName}}
{{else}} {{new-select classNames="form-control" value=config.sshKey content=sshkeyContent }} {{/if}}
{{#unless editing}}
{{#if (eq eipSelection "new")}} {{input-number min=1 value=config.eipCount}} {{new-select classNames="form-control" value=config.eipType content=eipTypeContent }} {{new-select classNames="form-control" value=config.eipShareType content=eipShareTypeContent }} {{new-select classNames="form-control" value=config.eipChargeMode content=eipChargeModeContent }}
{{input-number min=1 value=config.eipBandwidthSize max=100}} {{t "generic.mbitS"}}
{{/if}} {{#if (eq eipSelection "exist")}} {{/if}}
{{#if (eq config.authentiactionMode "authenticating_proxy")}}
{{input-text-file classNames="box" value=authenticatingProxyCa multiple=true canChangeName=false accept="application/x-x509-ca-cert,text/plain,.pem,.crt" minHeight=60 placeholder="newCertificate.cert.placeholder" shouldChangeName=false }} {{/if}}
{{huawei-user-labels setLabels=(action "setNodeLabels") expandAll=al.expandAll expand=(action expandFn) detailKey="formUserLabels.nodeDetail" }}
{{/unless}} {{/accordion-list-item}} {{/if}} {{/if}} {{/accordion-list}} {{top-errors errors=errors}} {{top-errors errors=otherErrors}} {{top-errors errors=clusterErrors}} {{#if (eq step 1)}} {{save-cancel createLabel="clusterNew.huaweicce.checkAccount" savingLabel="clusterNew.huaweicce.checkingAccount" save=(action "checkAccount") cancel=close }} {{/if}} {{#if (eq step 2)}} {{save-cancel createLabel="clusterNew.huaweicce.configureNode" savingLabel="clusterNew.huaweicce.configuringNode" save=(action "configreNode") cancel=close }} {{/if}} {{#if (eq step 3)}} {{save-cancel editing=(eq mode "edit") save=(action "driverSave") cancel=close }} {{/if}}