Class RegistryController
- java.lang.Object
-
- io.debezium.testing.openshift.tools.registry.RegistryController
-
public class RegistryController extends Object
This class provides control over Kafka instance deployed in OpenShift- Author:
- Jakub Cechacek
-
-
Field Summary
Fields Modifier and Type Field Description private okhttp3.OkHttpClienthttpprivate static org.slf4j.LoggerLOGGERprivate io.fabric8.openshift.client.OpenShiftClientocpprivate OpenShiftUtilsocpUtilsprivate Stringprojectprivate io.apicurio.registry.operator.api.model.ApicurioRegistryregistry
-
Constructor Summary
Constructors Constructor Description RegistryController(io.apicurio.registry.operator.api.model.ApicurioRegistry registry, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPublicRegistryAddress()StringgetRegistryAddress()StringgetRegistryApiAddress()private io.fabric8.kubernetes.api.model.ServicegetRegistryService()booleanundeployRegistry()Undeploy this registry by deleted related ApicurioRegistry CR
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
registry
private final io.apicurio.registry.operator.api.model.ApicurioRegistry registry
-
ocp
private final io.fabric8.openshift.client.OpenShiftClient ocp
-
http
private final okhttp3.OkHttpClient http
-
project
private final String project
-
ocpUtils
private final OpenShiftUtils ocpUtils
-
-
Method Detail
-
getRegistryAddress
public String getRegistryAddress()
- Returns:
- registry url
-
getRegistryApiAddress
public String getRegistryApiAddress()
- Returns:
- registry url
-
getPublicRegistryAddress
public String getPublicRegistryAddress()
- Returns:
- registry public url
-
getRegistryService
private io.fabric8.kubernetes.api.model.Service getRegistryService()
-
undeployRegistry
public boolean undeployRegistry()
Undeploy this registry by deleted related ApicurioRegistry CR- Returns:
- true if the CR was found and deleted
-
-