Skip to content

Commit 02565bb

Browse files
Md. Emruz Hossaintamalsaha
authored andcommitted
Delete restic repository from backend if Repository CRD is deleted (#438)
This PR fixes #416 Task List: - [x] Implement restic repo deletion while Repository CRD delete - [x] Add test - [x] Update doc
1 parent ea98067 commit 02565bb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

server/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func (o StashOptions) Config() (*server.StashConfig, error) {
6767
"/swaggerapi",
6868
"/apis/admission.stash.appscode.com/v1alpha1/restics",
6969
"/apis/admission.stash.appscode.com/v1alpha1/recoveries",
70+
"/apis/admission.stash.appscode.com/v1alpha1/repositories",
7071
"/apis/admission.stash.appscode.com/v1alpha1/deployments",
7172
"/apis/admission.stash.appscode.com/v1alpha1/daemonsets",
7273
"/apis/admission.stash.appscode.com/v1alpha1/statefulsets",

snapshot.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ func NewCmdSnapshots() *cobra.Command {
4545
return err
4646
}
4747
jsonSnaps, err := json.MarshalIndent(snapshots, "", " ")
48+
if err != nil {
49+
return err
50+
}
4851
fmt.Println(string(jsonSnaps))
4952
return nil
5053
},

0 commit comments

Comments
 (0)