public class RegistryDeployer extends Object
| Modifier and Type | Field and Description |
|---|---|
private okhttp3.OkHttpClient |
http |
private KafkaController |
kafkaController |
private static org.slf4j.Logger |
LOGGER |
private io.fabric8.openshift.client.OpenShiftClient |
ocp |
private OpenShiftUtils |
ocpUtils |
private String |
project |
| Constructor and Description |
|---|
RegistryDeployer(String project,
io.fabric8.openshift.client.OpenShiftClient ocp,
okhttp3.OkHttpClient http,
KafkaController kafkaController) |
| Modifier and Type | Method and Description |
|---|---|
RegistryController |
deployRegistry(String yamlPath,
String storageTopicYamlPath,
String idTopicYamlPath)
Deploys Kafka Cluster
|
OperatorController |
getOperator()
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.apicurio.registry.operator.api.model.DoneableApicurioRegistry,io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.DoneableApicurioRegistry>> |
registryOperation() |
io.apicurio.registry.operator.api.model.ApicurioRegistry |
waitForRegistry(String name) |
private static final org.slf4j.Logger LOGGER
private final io.fabric8.openshift.client.OpenShiftClient ocp
private final okhttp3.OkHttpClient http
private final OpenShiftUtils ocpUtils
private final String project
private final KafkaController kafkaController
public RegistryDeployer(String project, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http, KafkaController kafkaController)
public OperatorController getOperator()
OperatorController instance for cluster operator in projectpublic RegistryController deployRegistry(String yamlPath, String storageTopicYamlPath, String idTopicYamlPath) throws InterruptedException
yamlPath - path to CR descriptor (must be available on class path)RegistryController instance for deployed registryInterruptedExceptionpublic io.fabric8.kubernetes.client.dsl.NonNamespaceOperation<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.ApicurioRegistryList,io.apicurio.registry.operator.api.model.DoneableApicurioRegistry,io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.DoneableApicurioRegistry>> registryOperation()
public io.apicurio.registry.operator.api.model.ApicurioRegistry waitForRegistry(String name) throws InterruptedException
InterruptedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.