mirror of
https://github.com/portainer/portainer.git
synced 2025-08-04 21:35:23 +02:00
feat(kubernetes/summary): summary of k8s actions upon deploying/updating resources EE-436 (#5137)
* feat EE-440/EE-436 kubernetes-resources-summary-panel * bugfix: returning created resources after update * fixed patch based bugs - displaying accurate updates for k8s resources Co-authored-by: Simon Meng <simon.meng@portainer.io>
This commit is contained in:
parent
267968e099
commit
eae2f5c9fc
16 changed files with 539 additions and 7 deletions
38
app/kubernetes/views/summary/summary.html
Normal file
38
app/kubernetes/views/summary/summary.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
<div
|
||||
class="col-xs-12 form-section-title interactive"
|
||||
ng-click="$ctrl.toggleSummary()"
|
||||
style="display: flex; justify-content: space-between;"
|
||||
ng-if="$ctrl.state.resources.length > 0"
|
||||
>
|
||||
Summary
|
||||
<span class="small space-left">
|
||||
<a ng-if="!$ctrl.state.expandedTemplate"><i class="fa fa-angle-down" aria-hidden="true"></i> expand</a>
|
||||
<a ng-if="$ctrl.state.expandedTemplate"><i class="fa fa-angle-up" aria-hidden="true"></i> collapse</a>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group" ng-if="$ctrl.state.expandedTemplate">
|
||||
<div class="col-sm-12 small text-muted">
|
||||
<i class="fa fa-info-circle blue-icon" aria-hidden="true" style="margin-right: 2px;"></i>
|
||||
Portainer will execute the following Kubernetes actions.
|
||||
</div>
|
||||
|
||||
<div class="col-sm-12 small text-muted" style="padding-top: 1em;" ng-if="$ctrl.state.resources.length > 0">
|
||||
<ul>
|
||||
<li ng-repeat="summary in $ctrl.state.resources" ng-if="summary.action && summary.kind && summary.name">
|
||||
{{ summary.action }}
|
||||
{{ $ctrl.getArticle(summary.kind, summary.action) }}
|
||||
<span style="color: black; font-weight: 700;">{{ summary.kind }}</span> named <code>{{ summary.name }}</code>
|
||||
<span ng-if="summary.type">
|
||||
of type <code>{{ summary.type }}</code></span
|
||||
>
|
||||
</li>
|
||||
<li ng-if="$ctrl.state.limits.memory">
|
||||
Set the memory resources limits and requests to <code>{{ $ctrl.state.limits.memory }}M</code>
|
||||
</li>
|
||||
<li ng-if="$ctrl.state.limits.cpu">
|
||||
Set the CPU resources limits and requests to <code>{{ $ctrl.state.limits.cpu }}</code>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue