diff --git a/api/application.go b/api/application.go index 47d07b7c..b73dd17f 100644 --- a/api/application.go +++ b/api/application.go @@ -305,6 +305,8 @@ func (api *API) ParseApplication(c *common.Context) (*models.ApplicationView, er if len(app.Registries) != 0 { return nil, common.Error(common.ErrRequestParamInvalid, common.Field("error", "registries should be empty in function app")) } + } else if app.Type == common.HelmApp { + return app, nil } else { return nil, common.Error(common.ErrRequestParamInvalid, common.Field("error", "type is invalid")) } diff --git a/common/constants.go b/common/constants.go index ec9fecf1..943d7315 100644 --- a/common/constants.go +++ b/common/constants.go @@ -201,6 +201,7 @@ const ( const ( ContainerApp = "container" FunctionApp = "function" + HelmApp = "helm" ) const (