Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fetch_app_installation_status_service.rb « clusters « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e21aa49bb43f44ad843e152f1f658d3f987ca99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Clusters
  class FetchAppInstallationStatusService < BaseHelmService
    def execute
      return unless app.installing?

      phase = helm.installation_status(app)
      log = helm.installation_log(app) if phase == 'Failed'
      yield(phase, log) if block_given?
    rescue KubeException => ke
      app.make_errored!("Kubernetes error: #{ke.message}") unless app.errored?
    end
  end
end