|
18 | 18 |
|
19 | 19 | import java.io.InputStream; |
20 | 20 | import java.time.Duration; |
21 | | -import java.util.Objects; |
22 | 21 |
|
23 | 22 | import io.fabric8.kubernetes.api.model.ConfigMap; |
24 | 23 | import io.fabric8.kubernetes.api.model.Secret; |
25 | 24 | import io.fabric8.kubernetes.api.model.Service; |
26 | 25 | import io.fabric8.kubernetes.api.model.apps.Deployment; |
27 | | -import io.fabric8.kubernetes.api.model.networking.v1.Ingress; |
28 | 26 | import io.fabric8.kubernetes.client.KubernetesClient; |
29 | 27 | import io.fabric8.kubernetes.client.utils.Serialization; |
30 | | -import reactor.netty.http.client.HttpClient; |
31 | | -import reactor.util.retry.Retry; |
32 | | -import reactor.util.retry.RetryBackoffSpec; |
33 | 28 |
|
34 | 29 | import org.springframework.boot.test.system.CapturedOutput; |
35 | 30 | import org.springframework.cloud.kubernetes.integration.tests.commons.Phase; |
36 | 31 | import org.springframework.cloud.kubernetes.integration.tests.commons.fabric8_client.Util; |
37 | | -import org.springframework.http.client.reactive.ReactorClientHttpConnector; |
38 | | -import org.springframework.web.reactive.function.client.WebClient; |
39 | 32 |
|
40 | 33 | import static org.testcontainers.shaded.org.awaitility.Awaitility.await; |
41 | 34 |
|
@@ -96,32 +89,22 @@ static void manifests(Phase phase, Util util, String namespace) { |
96 | 89 |
|
97 | 90 | InputStream deploymentStream = util.inputStream("manifests/deployment.yaml"); |
98 | 91 | InputStream serviceStream = util.inputStream("manifests/service.yaml"); |
99 | | - InputStream ingressStream = util.inputStream("manifests/ingress.yaml"); |
100 | 92 | InputStream configMapAsStream = util.inputStream("manifests/configmap.yaml"); |
101 | 93 |
|
102 | 94 | Deployment deployment = Serialization.unmarshal(deploymentStream, Deployment.class); |
103 | 95 |
|
104 | 96 | Service service = Serialization.unmarshal(serviceStream, Service.class); |
105 | | - Ingress ingress = Serialization.unmarshal(ingressStream, Ingress.class); |
106 | 97 | ConfigMap configMap = Serialization.unmarshal(configMapAsStream, ConfigMap.class); |
107 | 98 |
|
108 | 99 | if (phase.equals(Phase.CREATE)) { |
109 | 100 | util.createAndWait(namespace, configMap, null); |
110 | | - util.createAndWait(namespace, null, deployment, service, ingress, true); |
| 101 | + util.createAndWait(namespace, null, deployment, service, true); |
111 | 102 | } |
112 | 103 | else { |
113 | 104 | util.deleteAndWait(namespace, configMap, null); |
114 | | - util.deleteAndWait(namespace, deployment, service, ingress); |
| 105 | + util.deleteAndWait(namespace, deployment, service); |
115 | 106 | } |
116 | 107 |
|
117 | 108 | } |
118 | 109 |
|
119 | | - static WebClient.Builder builder() { |
120 | | - return WebClient.builder().clientConnector(new ReactorClientHttpConnector(HttpClient.create())); |
121 | | - } |
122 | | - |
123 | | - static RetryBackoffSpec retrySpec() { |
124 | | - return Retry.fixedDelay(120, Duration.ofSeconds(2)).filter(Objects::nonNull); |
125 | | - } |
126 | | - |
127 | 110 | } |
0 commit comments