2021-02-17 21:01:44 +00:00
|
|
|
|
{{page-title "CSI Volumes"}}
|
2020-05-02 06:38:55 +00:00
|
|
|
|
<div class="tabs is-subnav">
|
|
|
|
|
<ul>
|
2022-01-19 16:20:00 +00:00
|
|
|
|
<li data-test-tab="volumes">
|
|
|
|
|
<LinkTo @route="csi.volumes.index" @activeClass="is-active">
|
|
|
|
|
Volumes
|
|
|
|
|
</LinkTo>
|
|
|
|
|
</li>
|
|
|
|
|
<li data-test-tab="plugins">
|
|
|
|
|
<LinkTo @route="csi.plugins.index" @activeClass="is-active">
|
|
|
|
|
Plugins
|
|
|
|
|
</LinkTo>
|
|
|
|
|
</li>
|
2020-05-02 06:38:55 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2020-03-25 12:51:26 +00:00
|
|
|
|
<section class="section">
|
2021-04-29 20:00:59 +00:00
|
|
|
|
<div class="toolbar">
|
|
|
|
|
<div class="toolbar-item">
|
|
|
|
|
{{#if this.visibleVolumes.length}}
|
|
|
|
|
<SearchBox
|
|
|
|
|
data-test-volumes-search
|
|
|
|
|
@searchTerm={{mut this.searchTerm}}
|
|
|
|
|
@onChange={{action this.resetPagination}}
|
2022-01-19 16:20:00 +00:00
|
|
|
|
@placeholder="Search volumes..."
|
|
|
|
|
/>
|
2021-04-29 20:00:59 +00:00
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
|
|
|
|
{{#if this.system.shouldShowNamespaces}}
|
|
|
|
|
<div class="toolbar-item is-right-aligned is-mobile-full-width">
|
|
|
|
|
<div class="button-bar">
|
|
|
|
|
<SingleSelectDropdown
|
|
|
|
|
data-test-namespace-facet
|
|
|
|
|
@label="Namespace"
|
|
|
|
|
@options={{this.optionsNamespaces}}
|
|
|
|
|
@selection={{this.qpNamespace}}
|
2022-01-19 16:20:00 +00:00
|
|
|
|
@onSelect={{action
|
|
|
|
|
(queue (action this.cacheNamespace) (action this.setFacetQueryParam "qpNamespace"))
|
|
|
|
|
}}
|
|
|
|
|
/>
|
2021-04-29 20:00:59 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
|
{{#if this.isForbidden}}
|
2020-07-09 16:37:00 +00:00
|
|
|
|
<ForbiddenMessage />
|
2022-01-19 16:20:00 +00:00
|
|
|
|
{{else if this.sortedVolumes}}
|
|
|
|
|
<ListPagination
|
|
|
|
|
@source={{this.sortedVolumes}}
|
|
|
|
|
@size={{this.pageSize}}
|
|
|
|
|
@page={{this.currentPage}} as |p|
|
|
|
|
|
>
|
|
|
|
|
<ListTable
|
|
|
|
|
@source={{p.list}}
|
|
|
|
|
@sortProperty={{this.sortProperty}}
|
|
|
|
|
@sortDescending={{this.sortDescending}}
|
|
|
|
|
@class="with-foot" as |t|
|
|
|
|
|
>
|
|
|
|
|
<t.head>
|
|
|
|
|
<t.sort-by @prop="name">
|
|
|
|
|
Name
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
{{#if this.system.shouldShowNamespaces}}
|
|
|
|
|
<t.sort-by @prop="namespace.name">
|
|
|
|
|
Namespace
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
{{/if}}
|
|
|
|
|
<t.sort-by @prop="schedulable">
|
|
|
|
|
Volume Health
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
<t.sort-by @prop="controllersHealthyProportion">
|
|
|
|
|
Controller Health
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
<t.sort-by @prop="nodesHealthyProportion">
|
|
|
|
|
Node Health
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
<t.sort-by @prop="provider">
|
|
|
|
|
Provider
|
|
|
|
|
</t.sort-by>
|
|
|
|
|
<th>
|
|
|
|
|
# Allocs
|
|
|
|
|
</th>
|
|
|
|
|
</t.head>
|
|
|
|
|
<t.body @key="model.name" as |row|>
|
|
|
|
|
<tr
|
|
|
|
|
class="is-interactive"
|
|
|
|
|
data-test-volume-row
|
|
|
|
|
{{on "click" (action "gotoVolume" row.model)}}
|
|
|
|
|
>
|
|
|
|
|
<td data-test-volume-name>
|
|
|
|
|
<LinkTo
|
|
|
|
|
@route="csi.volumes.volume"
|
|
|
|
|
@model={{row.model.idWithNamespace}}
|
|
|
|
|
class="is-primary"
|
|
|
|
|
>
|
|
|
|
|
{{row.model.name}}
|
|
|
|
|
</LinkTo>
|
|
|
|
|
</td>
|
2021-04-29 20:00:59 +00:00
|
|
|
|
{{#if this.system.shouldShowNamespaces}}
|
2022-01-19 16:20:00 +00:00
|
|
|
|
<td data-test-volume-namespace>
|
|
|
|
|
{{row.model.namespace.name}}
|
2020-03-25 12:51:26 +00:00
|
|
|
|
</td>
|
2022-01-19 16:20:00 +00:00
|
|
|
|
{{/if}}
|
|
|
|
|
<td data-test-volume-schedulable>
|
|
|
|
|
{{if row.model.schedulable "Schedulable" "Unschedulable"}}
|
|
|
|
|
</td>
|
|
|
|
|
<td data-test-volume-controller-health>
|
|
|
|
|
{{#if row.model.controllerRequired}}
|
|
|
|
|
{{if (gt row.model.controllersHealthy 0) "Healthy" "Unhealthy"}}
|
|
|
|
|
(
|
|
|
|
|
{{row.model.controllersHealthy}}
|
|
|
|
|
/
|
|
|
|
|
{{row.model.controllersExpected}}
|
|
|
|
|
)
|
|
|
|
|
{{else if (gt row.model.controllersExpected 0)}}
|
|
|
|
|
{{if (gt row.model.controllersHealthy 0) "Healthy" "Unhealthy"}}
|
|
|
|
|
(
|
|
|
|
|
{{row.model.controllersHealthy}}
|
|
|
|
|
/
|
|
|
|
|
{{row.model.controllersExpected}}
|
|
|
|
|
)
|
|
|
|
|
{{else}}
|
|
|
|
|
<em class="is-faded">
|
|
|
|
|
Node Only
|
|
|
|
|
</em>
|
2021-04-29 20:00:59 +00:00
|
|
|
|
{{/if}}
|
2022-01-19 16:20:00 +00:00
|
|
|
|
</td>
|
|
|
|
|
<td data-test-volume-node-health>
|
|
|
|
|
{{if (gt row.model.nodesHealthy 0) "Healthy" "Unhealthy"}}
|
|
|
|
|
(
|
|
|
|
|
{{row.model.nodesHealthy}}
|
|
|
|
|
/
|
|
|
|
|
{{row.model.nodesExpected}}
|
|
|
|
|
)
|
|
|
|
|
</td>
|
|
|
|
|
<td data-test-volume-provider>
|
|
|
|
|
{{row.model.provider}}
|
|
|
|
|
</td>
|
|
|
|
|
<td data-test-volume-allocations>
|
|
|
|
|
{{row.model.allocationCount}}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</t.body>
|
|
|
|
|
</ListTable>
|
|
|
|
|
<div class="table-foot">
|
|
|
|
|
<PageSizeSelect @onChange={{action this.resetPagination}} />
|
|
|
|
|
<nav class="pagination">
|
|
|
|
|
<div class="pagination-numbers">
|
|
|
|
|
{{p.startsAt}}
|
|
|
|
|
–
|
|
|
|
|
{{p.endsAt}}
|
|
|
|
|
of
|
|
|
|
|
{{this.sortedVolumes.length}}
|
|
|
|
|
</div>
|
|
|
|
|
<p.prev @class="pagination-previous">
|
|
|
|
|
{{x-icon "chevron-left"}}
|
|
|
|
|
</p.prev>
|
|
|
|
|
<p.next @class="pagination-next">
|
|
|
|
|
{{x-icon "chevron-right"}}
|
|
|
|
|
</p.next>
|
|
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
|
</nav>
|
2020-03-25 12:51:26 +00:00
|
|
|
|
</div>
|
2022-01-19 16:20:00 +00:00
|
|
|
|
</ListPagination>
|
|
|
|
|
{{else}}
|
|
|
|
|
<div data-test-empty-volumes-list class="empty-message">
|
|
|
|
|
{{#if (eq this.visibleVolumes.length 0)}}
|
|
|
|
|
<h3 data-test-empty-volumes-list-headline class="empty-message-headline">
|
|
|
|
|
No Volumes
|
|
|
|
|
</h3>
|
|
|
|
|
<p class="empty-message-body">
|
|
|
|
|
This namespace currently has no CSI Volumes.
|
|
|
|
|
</p>
|
|
|
|
|
{{else if this.searchTerm}}
|
|
|
|
|
<h3 data-test-empty-volumes-list-headline class="empty-message-headline">
|
|
|
|
|
No Matches
|
|
|
|
|
</h3>
|
|
|
|
|
<p class="empty-message-body">
|
|
|
|
|
No volumes match the term
|
|
|
|
|
<strong>
|
|
|
|
|
{{this.searchTerm}}
|
|
|
|
|
</strong>
|
|
|
|
|
</p>
|
|
|
|
|
{{/if}}
|
|
|
|
|
</div>
|
2020-03-25 12:51:26 +00:00
|
|
|
|
{{/if}}
|
2022-01-19 16:20:00 +00:00
|
|
|
|
</section>
|