Class OpenshiftClient

java.lang.Object
org.qubership.atp.environments.utils.cloud.ExternalCloudClient
org.qubership.atp.environments.utils.cloud.OpenshiftClient

public class OpenshiftClient extends ExternalCloudClient
  • Constructor Details

    • OpenshiftClient

      public OpenshiftClient()
  • Method Details

    • configure

      public void configure(ConnectionParameters connectionParameters)
      Specified by:
      configure in class ExternalCloudClient
    • getImageSet

      public Set<String> getImageSet()
      Gets set of images, this entity contains data about Image.
      Returns:
      List.
    • readDeploymentConfigs

      public List<com.openshift.restclient.model.IDeploymentConfig> readDeploymentConfigs(String namespace)
      Gets list of deployment configs, this entity contains data about Image.
      Parameters:
      namespace - - project name in openshift.
      Returns:
      List.
    • getRoutes

      public List<com.openshift.restclient.model.route.IRoute> getRoutes(String openshiftProject)
      Gets set of routes related to the project.
      Parameters:
      openshiftProject - - project name in openshift.
      Returns:
      Set
    • getRouteUrl

      public String getRouteUrl(String serviceName, List<com.openshift.restclient.model.route.IRoute> routes)
      Gets set of routes related to the project.
      Parameters:
      serviceName - - route name in openShift.
      routes - - routes in openShift project.
      Returns:
      Service route
    • getServices

      public List<com.openshift.restclient.model.IService> getServices(String openshiftProject)
      Gets set of routes related to the project.
      Parameters:
      openshiftProject - - project name in openshift.
      Returns:
      Set
    • getShortServices

      public List<ShortExternalService> getShortServices()
      Specified by:
      getShortServices in class ExternalCloudClient
    • getServicesByExistingServices

      public List<CloudService> getServicesByExistingServices(List<System> existingServices)
      Specified by:
      getServicesByExistingServices in class ExternalCloudClient
    • getServicesByServiceId

      public List<CloudService> getServicesByServiceId(List<UUID> existingServiceIds)
      Specified by:
      getServicesByServiceId in class ExternalCloudClient