This commit is contained in:
adfost
2021-07-23 10:34:13 -07:00
committed by GitHub
parent 73fe08cd81
commit 419fa59923
6 changed files with 28 additions and 5 deletions

View File

@@ -3851,6 +3851,9 @@ func init() {
"storageClass": {
"type": "string"
},
"tenant": {
"type": "string"
},
"volume": {
"type": "string"
}
@@ -9281,6 +9284,9 @@ func init() {
"storageClass": {
"type": "string"
},
"tenant": {
"type": "string"
},
"volume": {
"type": "string"
}

View File

@@ -72,8 +72,8 @@ func getPVCsResponse(session *models.Principal) (*models.ListPVCsResponse, *mode
Status: string(pvc.Status.Phase),
StorageClass: *pvc.Spec.StorageClassName,
Volume: pvc.Spec.VolumeName,
Tenant: pvc.Labels["v1.min.io/tenant"],
}
ListPVCs = append(ListPVCs, &pvcResponse)
}