Skip to content

Commit

Permalink
Change namespace check to svc_name rule
Browse files Browse the repository at this point in the history
  • Loading branch information
hannatao committed Dec 5, 2023
1 parent 50d4589 commit 0b8b643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ func (api *API) validApplication(namespace string, app *models.ApplicationView)
return common.Error(common.ErrRequestParamInvalid,
common.Field("error", "custom namespace of yaml app is invalid(baetyl-edge/baetyl-edge-system)"))
}
if err := utils.GetValidator().Var(customNS, "res_name"); err != nil {
if err := utils.GetValidator().Var(customNS, "svc_name"); err != nil {
return common.Error(common.ErrRequestParamInvalid, common.Field("error", err.Error()))
}
}
Expand Down

0 comments on commit 0b8b643

Please sign in to comment.