Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
Signed-off-by: Pawan <pawan@mayadata.io>
  • Loading branch information
pawanpraka1 committed Feb 17, 2021
1 parent 85ef50f commit f72042e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions deploy/yamls/zfs-driver.yaml
Expand Up @@ -792,7 +792,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: openebs-zfs-plugin
image: openebs/zfs-driver:ci
image: pawanpraka1/zfs-driver:ep
imagePullPolicy: IfNotPresent
env:
- name: OPENEBS_CONTROLLER_DRIVER
Expand Down Expand Up @@ -994,7 +994,7 @@ spec:
securityContext:
privileged: true
allowPrivilegeEscalation: true
image: openebs/zfs-driver:ci
image: pawanpraka1/zfs-driver:ep
imagePullPolicy: IfNotPresent
args:
- "--nodeid=$(OPENEBS_NODE_ID)"
Expand Down
4 changes: 2 additions & 2 deletions deploy/zfs-operator.yaml
Expand Up @@ -1976,7 +1976,7 @@ spec:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
- name: openebs-zfs-plugin
image: openebs/zfs-driver:ci
image: pawanpraka1/zfs-driver:ep
imagePullPolicy: IfNotPresent
env:
- name: OPENEBS_CONTROLLER_DRIVER
Expand Down Expand Up @@ -2178,7 +2178,7 @@ spec:
securityContext:
privileged: true
allowPrivilegeEscalation: true
image: openebs/zfs-driver:ci
image: pawanpraka1/zfs-driver:ep
imagePullPolicy: IfNotPresent
args:
- "--nodeid=$(OPENEBS_NODE_ID)"
Expand Down
3 changes: 3 additions & 0 deletions pkg/zfs/zfs_util.go
Expand Up @@ -827,6 +827,9 @@ func DestoryBackup(bkp *apis.ZFSBackup) error {
// CreateRestore creates the restore
func CreateRestore(rstr *apis.ZFSRestore) error {
if len(rstr.VolSpec.PoolName) == 0 {
// for backward compatibility, older version of
// velero will not add spec in the ZFSRestore Object
// query it here and fill that information
vol, err := GetZFSVolume(rstr.Spec.VolumeName)
if err != nil {
return err
Expand Down

0 comments on commit f72042e

Please sign in to comment.