2023-04-10 15:36:59 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
2023-04-14 17:08:13 +00:00
|
|
|
~}}
|
2023-04-10 15:36:59 +00:00
|
|
|
|
2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "CSI Plugins"}}
|
2022-08-17 16:59:33 +00:00
|
|
|
<StorageSubnav />
|
2020-05-02 06:39:58 +00:00
|
|
|
<section class="section">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.isForbidden}}
|
2020-07-09 16:37:00 +00:00
|
|
|
<ForbiddenMessage />
|
2020-05-02 06:39:58 +00:00
|
|
|
{{else}}
|
2020-05-08 00:25:24 +00:00
|
|
|
<div class="toolbar">
|
|
|
|
<div class="toolbar-item">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.model.length}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<SearchBox
|
2020-05-08 00:25:24 +00:00
|
|
|
data-test-plugins-search
|
2020-07-09 20:19:07 +00:00
|
|
|
@searchTerm={{mut this.searchTerm}}
|
|
|
|
@onChange={{action this.resetPagination}}
|
2020-06-01 19:03:56 +00:00
|
|
|
@placeholder="Search plugins..." />
|
2020-05-08 00:25:24 +00:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.sortedPlugins}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListPagination
|
2020-07-09 20:19:07 +00:00
|
|
|
@source={{this.sortedPlugins}}
|
|
|
|
@size={{this.pageSize}}
|
|
|
|
@page={{this.currentPage}} as |p|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable
|
|
|
|
@source={{p.list}}
|
2020-07-09 20:19:07 +00:00
|
|
|
@sortProperty={{this.sortProperty}}
|
|
|
|
@sortDescending={{this.sortDescending}}
|
2020-06-01 19:03:56 +00:00
|
|
|
@class="with-foot" as |t|>
|
|
|
|
<t.head>
|
|
|
|
<t.sort-by @prop="plainId">ID</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>
|
|
|
|
</t.head>
|
|
|
|
<t.body @key="model.id" as |row|>
|
2020-05-03 04:30:20 +00:00
|
|
|
<tr class="is-interactive" data-test-plugin-row {{on "click" (action "gotoPlugin" row.model)}}>
|
|
|
|
<td data-test-plugin-id>
|
2020-06-01 19:03:56 +00:00
|
|
|
<LinkTo @route="csi.plugins.plugin" @model={{row.model.plainId}} class="is-primary">{{row.model.plainId}}</LinkTo>
|
2020-05-03 04:30:20 +00:00
|
|
|
</td>
|
2020-05-05 00:04:40 +00:00
|
|
|
<td data-test-plugin-controller-health>
|
2020-05-18 21:07:41 +00:00
|
|
|
{{#if row.model.controllerRequired}}
|
|
|
|
{{if (gt row.model.controllersHealthy 0) "Healthy" "Unhealthy"}}
|
|
|
|
({{row.model.controllersHealthy}}/{{row.model.controllersExpected}})
|
|
|
|
{{else}}
|
2020-11-25 19:50:33 +00:00
|
|
|
{{#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>
|
|
|
|
{{/if}}
|
2020-05-18 21:07:41 +00:00
|
|
|
{{/if}}
|
2020-05-03 04:30:20 +00:00
|
|
|
</td>
|
2020-05-05 00:04:40 +00:00
|
|
|
<td data-test-plugin-node-health>
|
2020-05-03 04:30:20 +00:00
|
|
|
{{if (gt row.model.nodesHealthy 0) "Healthy" "Unhealthy"}}
|
|
|
|
({{row.model.nodesHealthy}}/{{row.model.nodesExpected}})
|
|
|
|
</td>
|
|
|
|
<td data-test-plugin-provider>{{row.model.provider}}</td>
|
|
|
|
</tr>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2020-05-03 04:30:20 +00:00
|
|
|
<div class="table-foot">
|
2020-07-09 20:19:07 +00:00
|
|
|
<PageSizeSelect @onChange={{action this.resetPagination}} />
|
2020-05-03 04:30:20 +00:00
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{this.sortedPlugins.length}}
|
2020-05-03 04:30:20 +00:00
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
<p.prev @class="pagination-previous">{{x-icon "chevron-left"}}</p.prev>
|
|
|
|
<p.next @class="pagination-next">{{x-icon "chevron-right"}}</p.next>
|
2020-05-03 04:30:20 +00:00
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</ListPagination>
|
2020-05-03 04:30:20 +00:00
|
|
|
{{else}}
|
2020-05-05 00:04:40 +00:00
|
|
|
<div data-test-empty-plugins-list class="empty-message">
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if (eq this.model.length 0)}}
|
2020-05-08 00:25:24 +00:00
|
|
|
<h3 data-test-empty-plugins-list-headline class="empty-message-headline">No Plugins</h3>
|
|
|
|
<p class="empty-message-body">
|
|
|
|
The cluster currently has no registered CSI Plugins.
|
|
|
|
</p>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{else if this.searchTerm}}
|
2020-05-08 00:25:24 +00:00
|
|
|
<h3 data-test-empty-plugins-list-headline class="empty-message-headline">No Matches</h3>
|
|
|
|
<p class="empty-message-body">
|
2020-07-09 20:19:07 +00:00
|
|
|
No plugins match the term <strong>{{this.searchTerm}}</strong>
|
2020-05-08 00:25:24 +00:00
|
|
|
</p>
|
|
|
|
{{/if}}
|
2020-05-03 04:30:20 +00:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2020-05-02 06:39:58 +00:00
|
|
|
{{/if}}
|
|
|
|
</section>
|