Skip to content

Commit

Permalink
Fix the fetching of capacity for 0.6 volumes
Browse files Browse the repository at this point in the history
Signed-off-by: kmova <kiran.mova@openebs.io>
  • Loading branch information
kmova committed Aug 25, 2018
1 parent 3a2794e commit 573fd69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion k8s/openebs-pre-release-features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1249,6 +1249,7 @@ spec:
taskNamespace: openebs
run:
tasks:
- jiva-volume-read-getpv-default-0.6.0
- jiva-volume-read-listtargetservice-default-0.6.0
- jiva-volume-read-listtargetpod-default-0.6.0
- jiva-volume-read-listreplicapod-default-0.6.0
Expand Down Expand Up @@ -1737,7 +1738,7 @@ spec:
{{- .TaskResult.readlistrep.items | notFoundErr "replica pod(s) not found" | saveIf "readlistrep.notFoundErr" .TaskResult | noop -}}
{{- jsonpath .JsonResult "{.items[*].status.podIP}" | trim | saveAs "readlistrep.podIP" .TaskResult | noop -}}
{{- jsonpath .JsonResult "{.items[*].status.containerStatuses[*].ready}" | trim | saveAs "readlistrep.status" .TaskResult | noop -}}
{{- "0G" | saveAs "readlistrep.capacity" .TaskResult -}}
{{- .TaskResult.readgetpv.capacity | saveAs "readlistrep.capacity" .TaskResult -}}
---
apiVersion: openebs.io/v1alpha1
kind: RunTask
Expand Down

0 comments on commit 573fd69

Please sign in to comment.