32
32
import java .util .concurrent .TimeoutException ;
33
33
34
34
import static io .apicurio .deployment .KubernetesTestResources .*;
35
- import static io .apicurio .deployment .RegistryDeploymentManager .kubernetesClient ;
36
35
import static io .apicurio .deployment .RegistryDeploymentManager .prepareTestsInfra ;
36
+ import static io .apicurio .deployment .k8s .K8sClientManager .kubernetesClient ;
37
37
38
38
public class KafkaSqlDeploymentManager {
39
39
@@ -65,12 +65,11 @@ private static void prepareKafkaDbUpgradeTests(String registryImage) throws Exce
65
65
prepareTestsInfra (KAFKA_RESOURCES , APPLICATION_2_1_KAFKA_RESOURCES , false , null , false );
66
66
prepareKafkaSqlMigrationData (ApicurioRegistryBaseIT .getRegistryBaseUrl ());
67
67
68
- final RollableScalableResource <Deployment > deploymentResource = kubernetesClient ().apps ().deployments ().inNamespace (TEST_NAMESPACE ).withName (APPLICATION_DEPLOYMENT );
69
68
//Once all the data has been introduced, the old deployment is deleted.
70
69
deleteRegistryDeployment ();
71
70
72
71
//The Registry version 2.3 is deployed, the version introducing artifact references.
73
- prepareTestsInfra (null , APPLICATION_2_3_KAFKA_RESOURCES , false , null , false );
72
+ prepareTestsInfra (null , APPLICATION_2_4_KAFKA_RESOURCES , false , null , false );
74
73
prepareKafkaSqlReferencesMigrationData (ApicurioRegistryBaseIT .getRegistryBaseUrl ());
75
74
76
75
//Once the references data is ready, we delete this old deployment and finally the current one is deployed.
@@ -81,9 +80,9 @@ private static void prepareKafkaDbUpgradeTests(String registryImage) throws Exce
81
80
}
82
81
83
82
private static void deleteRegistryDeployment () {
84
- final RollableScalableResource <Deployment > deploymentResource = kubernetesClient .apps ().deployments ().inNamespace (TEST_NAMESPACE ).withName (APPLICATION_DEPLOYMENT );
83
+ final RollableScalableResource <Deployment > deploymentResource = kubernetesClient () .apps ().deployments ().inNamespace (TEST_NAMESPACE ).withName (APPLICATION_DEPLOYMENT );
85
84
86
- kubernetesClient .apps ().deployments ().inNamespace (TEST_NAMESPACE ).withName (APPLICATION_DEPLOYMENT ).delete ();
85
+ kubernetesClient () .apps ().deployments ().inNamespace (TEST_NAMESPACE ).withName (APPLICATION_DEPLOYMENT ).delete ();
87
86
88
87
//Wait for the deployment to be deleted
89
88
CompletableFuture <List <Deployment >> deployment = deploymentResource
0 commit comments