Class OcpApicurioController
java.lang.Object
io.debezium.testing.system.tools.registry.OcpApicurioController
- All Implemented Interfaces:
RegistryController
This class provides control over Apicurio registry instance deployed in OpenShift
- Author:
- Jakub Cechacek
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected final okhttp3.OkHttpClientprivate static final org.slf4j.Loggerprotected final Stringprotected final io.fabric8.openshift.client.OpenShiftClientprotected final OpenShiftUtilsprotected final Stringprotected io.apicurio.registry.operator.api.model.ApicurioRegistry -
Constructor Summary
ConstructorsConstructorDescriptionOcpApicurioController(io.apicurio.registry.operator.api.model.ApicurioRegistry registry, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Stringprivate List<io.fabric8.kubernetes.api.model.apps.Deployment>getRegistryDeployments(String name) protected io.fabric8.kubernetes.api.model.Serviceprivate List<io.fabric8.openshift.api.model.Route>protected 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>> booleanundeploy()Undeploy this registry by deleting related ApicurioRegistry CRvoidWaits for registry to be ready
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
APICURIO_NAME_LBL
- See Also:
-
ocp
protected final io.fabric8.openshift.client.OpenShiftClient ocp -
http
protected final okhttp3.OkHttpClient http -
project
-
name
-
ocpUtils
-
registry
protected io.apicurio.registry.operator.api.model.ApicurioRegistry registry
-
-
Constructor Details
-
OcpApicurioController
public OcpApicurioController(io.apicurio.registry.operator.api.model.ApicurioRegistry registry, io.fabric8.openshift.client.OpenShiftClient ocp, okhttp3.OkHttpClient http)
-
-
Method Details
-
registryOperation
protected io.fabric8.kubernetes.client.dsl.NonNamespaceOperation<io.apicurio.registry.operator.api.model.ApicurioRegistry,io.apicurio.registry.operator.api.model.ApicurioRegistryList, registryOperation()io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.model.ApicurioRegistry>> -
getPublicRegistryAddress
-
getRoutes
-
getRegistryService
protected io.fabric8.kubernetes.api.model.Service getRegistryService() -
getRegistryAddress
-
getRegistryApiAddress
- Specified by:
getRegistryApiAddressin interfaceRegistryController- Returns:
- registry url
-
getPublicRegistryApiAddress
- Specified by:
getPublicRegistryApiAddressin interfaceRegistryController- Returns:
- registry public url
-
waitForRegistry
Description copied from interface:RegistryControllerWaits for registry to be ready- Specified by:
waitForRegistryin interfaceRegistryController- Throws:
InterruptedException
-
getRegistryDeployments
-
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
-