[stability] App/service info to be replaced by HTTPS calls to OpenShift

Issue #216 new
LiAh Sheep created an issue

Fields like status, git_url, deployment info, etc can be obtained easily by calling various HTTPS APIs to OpenShift.

It should be more consistent and reliable to fetch from HTTPS, instead of we guessing the state from our side. Of course, caching can be done to reduce overhead.

Comments (1)

  1. LiAh Sheep reporter

    This part of service.rb is unnecessary:

      def setup_service_phpmyadmin4
        Core::CommandsWrapper.instance.set_env_var \
          app, "OPENSHIFT_PHPMYADMIN_URL", "#{app.app_url}/phpmyadmin/"
      end
    
      def cleanup_service_phpmyadmin4
        Core::CommandsWrapper.instance.unset_env_var(app, "OPENSHIFT_PHPMYADMIN_URL")
      end
    

    Because URL can be obtained from API call to "#{app_path}/cartridges/phpmyadmin-4" =>

       "properties"=>
        [{"name"=>"connection_url",
          "type"=>"cart_data",
          "description"=>"phpMyAdmin connection URL",
          "value"=>"https://php01-liahsheep.app.cnpaas.localhost/phpmyadmin/"}],
    
  2. Log in to comment