Skip to content

Commit f75d5df

Browse files
Dipta Dastamalsaha
authored andcommitted
Remove restic-dependency from recovery (#258)
* Update cli.SetupEnv() * Update recovery api * Update recovery job * Fix tests * Update recovery volumes * Rename RecoveryVoume -> RecoveredVolume, removed Name field * Make VolumeSource inline
1 parent 86f01f3 commit f75d5df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snapshot_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (e PrometheusExporter) ServeHTTP(w http.ResponseWriter, r *http.Request) {
7070
http.Error(w, err.Error(), http.StatusInternalServerError)
7171
return
7272
}
73-
err = resticCLI.SetupEnv(resource, secret, r.URL.Query().Get(QueryParamAutoPrefix))
73+
err = resticCLI.SetupEnv(resource.Spec.Backend, secret, r.URL.Query().Get(QueryParamAutoPrefix))
7474
if err != nil {
7575
http.Error(w, err.Error(), http.StatusInternalServerError)
7676
return

0 commit comments

Comments
 (0)