|
|
@@ -777,6 +777,8 @@ func (app *App) HandleGetReleaseToken(w http.ResponseWriter, r *http.Request) {
|
|
|
Code: ErrReleaseReadData,
|
|
|
Errors: []string{"release not found"},
|
|
|
}, w)
|
|
|
+
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
release, err := app.Repo.Release.ReadRelease(uint(clusterID), name, namespace)
|
|
|
@@ -786,6 +788,8 @@ func (app *App) HandleGetReleaseToken(w http.ResponseWriter, r *http.Request) {
|
|
|
Code: ErrReleaseReadData,
|
|
|
Errors: []string{"release not found"},
|
|
|
}, w)
|
|
|
+
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
releaseExt := release.Externalize()
|
|
|
@@ -807,6 +811,8 @@ func (app *App) HandleCreateWebhookToken(w http.ResponseWriter, r *http.Request)
|
|
|
Code: ErrReleaseReadData,
|
|
|
Errors: []string{"release not found"},
|
|
|
}, w)
|
|
|
+
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
// read the release from the target cluster
|
|
|
@@ -1056,6 +1062,8 @@ func (app *App) HandleUpgradeRelease(w http.ResponseWriter, r *http.Request) {
|
|
|
Code: ErrReleaseReadData,
|
|
|
Errors: []string{"release not found"},
|
|
|
}, w)
|
|
|
+
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
release, err := app.Repo.Release.ReadRelease(uint(clusterID), name, rel.Namespace)
|
|
|
@@ -1458,6 +1466,8 @@ func (app *App) HandleRollbackRelease(w http.ResponseWriter, r *http.Request) {
|
|
|
Code: ErrReleaseReadData,
|
|
|
Errors: []string{"release not found"},
|
|
|
}, w)
|
|
|
+
|
|
|
+ return
|
|
|
}
|
|
|
|
|
|
release, err := app.Repo.Release.ReadRelease(uint(clusterID), name, rel.Namespace)
|