mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 04:15:28 +02:00
feat(edge): EE-4570 allow pre-pull images with edge stack deployment (#8210)
Co-authored-by: Matt Hook <hookenz@gmail.com>
This commit is contained in:
parent
7fe0712b61
commit
919a854d93
22 changed files with 234 additions and 53 deletions
|
@ -0,0 +1,28 @@
|
|||
.edge-stack-status {
|
||||
padding: 2px 10px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.edge-stack-status.status-acknowledged {
|
||||
color: #337ab7;
|
||||
background-color: rgba(51, 122, 183, 0.1);
|
||||
}
|
||||
|
||||
.edge-stack-status.status-images-pulled {
|
||||
color: #e1a800;
|
||||
background-color: rgba(238, 192, 32, 0.1);
|
||||
}
|
||||
|
||||
.edge-stack-status.status-ok {
|
||||
color: #23ae89;
|
||||
background-color: rgba(35, 174, 137, 0.1);
|
||||
}
|
||||
|
||||
.edge-stack-status.status-error {
|
||||
color: #ae2323;
|
||||
background-color: rgba(174, 35, 35, 0.1);
|
||||
}
|
||||
|
||||
.edge-stack-status.status-total {
|
||||
background-color: rgba(168, 167, 167, 0.1);
|
||||
}
|
|
@ -87,7 +87,10 @@
|
|||
></table-column-header>
|
||||
</div>
|
||||
</th>
|
||||
<th> Status </th>
|
||||
<th class="text-center"> Acknowledged </th>
|
||||
<th class="text-center"> Deployed </th>
|
||||
<th class="text-center"> Failed </th>
|
||||
<th class="text-center"> Total deployments </th>
|
||||
<th>
|
||||
<table-column-header
|
||||
col-title="'Creation Date'"
|
||||
|
@ -113,14 +116,36 @@
|
|||
{{ item.Name }}
|
||||
</a>
|
||||
</td>
|
||||
<td><edge-stack-status stack-status="item.Status"></edge-stack-status></td>
|
||||
<td class="text-center">
|
||||
<span class="edge-stack-status status-acknowledged">
|
||||
•
|
||||
{{ item.aggregateStatus.acknowledged }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="edge-stack-status status-ok">
|
||||
•
|
||||
{{ item.aggregateStatus.ok }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="edge-stack-status status-error">
|
||||
•
|
||||
{{ item.aggregateStatus.error }}
|
||||
</span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<span class="edge-stack-status status-total">
|
||||
{{ item.NumDeployments }}
|
||||
</span>
|
||||
</td>
|
||||
<td>{{ item.CreationDate | getisodatefromtimestamp }}</td>
|
||||
</tr>
|
||||
<tr ng-if="!$ctrl.dataset" data-cy="edgeStack-loadingRow">
|
||||
<td colspan="4" class="text-center text-muted">Loading...</td>
|
||||
<td colspan="6" class="text-center text-muted">Loading...</td>
|
||||
</tr>
|
||||
<tr ng-if="$ctrl.state.filteredDataSet.length === 0" data-cy="edgeStack-noStackRow">
|
||||
<td colspan="4" class="text-center text-muted"> No stack available. </td>
|
||||
<td colspan="6" class="text-center text-muted"> No stack available. </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import angular from 'angular';
|
||||
import './edgeStackDatatable.css';
|
||||
|
||||
angular.module('portainer.edge').component('edgeStacksDatatable', {
|
||||
templateUrl: './edgeStacksDatatable.html',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue