mirror of https://github.com/portainer/portainer
Merge branch 'develop' of github.com:portainer/portainer into develop
commit
a452599829
|
@ -342,6 +342,7 @@ type (
|
|||
KubernetesStorageClassConfig struct {
|
||||
Name string `json:"Name"`
|
||||
AccessModes []string `json:"AccessModes"`
|
||||
Provisioner string `json:"Provisioner"`
|
||||
}
|
||||
|
||||
// LDAPGroupSearchSettings represents settings used to search for groups in a LDAP server
|
||||
|
|
|
@ -7,6 +7,7 @@ class KubernetesStorageClassConverter {
|
|||
static apiToStorageClass(data) {
|
||||
const res = new KubernetesStorageClass();
|
||||
res.Name = data.metadata.name;
|
||||
res.Provisioner = data.provisioner;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ export function KubernetesStorageClassAccessPolicies() {
|
|||
const _KubernetesStorageClass = Object.freeze({
|
||||
Name: '',
|
||||
AccessModes: [],
|
||||
Provisioner: '',
|
||||
});
|
||||
|
||||
export class KubernetesStorageClass {
|
||||
|
|
|
@ -41,6 +41,7 @@ class KubernetesConfigureController {
|
|||
const res = new KubernetesStorageClass();
|
||||
res.Name = item.Name;
|
||||
res.AccessModes = _.map(item.AccessModes, 'Name');
|
||||
res.Provisioner = item.Provisioner;
|
||||
return res;
|
||||
}
|
||||
}),
|
||||
|
|
|
@ -37,6 +37,10 @@
|
|||
<td>Storage</td>
|
||||
<td>{{ ctrl.volume.PersistentVolumeClaim.StorageClass.Name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Provisioner</td>
|
||||
<td>{{ ctrl.volume.PersistentVolumeClaim.StorageClass.Provisioner ? ctrl.volume.PersistentVolumeClaim.StorageClass.Provisioner : '-' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Size</td>
|
||||
<td>{{ ctrl.volume.PersistentVolumeClaim.Storage }}</td>
|
||||
|
|
Loading…
Reference in New Issue