Skip to content

Commit

Permalink
fix(restore): use relative labels to fetch CSPI name (#191)
Browse files Browse the repository at this point in the history
Signed-off-by: mittachaitu <sai.chaithanya@mayadata.io>
  • Loading branch information
sai chaithanya authored Oct 7, 2020
1 parent 66475dc commit 9f7f39e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/server/cstorvolumeconfig/restore_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func (rOps *restoreAPIOps) getCStorRestoreStatus(
rstStatus = restore.Status
if restore.Status != cstorapis.RSTCStorStatusDone &&
restore.Status != cstorapis.RSTCStorStatusFailed {
poolName := restore.Labels[cstortypes.CStorPoolInstanceLabelKey]
poolName := restore.Labels[cstortypes.CStorPoolInstanceNameLabelKey]
isPoolDown := isPoolManagerDown(rOps.k8sclientset, poolName, namespace)
if isPoolDown {
rstStatus = cstorapis.RSTCStorStatusFailed
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/cstorvolumeconfig/v1alpha1_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (rOps *restoreAPIOps) getV1Alpha1CStorRestoreStatus(
rstStatus = restore.Status
if restore.Status != openebsapis.RSTCStorStatusDone &&
restore.Status != openebsapis.RSTCStorStatusFailed {
poolName := restore.Labels[cstortypes.CStorPoolInstanceLabelKey]
poolName := restore.Labels[cstortypes.CStorPoolInstanceNameLabelKey]
isPoolDown := isPoolManagerDown(rOps.k8sclientset, poolName, namespace)
if isPoolDown {
rstStatus = openebsapis.RSTCStorStatusFailed
Expand Down

0 comments on commit 9f7f39e

Please sign in to comment.