Class AbstractOcpApicurioController
- java.lang.Object
-
- io.debezium.testing.system.tools.registry.AbstractOcpApicurioController
-
- All Implemented Interfaces:
RegistryController
- Direct Known Subclasses:
OcpApicurioV1Controller,OcpApicurioV2Controller
public abstract class AbstractOcpApicurioController extends Object implements RegistryController
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPICURIO_NAME_LBLprotected okhttp3.OkHttpClienthttpprotected Stringnameprotected io.fabric8.openshift.client.OpenShiftClientocpprotected OpenShiftUtilsocpUtilsprotected Stringprojectprotected io.apicurio.registry.operator.api.model.ApicurioRegistryregistry
-
Constructor Summary
Constructors Constructor Description AbstractOcpApicurioController(io.apicurio.registry.operator.api.model.ApicurioRegistry registry, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected StringgetPublicRegistryAddress()protected StringgetRegistryAddress()protected io.fabric8.kubernetes.api.model.ServicegetRegistryService()private List<io.fabric8.openshift.api.model.Route>getRoutes()protected abstract 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()booleanundeploy()Undeploy this registry by deleting related ApicurioRegistry CR-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.debezium.testing.system.tools.registry.RegistryController
getPublicRegistryApiAddress, getRegistryApiAddress, waitForRegistry
-
-
-
-
Field Detail
-
APICURIO_NAME_LBL
public static final String APICURIO_NAME_LBL
- See Also:
- Constant Field Values
-
ocp
protected final io.fabric8.openshift.client.OpenShiftClient ocp
-
http
protected final okhttp3.OkHttpClient http
-
project
protected final String project
-
name
protected final String name
-
ocpUtils
protected final OpenShiftUtils ocpUtils
-
registry
protected io.apicurio.registry.operator.api.model.ApicurioRegistry registry
-
-
Method Detail
-
getRegistryAddress
protected String getRegistryAddress()
-
getPublicRegistryAddress
protected String getPublicRegistryAddress()
-
getRoutes
private List<io.fabric8.openshift.api.model.Route> getRoutes()
-
getRegistryService
protected io.fabric8.kubernetes.api.model.Service getRegistryService()
-
undeploy
public boolean undeploy()
Description copied from interface:RegistryControllerUndeploy this registry by deleting related ApicurioRegistry CR- Specified by:
undeployin interfaceRegistryController- Returns:
- true if the CR was found and deleted
-
registryOperation
protected abstract 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()
-
-