|
|
@@ -426,7 +426,7 @@ public class EnvironmentServiceImpl implements EnvironmentService {
|
|
|
}
|
|
|
|
|
|
String[] ports = (configContent.getServicePort() == null ? "" : configContent.getServicePort()).split(",");
|
|
|
- if (configContent.getHostPrefix() != null) {
|
|
|
+ if (!StringUtils.isEmpty(configContent.getHostPrefix())) {
|
|
|
for (String port : ports) {
|
|
|
// ingress
|
|
|
List<Ingress> ingresses = ingressApi.getByCondition(K8sObjectRequest.builder()
|