github.com/hernad/nomad@v1.6.112/ui/app/templates/components/job-editor/review.hbs (about)

     1  {{!
     2    Copyright (c) HashiCorp, Inc.
     3    SPDX-License-Identifier: MPL-2.0
     4  ~}}
     5  
     6  <div class="boxed-section">
     7      <div class="boxed-section-head">Job Plan</div>
     8      <div class="boxed-section-body is-dark">
     9      <JobDiff
    10          data-test-plan-output
    11          @diff={{@data.planOutput.diff}}
    12          @verbose={{false}}
    13      />
    14      </div>
    15  </div>
    16  <div
    17      class="boxed-section
    18      {{if @data.planOutput.failedTGAllocs 'is-warning' 'is-primary'}}"
    19      data-test-dry-run-message
    20  >
    21      <div class="boxed-section-head" data-test-dry-run-title>Scheduler dry-run</div>
    22      <div class="boxed-section-body" data-test-dry-run-body>
    23      {{#if @data.planOutput.failedTGAllocs}}
    24          {{#each @data.planOutput.failedTGAllocs as |placementFailure|}}
    25          <PlacementFailure @failedTGAlloc={{placementFailure}} />
    26          {{/each}}
    27      {{else}}
    28          All tasks successfully allocated.
    29      {{/if}}
    30      </div>
    31  </div>
    32  {{#if
    33      (and
    34      @data.planOutput.preemptions.isFulfilled @data.planOutput.preemptions.length
    35      )
    36  }}
    37      <div class="boxed-section is-warning" data-test-preemptions>
    38      <div class="boxed-section-head" data-test-preemptions-title>
    39          Preemptions (if you choose to run this job, these allocations will be
    40          stopped)
    41      </div>
    42      <div class="boxed-section-body" data-test-preemptions-body>
    43          <ListTable
    44          @source={{@data.planOutput.preemptions}}
    45          @class="allocations is-isolated"
    46          as |t|
    47          >
    48          <t.head>
    49              <th class="is-narrow"></th>
    50              <th>ID</th>
    51              <th>Task Group</th>
    52              <th>Created</th>
    53              <th>Modified</th>
    54              <th>Status</th>
    55              <th>Version</th>
    56              <th>Node</th>
    57              <th>Volume</th>
    58              <th>CPU</th>
    59              <th>Memory</th>
    60          </t.head>
    61          <t.body as |row|>
    62              <AllocationRow @allocation={{row.model}} @context="job" />
    63          </t.body>
    64          </ListTable>
    65      </div>
    66      </div>
    67  {{/if}}
    68  <Hds::ButtonSet class="is-associative">
    69      <Hds::Button @text="Run" {{on "click" (perform @fns.onSubmit)}} disabled={{@fns.onSubmit.isRunning}} data-test-run />
    70      <Hds::Button @color="secondary" @text="Cancel" {{on "click" @fns.onReset}} disabled={{@fns.onSubmit.isRunning}} data-test-cancel />
    71  </Hds::ButtonSet>