wanghongkai 5 лет назад
Родитель
Сommit
121146c123

+ 1 - 1
src/main/java/cn/seecoder/paas/service/impl/EnvironmentServiceImpl.java

@@ -310,7 +310,7 @@ public class EnvironmentServiceImpl implements EnvironmentService {
                             .build());
                     List<Pod> pods = podApi.getByCondition(K8sObjectRequest
                             .builder()
-                            .name(labelValue)
+                            .labels(Collections.singletonMap(ResourceLabel.RESOURCE.getCode(), labelValue))
                             .namespace(applicationProperties.getDeploymentNamespace())
                             .build());
                     // 优先级先看pod,信息比较多