Class OcpRegistryController


  • public class OcpRegistryController
    extends Object
    This class provides control over Apicurio registry instance deployed in OpenShift
    Author:
    Jakub Cechacek
    • 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
    • Constructor Detail

      • OcpRegistryController

        public OcpRegistryController​(io.apicurio.registry.operator.api.model.ApicurioRegistry registry,
                                     io.fabric8.openshift.client.OpenShiftClient ocp,
                                     okhttp3.OkHttpClient http)
    • 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 deleting related ApicurioRegistry CR
        Returns:
        true if the CR was found and deleted