Class OcpApicurioController

java.lang.Object
io.debezium.testing.system.tools.registry.OcpApicurioController
All Implemented Interfaces:
RegistryController

public class OcpApicurioController extends Object implements RegistryController
This class provides control over Apicurio registry instance deployed in OpenShift
Author:
Jakub Cechacek
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • APICURIO_NAME_LBL

      public static final String APICURIO_NAME_LBL
      See Also:
    • 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.v1.model.ApicurioRegistry registry
  • Constructor Details

    • OcpApicurioController

      public OcpApicurioController(io.apicurio.registry.operator.api.v1.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.v1.model.ApicurioRegistry,io.apicurio.registry.operator.api.v1.model.ApicurioRegistryList,io.fabric8.kubernetes.client.dsl.Resource<io.apicurio.registry.operator.api.v1.model.ApicurioRegistry>> registryOperation()
    • getPublicRegistryAddress

      protected String getPublicRegistryAddress()
    • getRoutes

      private List<io.fabric8.openshift.api.model.Route> getRoutes()
    • getRegistryService

      protected io.fabric8.kubernetes.api.model.Service getRegistryService()
    • getRegistryAddress

      protected String getRegistryAddress()
    • getRegistryApiAddress

      public String getRegistryApiAddress()
      Specified by:
      getRegistryApiAddress in interface RegistryController
      Returns:
      registry url
    • getPublicRegistryApiAddress

      public String getPublicRegistryApiAddress()
      Specified by:
      getPublicRegistryApiAddress in interface RegistryController
      Returns:
      registry public url
    • waitForRegistry

      public void waitForRegistry() throws InterruptedException
      Description copied from interface: RegistryController
      Waits for registry to be ready
      Specified by:
      waitForRegistry in interface RegistryController
      Throws:
      InterruptedException
    • getRegistryDeployments

      private List<io.fabric8.kubernetes.api.model.apps.Deployment> getRegistryDeployments(String name)
    • undeploy

      public boolean undeploy()
      Description copied from interface: RegistryController
      Undeploy this registry by deleting related ApicurioRegistry CR
      Specified by:
      undeploy in interface RegistryController
      Returns:
      true if the CR was found and deleted