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