Skip to content

Commit

Permalink
Delete restic repository from backend if Repository CRD is deleted (#…
Browse files Browse the repository at this point in the history
…438)

This PR fixes #416 

Task List:
- [x] Implement restic repo deletion while Repository CRD delete
- [x] Add test
- [x] Update doc
  • Loading branch information
Md. Emruz Hossain authored and tamalsaha committed Apr 21, 2018
1 parent ea98067 commit 02565bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func (o StashOptions) Config() (*server.StashConfig, error) {
"/swaggerapi",
"/apis/admission.stash.appscode.com/v1alpha1/restics",
"/apis/admission.stash.appscode.com/v1alpha1/recoveries",
"/apis/admission.stash.appscode.com/v1alpha1/repositories",
"/apis/admission.stash.appscode.com/v1alpha1/deployments",
"/apis/admission.stash.appscode.com/v1alpha1/daemonsets",
"/apis/admission.stash.appscode.com/v1alpha1/statefulsets",
Expand Down
3 changes: 3 additions & 0 deletions snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ func NewCmdSnapshots() *cobra.Command {
return err
}
jsonSnaps, err := json.MarshalIndent(snapshots, "", " ")
if err != nil {
return err
}
fmt.Println(string(jsonSnaps))
return nil
},
Expand Down

0 comments on commit 02565bb

Please sign in to comment.