Merge pull request #225 from doraemonext/master

feat: add app versions
This commit is contained in:
Yaoxing Guo 2023-05-31 14:59:12 +08:00 committed by GitHub
commit 842085f23c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 7 deletions

View File

@ -963,13 +963,14 @@ public class DeployConfigServiceImpl implements DeployConfigService {
}
// 检查是否有 components 被完成组装如果没有的话说明本次生成 Yaml 请求无效
if (schema.getSpec().getComponents().size() == 0) {
throw new AppException(AppErrorCode.INVALID_USER_ARGS,
String.format("the current application does not have permission to access the environment|" +
"appId=%s|unitId=%s|clusterId=%s|namespaceId=%s|stageId=%s|isolateNamespaceId=%s|" +
"isolateStageId=%s",
appId, unitId, clusterId, namespaceId, stageId, isolateNamespaceId, isolateStageId));
}
// 注释掉因为为空可能会由后面进行 component package 级别的补全
// if (schema.getSpec().getComponents().size() == 0) {
// throw new AppException(AppErrorCode.INVALID_USER_ARGS,
// String.format("the current application does not have permission to access the environment|" +
// "appId=%s|unitId=%s|clusterId=%s|namespaceId=%s|stageId=%s|isolateNamespaceId=%s|" +
// "isolateStageId=%s",
// appId, unitId, clusterId, namespaceId, stageId, isolateNamespaceId, isolateStageId));
// }
return schema;
}