Class RegistryDeployer
- java.lang.Object
-
- io.debezium.testing.openshift.tools.registry.RegistryDeployer
-
public class RegistryDeployer extends Object
- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description private okhttp3.OkHttpClienthttpprivate OcpKafkaControllerkafkaControllerprivate static org.slf4j.LoggerLOGGERprivate io.fabric8.openshift.client.OpenShiftClientocpprivate OpenShiftUtilsocpUtilsprivate Stringproject
-
Constructor Summary
Constructors Constructor Description RegistryDeployer(String project, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http, OcpKafkaController kafkaController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistryControllerdeployRegistry(String yamlPath, String storageTopicYamlPath, String idTopicYamlPath)Deploys Kafka ClusterOperatorControllergetOperator()Accessor for operator controller.private List<io.fabric8.openshift.api.model.DeploymentConfig>getRegistryDeployments(String name)io.fabric8.kubernetes.client.dsl.NonNamespaceOperation<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.ApicurioRegistryList,io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.model.ApicurioRegistry>>registryOperation()io.apicurio.registry.operator.api.model.ApicurioRegistrywaitForRegistry(String name)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
ocp
private final io.fabric8.openshift.client.OpenShiftClient ocp
-
http
private final okhttp3.OkHttpClient http
-
ocpUtils
private final OpenShiftUtils ocpUtils
-
project
private final String project
-
kafkaController
private final OcpKafkaController kafkaController
-
-
Constructor Detail
-
RegistryDeployer
public RegistryDeployer(String project, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http, OcpKafkaController kafkaController)
-
-
Method Detail
-
getOperator
public OperatorController getOperator()
Accessor for operator controller.- Returns:
OperatorControllerinstance for cluster operator inproject
-
deployRegistry
public RegistryController deployRegistry(String yamlPath, String storageTopicYamlPath, String idTopicYamlPath) throws InterruptedException
Deploys Kafka Cluster- Parameters:
yamlPath- path to CR descriptor (must be available on class path)- Returns:
RegistryControllerinstance for deployed registry- Throws:
InterruptedException
-
registryOperation
public io.fabric8.kubernetes.client.dsl.NonNamespaceOperation<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.ApicurioRegistryList,io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.model.ApicurioRegistry>> registryOperation()
-
waitForRegistry
public io.apicurio.registry.operator.api.model.ApicurioRegistry waitForRegistry(String name) throws InterruptedException
- Throws:
InterruptedException
-
-