|
|
@@ -1,5 +1,6 @@
|
|
|
package cn.seecoder.paas.service.facade.k8s.model;
|
|
|
|
|
|
+import cn.seecoder.paas.util.LoggerUtil;
|
|
|
import io.fabric8.kubernetes.api.model.networking.v1beta1.IngressTLS;
|
|
|
import io.kubernetes.client.custom.IntOrString;
|
|
|
import io.kubernetes.client.openapi.models.*;
|
|
|
@@ -54,6 +55,7 @@ public class Ingress extends K8sAbstractObject<ExtensionsV1beta1Ingress> {
|
|
|
.map(IngressTls::new)
|
|
|
.collect(Collectors.toList());
|
|
|
}
|
|
|
+ System.out.println(tls.get(0).hosts);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -189,7 +191,7 @@ public class Ingress extends K8sAbstractObject<ExtensionsV1beta1Ingress> {
|
|
|
public ExtensionsV1beta1IngressTLS toK8sObject() {
|
|
|
return new ExtensionsV1beta1IngressTLSBuilder()
|
|
|
.withHosts(hosts)
|
|
|
- .withNewSecretName(secretName)
|
|
|
+ .withSecretName(secretName)
|
|
|
.build();
|
|
|
}
|
|
|
}
|
|
|
@@ -198,8 +200,5 @@ public class Ingress extends K8sAbstractObject<ExtensionsV1beta1Ingress> {
|
|
|
return tls.stream()
|
|
|
.map(IngressTls::toK8sObject)
|
|
|
.collect(Collectors.toList());
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|