Skip to content

Commit

Permalink
baetyl-3328: Add support for helm app type (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
hannatao authored Oct 30, 2023
1 parent 745cf39 commit b0e65b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
Expand Down
1 change: 1 addition & 0 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ const (
const (
ContainerApp = "container"
FunctionApp = "function"
HelmApp = "helm"
)

const (
Expand Down

0 comments on commit b0e65b5

Please sign in to comment.