mirror of
https://github.com/kubevela/kubevela.git
synced 2026-08-27 16:17:34 +00:00
Fix: fix panic when user disable create apprevision
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com>
This commit is contained in:
@@ -370,7 +370,7 @@ func ComputeAppRevisionHash(appRevision *v1beta1.ApplicationRevision) (string, e
|
||||
// currentAppRevIsNew check application revision already exist or not
|
||||
func (h *AppHandler) currentAppRevIsNew(ctx context.Context) (bool, bool, error) {
|
||||
// the last revision doesn't exist.
|
||||
if h.app.Status.LatestRevision == nil {
|
||||
if h.app.Status.LatestRevision == nil || DisableAllApplicationRevision {
|
||||
return true, true, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user