Class OcpRegistryDeployer
- java.lang.Object
-
- io.debezium.testing.system.tools.AbstractOcpDeployer<OcpRegistryController>
-
- io.debezium.testing.system.tools.registry.OcpRegistryDeployer
-
- All Implemented Interfaces:
Deployer<OcpRegistryController>
public class OcpRegistryDeployer extends AbstractOcpDeployer<OcpRegistryController>
Deployment management for Apicurio service registry OCP deployment- Author:
- Jakub Cechacek
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOcpRegistryDeployer.Builder
-
Field Summary
Fields Modifier and Type Field Description private StringidTopicYamlPathprivate KafkaControllerkafkaControllerprivate static org.slf4j.LoggerLOGGERprivate StringstorageTopicYamlPathprivate StringyamlPath-
Fields inherited from class io.debezium.testing.system.tools.AbstractOcpDeployer
http, ocp, project
-
-
Constructor Summary
Constructors Modifier Constructor Description privateOcpRegistryDeployer(String project, String yamlPath, String storageTopicYamlPath, String idTopicYamlPath, KafkaController kafkaController, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OcpRegistryControllerdeploy()Deploys resourceOperatorControllergetOperator()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
-
kafkaController
private final KafkaController kafkaController
-
yamlPath
private final String yamlPath
-
idTopicYamlPath
private final String idTopicYamlPath
-
storageTopicYamlPath
private final String storageTopicYamlPath
-
-
Constructor Detail
-
OcpRegistryDeployer
private OcpRegistryDeployer(String project, String yamlPath, String storageTopicYamlPath, String idTopicYamlPath, KafkaController kafkaController, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http)
-
-
Method Detail
-
getOperator
public OperatorController getOperator()
Accessor for operator controller.- Returns:
OperatorControllerinstance for cluster operator inAbstractOcpDeployer.project
-
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
-
getRegistryDeployments
private List<io.fabric8.openshift.api.model.DeploymentConfig> getRegistryDeployments(String name)
-
deploy
public OcpRegistryController deploy() throws InterruptedException
Description copied from interface:DeployerDeploys resource- Returns:
- Controller for deployed resource
- Throws:
InterruptedException
-
-