Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VolumeSnapshot #787

Merged
merged 6 commits into from
May 23, 2019
Merged

VolumeSnapshot #787

merged 6 commits into from
May 23, 2019

Conversation

suaas21
Copy link
Contributor

@suaas21 suaas21 commented May 15, 2019

Tasks:

  • Create VolumeSnapshot
  • Restore VolumeSnapshot

@suaas21 suaas21 requested a review from hossainemruz May 15, 2019 11:50
hack/deploy/rbac-list.yaml Outdated Show resolved Hide resolved
pkg/cmds/create_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/cmds/create_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/cmds/create_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/cmds/create_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
@suaas21 suaas21 force-pushed the volumeSnapshot branch 6 times, most recently from e39c0a4 to a47c550 Compare May 21, 2019 08:01
apis/stash/v1beta1/types.go Outdated Show resolved Hide resolved
docs/examples/volume-snapshot/restored-pvc.yaml Outdated Show resolved Hide resolved
docs/examples/volume-snapshot/restoresession.yaml Outdated Show resolved Hide resolved
docs/examples/volume-snapshot/statefulset.yaml Outdated Show resolved Hide resolved
docs/examples/volume-snapshot/deployment.yaml Outdated Show resolved Hide resolved
pkg/cmds/restore_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/cmds/restore_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/cmds/restore_volumesnapshot.go Outdated Show resolved Hide resolved
pkg/controller/backup_session.go Outdated Show resolved Hide resolved
pkg/controller/stash.go Outdated Show resolved Hide resolved
@suaas21 suaas21 force-pushed the volumeSnapshot branch 3 times, most recently from 1913d45 to 06288e1 Compare May 23, 2019 05:10
hossainemruz
hossainemruz previously approved these changes May 23, 2019
@@ -467,3 +468,21 @@ func WaitUntilDeploymentConfigReady(c oc_cs.Interface, meta metav1.ObjectMeta) e
return false, nil
})
}

func WaitUntilVolumeSnapshotReady(c snapshot_cs.Interface, meta metav1.ObjectMeta) error {
return wait.PollImmediate(RetryInterval, 30*time.Minute, func() (bool, error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need a user configurable timeout. 30min is just abitrary.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. But how can we do it? Any field in BackupConfiguration?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have increased the timeout to 2 hour

@tamalsaha tamalsaha merged commit ac829f3 into master May 23, 2019
@tamalsaha tamalsaha deleted the volumeSnapshot branch May 23, 2019 08:42
@tamalsaha
Copy link
Member

xref: #751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants