Skip to content

Commit

Permalink
Update pvc size to read from status (#166)
Browse files Browse the repository at this point in the history
Signed-off-by: Akash Srivastava <akashsrivastava4927@gmail.com>
  • Loading branch information
qiell committed Aug 6, 2019
1 parent 1e0575d commit c972aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion probe/kubernetes/persistentvolumeclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (p *persistentVolumeClaim) GetStorageClass() string {

// GetCapacity returns the storage size of PVC
func (p *persistentVolumeClaim) GetCapacity() string {
capacity := p.Spec.Resources.Requests[apiv1.ResourceStorage]
capacity := p.Status.Capacity[apiv1.ResourceStorage]
if capacity.String() != "" {
return capacity.String()
}
Expand Down

0 comments on commit c972aab

Please sign in to comment.