diff --git a/lib/shared/addon/components/cru-node-pools/component.js b/lib/shared/addon/components/cru-node-pools/component.js index b88d401cb..1194b7640 100644 --- a/lib/shared/addon/components/cru-node-pools/component.js +++ b/lib/shared/addon/components/cru-node-pools/component.js @@ -27,6 +27,14 @@ const headers = [ name: 'deleteNotReadyAfterSecs', sort: ['deleteNotReadyAfterSecs'], translationKey: 'clusterNew.rke.nodes.deleteNotReadyAfterSecs', + width: 155, + }, + { + name: 'aggressivedrain', + sort: false, + scope: 'embedded', + translationKey: 'clusterNew.rke.nodes.drainBeforeDelete', + classNames: ['pl-5'], width: 150, }, { diff --git a/lib/shared/addon/components/cru-node-pools/template.hbs b/lib/shared/addon/components/cru-node-pools/template.hbs index ac1256e8d..1a4b6f196 100644 --- a/lib/shared/addon/components/cru-node-pools/template.hbs +++ b/lib/shared/addon/components/cru-node-pools/template.hbs @@ -29,7 +29,7 @@ {{else if (eq kind "suffix")}} - + {{t "clusterNew.rke.role.requirements.label"}} diff --git a/lib/shared/addon/components/node-pool-row/template.hbs b/lib/shared/addon/components/node-pool-row/template.hbs index fcabb3353..d72893e00 100644 --- a/lib/shared/addon/components/node-pool-row/template.hbs +++ b/lib/shared/addon/components/node-pool-row/template.hbs @@ -1,19 +1,11 @@
- {{input - class="input-sm" - value=pool.hostnamePrefix - }} + {{input class="input-sm" value=pool.hostnamePrefix}}
- {{input - class="input-sm" - type="number" - min="1" - value=pool.quantity - }} + {{input class="input-sm" type="number" min="1" value=pool.quantity}}
@@ -30,26 +22,36 @@ value=pool.nodeTemplateId }}
-
{{else}} - {{/if}} {{#tooltip-element - type="tooltip-basic" - model=(t "clusterNew.rke.nodes.deleteNotReadyAfterSecsTooltip" htmlSafe=true) - tooltipTemplate="tooltip-static" - aria-describedby="tooltip-base" - tooltipFor="tooltipPoolCreateAfter" - placement="top" - tagName="div" + type="tooltip-basic" + model=(t + "clusterNew.rke.nodes.deleteNotReadyAfterSecsTooltip" htmlSafe=true + ) + tooltipTemplate="tooltip-static" + aria-describedby="tooltip-base" + tooltipFor="tooltipPoolCreateAfter" + placement="top" + tagName="div" }}
{{input-integer @@ -63,37 +65,36 @@
{{/tooltip-element}} + + {{input type="checkbox" checked=pool.drainBeforeDelete}} + - {{input - type="checkbox" - checked=pool.etcd - }} + {{input type="checkbox" checked=pool.etcd}} - {{input - type="checkbox" - checked=pool.controlPlane - }} + {{input type="checkbox" checked=pool.controlPlane}} - {{input - type="checkbox" - checked=pool.worker - }} + {{input type="checkbox" checked=pool.worker}} - {{#if (or taintCapabilites (eq mode "new"))}} - {{/if}} - - \ No newline at end of file diff --git a/translations/en-us.yaml b/translations/en-us.yaml index 6213f3f6c..b323c1862 100644 --- a/translations/en-us.yaml +++ b/translations/en-us.yaml @@ -4381,19 +4381,20 @@ clusterNew: title: Node Taints detail: Optional taints to be applied to the node nodes: - title: Node Pools - detail: Configure the machines that will make up the cluster add: Add Node Pool addTemplate: Add Node Template - templatePrompt: "Choose a Template..." - myTemplatesGroup: "My Templates" - othersTemplatesGroup: "Other's Templates" - hostnamePrefix: Name Prefix count: Count - template: Template deleteNotReadyAfterSecs: Auto Replace deleteNotReadyAfterSecsTooltip: "If greater than 0, nodes that are unreachable for this long will be automatically deleted and replaced." + drainBeforeDelete: Drain Before Delete + detail: Configure the machines that will make up the cluster + hostnamePrefix: Name Prefix + myTemplatesGroup: "My Templates" + othersTemplatesGroup: "Other's Templates" taints: Taints + template: Template + templatePrompt: "Choose a Template..." + title: Node Pools detected: | {count, plural, =1 {# new node has registered}